İyi akşamlar öncelikle

ben dispeller gibi birşey yapmak istiyorum bunun 10 karesinde All stay , All stop komutları işlemiyecek nasıl yapabilirim.
Yardımlarınız için sağolun..
"foritems" ile yapabilirsin?
Dispeler gibi bi item yap. idsi i_stopstay olsun.

[function stopstay]
foritems 10
if (<baseid> == i_stopstay)
return 1
endif
endfor

Bu scripti ekle. sphere_speech.scp den de all stop ile all stayi bul altına;

if (<stopstay>)
return 1
endif

ekle.
Olmadı sanırsam ben yapamadım :S
Michaell : Dispeler gibi bi item yap. idsi i_stopstay olsun.

[function stopstay]
foritems 10
if (<baseid> == i_stopstay)
return 1
endif
endfor

Bu scripti ekle. sphere_speech.scp den de all stop ile all stayi bul altına;

if (<stopstay>)
return 1
endif

ekle.

Michaell dediği gibi yapmalısın...
Olmayacak birşeyi yok.


[itemdef i_stopstay]
defname i_stopstay
name=Stopstay
weight 15
id=i_crystal_green
type=t_script

ON=@create
attr=attr_move_never|attr_invis
color=07a1

[function stopstay]
foritems 10
if (<baseid> == i_stopstay)
return 1
endif
endfor

Bu scriptleri herhangi bir yere ekle. Daha sonra sphere_speech.scp ye gir. All stay ve all stop var. Onların altına aşağıdaki kodu ekle;


if (<stopstay>)
src.say asd
return 1
endif

Daha sonra i_stopstay itemini çıkar herhangi biryere. all stay all stop yazınca üstünde asd yazarsa çalışıyo demektir.
Çalışmıyor denedim genede yazıo :S
[typedef t_donotstay]
[speech spk_pet]
ON=stay
if (<isneartype t_donotstay 10>)
src.sysmessage Bu bolgede olmaz.
return 1
endif
Denedim hiçbiri olmuyo :S
kardeş bunu dene sorunsuz!


ON*All Stay*
foritems 10
if (<baseid> == i_stopstay)
src.sysmessage @,,1 Olmaz!
return 1
endif
endfor

bu kodu sphere_speech.scp içinde
[SPEECH spk_player] ' altina ekle.

+

[itemdef i_stopstay]
defname i_stopstay
name=Stopstay
weight 15
id=i_crystal_green
type=t_script

ON=@create
attr=attr_move_never|attr_invis
color=07a1
yukardaki işine yaramaz. all stay değil stay derse script nanay.
ON*All Stay*
ON=*Stay*
foritems 10
if (<baseid> == i_stopstay)
src.sysmessage @,,1 Olmaz!
return 1
endif
endfor

yaparız olmazmı?
şöle diyim etrafta adamın bineği yoksa bile stay yazamıcak. o yüzden bineğin speechine eklemek daha stabil.
[Alcholic] : şöle diyim etrafta adamın bineği yoksa bile stay yazamıcak. o yüzden bineğin speechine eklemek daha stabil.

haklısın :)

Üye Ol veya Giriş Yap

Bu forum başlığına mesaj atmak istiyorsanız hemen üye olun veya giriş yapın.