|
[function statkoru]
[plevel 1]
statkoru
if <src.restest i_statkoru>
src.consume=i_statkoru
endif
if !((<src.restest>) || (<src.restest i_rune_cunning>) || (<src.restest i_rune_Strength>) || (<src.restest i_rune_bless>) || (<src.restest i_rune_agility>))
if (<eval (<src.str>+<src.dex>+<src.int>)> <= 225)
src.f_bounce
src.tag.stat_str=<src.str>
src.tag.stat_dex=<src.dex>
src.tag.stat_int=<src.int>
if <src.restest i_statkoru>
src.f_bounce
endif
endif
endif
src.sysmessage Stat'larınız Korumaya alindi.
src.tag.stat_str=<src.str>
src.tag.stat_dex=<src.dex>
src.tag.stat_int=<src.int>
else
src.f_bounce
src.newitem i_statkoru
src.act.cont=<src.uid>
src.act.equip
src.act.timer=20
if <src.restest i_stat_int_dus>
src.consume=i_Stat_int_dus
endif
if <src.restest i_stat_str_dus>
src.consume=i_Stat_str_dus
endif
if <src.restest i_stat_dex_dus>
src.consume=i_Stat_dex_dus
endif
src.sysmessage Statlarınız korumaya alindi.
endif
else
src.sysmessage Stat toplamınızın 225'ın altında olması lazım.
endif
else
src.sysmessage Stat'larınızı yükselten büyüler aktifken stat'larınızı koruyamazsiniz.
endif
src.fix
[ITEMDEF i_statkoru]
NAME=stat saklama
ID=i_handr_1
TYPE=T_EQ_SCRIPT
WEIGHT=0
LAYER=layer_special
ON=@Create
ATTR=attr_invis|attr_decay
ON=@Equip
TIMER=20
ON=@Timer
if !((<cont.restest>) || (<cont.restest i_rune_cunning>) || (<cont.restest i_rune_Strength>) || (<cont.restest i_rune_bless>) || (<cont.restest i_rune_agility>))
if (<eval <cont.str>> > <eval <cont.tag.stat_str>>)
cont.str=<eval <cont.tag.stat_str>>
else
endif
if (<eval <cont.dex>> > <eval <cont.tag.stat_dex>>)
cont.dex=<eval <cont.tag.stat_dex>>
else
endif
if (<eval <cont.int>> > <eval <cont.tag.stat_int>>)
cont.int=<eval <cont.tag.stat_int>>
else
endif
else
endif
timer=20
return 1
|
|
| Konu | Kategori | Son cevap | Son yazan | Mesaj | Görüntüleme | |
|---|---|---|---|---|---|---|
|
|
stat korumaya kalkıyor
Son cevap: 11-02 20:43 · Son yazan: Eren19944 · Mesaj: 3 · Görüntü: 1800
|
FUNCTION & EVENTS Script Yardımı | 11-02 20:43 | 3 | 1800 | |
|
|
Bir Eşyanın Random Stat veya Skill Vermesini Sağlamak
Son cevap: 24-10 16:31 · Son yazan: Athynas · Mesaj: 3 · Görüntü: 3995
|
Script Yardımı | 24-10 16:31 | 3 | 3995 | |
|
|
stat cloak
Son cevap: 08-03 15:15 · Son yazan: xwerswoodx · Mesaj: 2 · Görüntü: 3097
|
Script Yardımı | 08-03 15:15 | 2 | 3097 | |
|
|
Stat Ve skill Ph Orani
Son cevap: 26-02 07:58 · Son yazan: mahsuni · Mesaj: 6 · Görüntü: 5544
|
ITEM Script Yardımı | 26-02 07:58 | 6 | 5544 | |
|
|
Guard deed koruma alanı
Son cevap: 13-02 03:17 · Son yazan: RasmuS · Mesaj: 2 · Görüntü: 3791
|
FUNCTION & EVENTS Script Yardımı | 13-02 03:17 | 2 | 3791 |