verdiğim ADV_RATE=0.1,0.1,0.1 açık hali, bende gayet güzel çalışıyor. kapalısını da kendin ayarlayabilirsin!
//Ph Kapalı Hali ADV_RATE=1.3,30.0,60.0 bu şekilde verdiğim de sadece örnek:
bu da stat taşi
Kod:
//stat stone
[ITEMDEF i_stat_stone]
ID=i_grave_stone
TYPE=0
NAME=Stat Taşı
ON=@CREATE
COLOR=95
CATEGORY=Other
SUBSECTION=Stones
DESCRIPTION=Character Stone
on=@click
SAY @95,,1 <name>
return 1
ON=@DCLICK
SRC.DIALOG d_stat
SRC.SYSMESSAGE @95,,1 Lütfen Stat'larınızı dikkatlice seçiniz..
RETURN 1
if !(<src.restest i_stat_kilit>)
if !((<src.restest i_stat_str_dus>) || (<src.restest i_stat_dex_dus>) || (<src.restest i_stat_int_dus>))
src.sysmessage @1936,,1 Lütfen Stat'larınızı Kilitlemeyi Unutmayın!..
elseif <src.restest i_stat_str_dus>
src.sysmessage @1936,,1 Str'niz duşuş durumunda.
elseif <src.restest i_stat_dex_dus>
src.sysmessage @1936,,1 Dex'ınız duşuş durumunda.
elseif <src.restest i_stat_int_dus>
src.sysmessage @1936,,1 İnt'niz duşuş durumunda.
endif
else
src.sysmessage @1936,,1 Stat'larınız kilitli durumda.
endif
dialog d_stat
[DIALOG d_stat]
50,50
PAGE 0
resizepic 63 63 5054 325 268
resizepic 68 69 3000 315 257
//checkertrans 64 64 311 253
//checkertrans 64 65 311 253
text 145 76 9 0
gumppic 295 125 2444
gumppic 295 155 2444
gumppic 295 185 2444
gumppic 295 230 2444
text 260 125 162 1
text 260 155 162 2
text 260 185 162 3
text 235 230 33 4
text 310 125 1152 5
text 310 155 1152 6
text 310 185 1152 7
text 310 230 1152 8
button 230 125 2714 2715 1 0 1
button 230 155 2714 2715 1 0 2
button 230 185 2714 2715 1 0 3
text 75 90 33 9
button 100 125 2714 2715 1 0 4
button 100 155 2714 2715 1 0 5
button 100 185 2714 2715 1 0 6
button 340 280 2714 2715 1 0 7
text 300 280 1152 11
[DIALOG d_stat TEXT]
<serv.servname> Stat Sistemi
Str
Dex
Int
Toplam
<eval <src.str>>
<eval <src.dex>>
<eval <src.int>>
<eval (<src.str>+<src.dex>+<src.int>)>
Düşür
Kiltile
[DIALOG d_stat BUTTON]
on=1
src.str=(<eval (<src.str>>-1)
src.dialog d_Stat
on=2
src.dex=(<eval (<src.dex>>-1)
src.dialog d_Stat
src.fix
on=3
src.int=(<eval (<src.int>>-1)
src.dialog d_Stat
src.fix
on=4
if !<src.restest i_stat_str_dus>
src.newitem i_stat_str_dus
src.act.cont=<src.uid>
src.act.equip
src.act.timer=20
src.sysmessage @1936,,1 Str'nizi duşuşe aldınız.
if <src.restest i_Stat_int_dusn>
src.consume=i_Stat_int_dus
endif
if <src.restest i_Stat_dex_dus>
src.consume=i_Stat_dex_dus
endif
if <src.restest i_stat_kilit>
src.consume=i_stat_kilit
endif
else
src.sysmessage @1936,,1 Zaten Str'niz düşüşte.
src.fix
on=5
if !<src.restest i_stat_dex_dus>
src.newitem i_stat_dex_dus
src.act.cont=<src.uid>
src.act.equip
src.act.timer=20
src.sysmessage @1936,,1 Dex'inizi düşüşe aldınız.
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_kilit>
src.consume=i_stat_kilit
endif
else
src.sysmessage @1936,,1 Zaten Dex'iniz duşuşte.
src.fix
on=6
if !<src.restest i_stat_int_dus>
src.newitem i_stat_int_dus
src.act.cont=<src.uid>
src.act.equip
src.act.timer=20
src.sysmessage @1936,,1 İnt'nizi düşüşe aldınız.
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
if <src.restest i_stat_kilit>
src.consume=i_stat_kilit
endif
else
src.sysmessage @1936,,1 Zaten İnt'niz düşüşte.
src.fix
on=7
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_stat_kilit>
src.f_bounce
src.sysmessage @1936,,1 Stat'larınız Kilitlendi.
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_stat_kilit
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 @1936,,1 Statlarınız kilitlendi.
endif
else
src.sysmessage @1936,,1 Stat toplamınızın 225'ın altında olması lazım.
endif
else
src.sysmessage @1936,,1 Stat'larınızı yükselten büyüler aktifken stat'larınızı kilitleyemezsınız.
endif
src.fix
[ITEMDEF i_stat_kilit]
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
[ITEMDEF i_stat_str_dus]
NAME=str düşüş
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>)
elseif (<eval <cont.str>+<cont.dex>+<cont.int>> > 225)
cont.str=(<cont.str>-(<eval <cont.str>+<cont.dex>+<cont.int>>-225))
else
endif
timer=20
return 1
[ITEMDEF i_stat_dex_dus]
NAME=dex düşüş
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>)
elseif (<eval <cont.str>+<cont.dex>+<cont.int>> > 225)
cont.dex=(<cont.dex>-(<eval <cont.str>+<cont.dex>+<cont.int>>-225))
else
endif
timer=20
return 1
[ITEMDEF i_stat_int_dus]
NAME=int düşüş
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>)
elseif (<eval <cont.str>+<cont.dex>+<cont.int>> > 225)
cont.int=(<cont.int>-(<eval <cont.str>+<cont.dex>+<cont.int>>-225))
else
endif
timer=20
return 1
[events e_stat_ayarsiz]
on=@SKILLSTART
if !(<src.isgm>==1)
if !((<src.restest i_rune_>) || (<src.restest i_rune_cunning>) || (<src.restest i_rune_Strength>) || (<src.restest i_rune_bless>) || (<src.restest i_rune_agility>))
if !(<src.restest i_stat_kilit>) && !((<src.restest i_stat_str_dus>) || (<src.restest i_stat_dex_dus>) || (<src.restest i_stat_int_dus>)) && (<eval <src.str>+<src.dex>+<src.int>> > 225)
src.tag.skill_dus=((<eval <src.str>+<src.dex>+<src.int>>-225)/ 3)
src.str=((<src.str>-<src.tag.skill_dus>))
src.dex=((<src.dex>-<src.tag.skill_dus>))
src.int=((<src.int>-<src.tag.skill_dus>))
src.sysmessage @1936,,1 Stat komutunu kulanarak stat ayarlarınızı yapınız.
if (<eval <src.str>+<src.dex>+<src.int>> > 226)
src.str=((<src.str>-1))
src.dex=((<src.dex>-1))
src.int=((<src.int>-1))
endif
return 0
endif
if (<src.str><1)
src.str=1
endif
if (<src.dex><1)
src.dex=1
endif
if (<src.int><1)
src.int=1
endif
if (<eval <src.str>> > 100)
src.str=(<eval <src.str>>-(<eval <src.str>>-100))
elseif (<eval <src.dex>> > 100)
src.dex=(<eval <src.dex>>-(<eval <src.dex>>-100))
elseif (<eval <src.int>> > 100)
src.int=(<eval <src.int>>-(<eval <src.int>>-100))
[function f_bounce]
src.findlayer(1).bounce
src.findlayer(2).bounce
src.findlayer(3).bounce
src.findlayer(4).bounce
src.findlayer(5).bounce
src.findlayer(6).bounce
src.findlayer(7).bounce
src.findlayer(8).bounce
src.findlayer(9).bounce
src.findlayer(10).bounce
src.findlayer(12).bounce
src.findlayer(13).bounce
src.findlayer(14).bounce
src.findlayer(15).bounce
src.findlayer(17).bounce
src.findlayer(18).bounce
src.findlayer(19).bounce
src.findlayer(20).bounce
src.findlayer(22).bounce
src.findlayer(23).bounce
src.findlayer(24).bounce
[eof]