merhaba arkadaşlar Bu scriptin doğru olarak çalısması lasım çünkü eksiksiz yazdım diye düşünüyorum ama çalışmıyor hala nedenini bulamadımm
sizce nerde yanlış yapmaşım

[itemdef i_healstone]
ID=i_grave_stone
TYPE=t_grave_stone
NAME=Heal Stone

ON=@Click
MESSAGE item Stone
return 1

ON=@CREATE
COLOR=0525
ATTR=0010

[typedef t_healstone]
ID=i_grave_stone
ON=@CREATE
ATTR=010
COLOR=0455
ON=@dclick

ON=@DCLICK
IF ( <DISTANCE> < 4 )
SRC.SFX 555
DIALOG d_healstonesys
ELSE
SRC.MESSAGE Kutuya ulasamiyorum!
RETURN 1
ENDIF
RETURN 1

src.dialog d_healstone

[DIALOG d_healstone]
0, 0
resizepic 65 20 2620 330 370
button 100 73 1209 1210 1 0 1 // Heal Potion
button 100 98 1209 1210 1 0 2 // Cure Potion
button 100 123 1209 1210 1 0 3 // Refresh Potion
button 100 148 1209 1210 1 0 13 // Bandaj
button 100 173 1209 1210 1 0 4 // Bleeding Potion
button 100 198 1209 1210 1 0 5 // Trance Potion
button 100 223 1209 1210 1 0 6 // Bestform Potion
button 100 248 1209 1210 1 0 7 // Bless Deed
//button 100 273 1209 1210 1 0 8 // bless
//button 100 273 1209 1210 1 0 12 // glacial
button 362 358 1209 1210 1 0 9 // Kapat
85 336 2103 2104 1 0 10 //
85 350 2103 2104 1 0 11 //
text 120 70 990 0
text 275 70 1350 1
text 120 95 990 2
text 275 95 1350 3
text 120 120 990 4
text 275 120 1350 5
text 120 170 990 6
text 275 170 1350 7
text 120 195 990 8
text 275 195 1350 9
text 120 220 990 10
text 275 220 1350 11
text 120 245 990 12
text 275 245 1350 13
//text 120 270 990 14
//text 275 270 1350 15
text 298 355 1345 16 // sys
text 120 45 1152 17
text 102 330 1345 18 // sys
text 102 345 1345 19 // sys
text 260 330 1152 20 // sys
//text 120 270 990 21
//text 275 270 1350 22
text 120 145 990 23
text 275 145 1350 24

[DIALOG d_healstone TEXT]
Heal
Cure
Refresh
Nightsight
Strength
Beastform
Trance
Bandage
Kapat
<serv.name> item Stone
Randomuo
iyi PvP'ler Diler..
Owner StratuS
Glacial Staff
1.500.000
Rare Dye
200.000

[DIALOG d_healstone BUTTON]
ONBUTTON=0

ONBUTTON=1 //Heal
if (<eval <gp>> >= 0)
gpconsume 0
newitem i_potion_healgreat,25
act.bounce
new.cont <src.findlayer(21).uid>
else
src.sysmessage @0799 aaaaaa
endif
RETURN 1

ONBUTTON=2 //Cure
if (<eval <gp>> >= 0)
gpconsume 0
newitem i_potion_curegreat,25
act.bounce
new.cont <src.findlayer(21).uid>
else
src.sysmessage @0799 bbbbbb
endif
RETURN 1

ONBUTTON=3 // Refresh
if (<eval <gp>> >= 0)
gpconsume 0
newitem i_potion_RefreshTotal,25
act.bounce
new.cont <src.findlayer(21).uid>
else
src.sysmessage @0799 bbbb
endif
RETURN 1

ONBUTTON=4 // ngiht
if (<eval <gp>> >= 0)
gpconsume 0
newitem i_potion_Nightsight,25
act.bounce
new.cont <src.findlayer(21).uid>
else
src.sysmessage @0799 bbbbbbb
endif
RETURN 1

ONBUTTON=5 // sttreng
if (<eval <gp>> >= 0)
gpconsume 0
newitem i_potion_Strength,25
act.bounce
new.cont <src.findlayer(21).uid>
else
src.sysmessage @0799 bbbbbbbb
endif
RETURN 1

ONBUTTON=6 // best
if (<eval <gp>> >= 0)
gpconsume 0
newitem i_potion_Beastform,25
act.bounce
new.cont <src.findlayer(21).uid>
else
src.sysmessage @0799 bbbbbbbb
endif
RETURN 1
RETURN 1

ONBUTTON=7 // Bless Deed
if (<eval <gp>> >= 0)
gpconsume 0
newitem i_bandage,25
act.bounce
new.cont <src.findlayer(21).uid>
else
src.sysmessage @0799 bbbbbbbbb
endif
RETURN 1
RETURN 1
ELSE


[EOF]


Bu konu Neran tarafından düzenlendi(2009-07-27 02:17, 14 yıl önce)
if (<eval <gp>> >= 0)
gpconsume 0


böle fonksiyonlarının olduğundan eminmisin
Silindi
Expert
4
yeni bi konu açmak istemedim bendede şöyle bi sorun var evet e basıyorum fakat çalışmıyor

[DIALOG d_eminmisin]
0, 0
PAGE 0
resizepic 42 41 3500 318 134
dtext 62 62 1101 Skill secmek istediginize emin misiniz?
dtext 61 85 1101 Ustunuzdekiler cantaniza yerlestirilip
dtext 60 103 1101 skilleriniz sifirlanacaktir.
dtext 62 130 1101 Evet
dtext 213 130 1101 Hayir
button 101 130 4005 4006 0 0 1
button 263 130 4005 4006 1 0 0

[DIALOG d_eminmisin BUTTON]
on=1
ALLSKILLS=0
tag.skillsecimi 1
sDIALOG d_9_gm_skills
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(10).bounce
src.findlayer(12).bounce
src.findlayer(13).bounce
src.findlayer(14).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
src.findlayer(31).bounce
SRC.SFX 555
ON=@DCLICK
IF ( <DISTANCE> < 4 )
SRC.SFX 555
DIALOG d_healstonesys
ELSE
SRC.MESSAGE Kutuya ulasamiyorum!
RETURN 1
ENDIF
RETURN 1

src.dialog d_healstone

şöyle değiş

ON=@DCLICK
IF ( <DISTANCE> < 4 )
SRC.SFX 555
sDIALOG d_healstone
ELSE
SRC.MESSAGE Kutuya ulasamiyorum!
RETURN 1
ENDIF
RETURN 1

@Sonosmanlı

sende

button 101 130 4005 4006 0 0 1

bunu

button 101 130 4005 4006 1 0 1

olarak değiştirip denermisin?
Silindi
Expert
5.4
Saolasın kardeşim oldu orda onu düşünemedim ben:)
sağolun...
ö.deil yardımım dokunduysa ne mutlu bana :P :D

Üye Ol veya Giriş Yap

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