Hesabına erişemeyen eski üyeler Discord üzerinden yardım alabilir.
arkadaşlar bir dye scripti yazdım fakat çalışmıyor.. bakınşöle olmasını istiyorum şarjlı sadece silahları boyayabilsin yapmaya çalıştım ama hata aldım..


[ITEMDEF i_weap_dye]
DEFNAME=i_weap_dye
ID=i_dye_tub
Name=Silah boyasi

On=@Create
tag.morex=10
morex=10
ATTR=02
type t_dye_vat


ON=@CLICK
if (<morex> > 0)
	message @0800 [ <morex> Kullanimlik]
	message @1936 <name>
	return 1
elseif (<tag.morex> == 0)
	message @0800 [Bitmis]
	message @1936 <name>
	return 1
endif
return 1

ON=@DCLICK
if !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @038 Dye tub cantanizda olmali
return 1
elseif (<tag.morex> == 0)
src.sysmessage Sarjiniz Bitmis...
return 1
else
TARGET @038 Boyanacak Silahi Seciniz...
endif
RETURN 1


ON=@TARGON_CHAR
src.sysmessage @0713,1,1 Bu bir silah degil.
RETURN 1


on=@targon_item
IF (<src.targ.type>!=t_weapon_fence) || (<src.targ.type>!=t_weapon_sword) || (<src.targ.type>!=t_weapon_mace_staff) || (<src.targ.type>!=t_weapon_mace_smith) || (<src.targ.type>!=t_weapon_mace_smith ) || (<src.targ.type>!=t_weapon_bow) || (<src.targ.type>!=t_weapon_xbow)
src.sysmessage @0791,1,1 SADECE SILAHLARI BOYAYABILIRSIN !!!
RETURN 1
else
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023e
tag.morex=<tag.morex>-1
morex=<morex> -1
return 1
ENDIF

böle iken çalışmıyor


[ITEMDEF i_weap_dye]
DEFNAME=i_weap_dye
ID=i_dye_tub
Name=Silah boyasi

On=@Create
tag.morex=10
morex=10
ATTR=02
type t_dye_vat


ON=@CLICK
if (<morex> > 0)
	message @0800 [ <morex> Kullanimlik]
	message @1936 <name>
	return 1
elseif (<tag.morex> == 0)
	message @0800 [Bitmis]
	message @1936 <name>
	return 1
endif
return 1

ON=@DCLICK
if !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @038 Dye tub cantanizda olmali
return 1
elseif (<tag.morex> == 0)
src.sysmessage Sarjiniz Bitmis...
return 1
else
TARGET @038 Boyanacak Silahi Seciniz...
endif
RETURN 1


ON=@TARGON_CHAR
src.sysmessage @0713,1,1 Bu bir silah degil.
RETURN 1


on=@targon_item
IF (<src.targ.type>!=t_weapon_fence) || (<src.targ.type>!=t_weapon_sword) || (<src.targ.type>!=t_weapon_mace_staff) || (<src.targ.type>!=t_weapon_mace_smith) || (<src.targ.type>!=t_weapon_mace_smith ) || (<src.targ.type>!=t_weapon_bow) || (<src.targ.type>!=t_weapon_xbow)
src.sysmessage @0791,1,1 SADECE SILAHLARI BOYAYABILIRSIN !!!
return 1
else
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023e
RETURN 1
ENDIF

böle iken çalışıyor faakt şarjlı olmuyor :S yardım edecek warmı ???
Silindi
Novice
0
else'den sonra böyle olmalı.
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023e
tag.morex=<tag.morex>-1
morex=<morex> -1
return 1
ENDIF
yaa o halindede boyamıyor işte :S bende ole denedim ama takıldım ama yinede bir deniyeyim...

bu bir silah degil diyor :S ama boyuyor bekle deniyeyim yapınca yazarım...

Böle yaptım herşeyi boyar oldu :O yardım edecek yokmu ?? 56b

on=@targon_item
IF (<src.targ.type>!=t_weapon_fence) || (<src.targ.type>!=t_weapon_sword) || (<src.targ.type>!=t_weapon_mace_staff) || (<src.targ.type>!=t_weapon_mace_smith) || (<src.targ.type>!=t_weapon_mace_smith ) || (<src.targ.type>!=t_weapon_bow) || (<src.targ.type>!=t_weapon_xbow)
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023e
tag.morex=<tag.morex>-1
morex=<morex> -1
return 1
else
src.sysmessage @38,1,1 Bu Bir Silah Degildir.
return 1
ENDIF


Bu konu ikissyoudie12 tarafından düzenlendi(2007-10-02 18:35, 16 yıl önce)
Silindi
Novice
0
sanırım update etmiyorsun.

else
	src.targ.color <color>
	src.targ.update
	tag.morex=<tag.morex>-1
endif
return 1
yok yaf updatede ettim ama :S olmadı galiba
on=@targon_item
IF (<src.targ.type>=t_weapon_fence) || (<src.targ.type>=t_weapon_sword) || (<src.targ.type>=t_weapon_mace_staff) || (<src.targ.type>=t_weapon_mace_smith) || (<src.targ.type>=t_weapon_mace_smith ) || (<src.targ.type>=t_weapon_bow) || (<src.targ.type>=t_weapon_xbow)
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023e
tag.morex=<tag.morex>-1
morex=<morex> -1
return 1
else
src.sysmessage @38,1,1 Bu Bir Silah Degildir.
return 1
ENDIF
56 kullaniyorsaniz direk <act.isweapon> yapin butun silahlari kontrol edin ugrasmayin type mype
Silindi
Members
2
isweapon'dan başka ne gibi isx'ler var Emir'cim ?
Bknz: revision56b.txt ve sphere wiki :)
olmadı beah



bakın sorun boyayıp boyamaması degil hata şu resimdeki hata silahı kabul etmiyor


on=@targon_item
IF (<act.isweapon>)
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023
return 1
else
src.sysmessage @38,1,1 Bu Bir Silah Degildir.
return 1
ENDIF

en son halide bu...

Bu konu ikissyoudie12 tarafından düzenlendi(2007-10-03 16:48, 16 yıl önce)
[ITEMDEF i_weap_dye]
DEFNAME=i_weap_dye
ID=i_dye_tub
Name=Silah boyasi

On=@Create
tag.morex=10
morex=10
ATTR=02
type t_dye_vat


ON=@CLICK
if (<morex> > 0)
message @0800 [ <morex> Kullanimlik]
message @1936 <name>
return 1
elseif (<tag.morex> == 0)
message @0800 [Bitmis]
message @1936 <name>
return 1
endif
return 1

ON=@DCLICK
if !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @038 Dye tub cantanizda olmali
return 1
elseif (<tag.morex> == 0)
src.sysmessage Sarjiniz Bitmis...
return 1
else
TARGET @038 Boyanacak Silahi Seciniz...
endif
RETURN 1


ON=@TARGON_CHAR
src.sysmessage @0713,1,1 Bu bir silah degil.
RETURN 1


on=@targon_item
IF (<src.targ.type>!=t_weapon_fence) || (<src.targ.type>!=t_weapon_sword) || (<src.targ.type>!=t_weapon_mace_staff) || (<src.targ.type>!=t_weapon_mace_smith) || (<src.targ.type>!=t_weapon_mace_smith ) || (<src.targ.type>!=t_weapon_bow) || (<src.targ.type>!=t_weapon_xbow)
src.sysmessage @0791,1,1 SADECE SILAHLARI BOYAYABILIRSIN !!!
return 1
else
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023e
morex -=1
RETURN 1
ENDIF

böyle dene bakalım.
olmadı :S ...
Silindi
Novice
0
56b ise;

on=@targon_item
IF (<src.targ.isweapon>)
SRC.TARG.COLOR <COLOR>
src.targ.update
src.sound 023
return 1
else
src.sysmessage @38,1,1 Bu Bir Silah Degildir.
return 1
ENDIF

55r ise;
if !((<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_axe) || (<src.targ.type> == t_weapon_mace_PICK) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_staff))
SRC.TARG.COLOR <COLOR>
src.targ.update
src.sound 023
return 1
else
src.sysmessage @1153 bu bir silah deil
return 1
endif
[ITEMDEF i_weap_dye]
DEFNAME=i_weap_dye
ID=i_dye_tub
Name=Silah boyasi

On=@Create
ATTR=02
morez 10
type t_dye_vat

ON=@Click
if (<morez> > 0)
message @0800 [ <morez> Kullanimlik]
message @1936 <name>
return 1
else
message @0800 [Bitmis]
message @1936 <name>
return 1
endif

ON=@DCLICK
if !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @038 Dye tub cantanizda olmali
return 1
else
if (<morez>=0)
src.sysmessage @038 Rare dye'inizin sarji bitmis kullanamazsiniz.
return 1
else
target @038 Boyanacak Silahi Seciniz...
return 1
endif
endif

ON=@TARGON_CHAR
src.sysmessage @0713,1,1 Bu bir silah degil.
RETURN 1

on=@targon_item
IF (<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_smith ) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow)
SRC.TARG.COLOR=<COLOR>
src.targ.update
src.sound 023e
morez=<morez>+(-1)
return 1
else
src.sysmessage @0791,1,1 SADECE SILAHLARI BOYAYABILIRSIN !!!
return 1
endif
evet arkadaşlar Ragnar(Burak)'gın yardımı ile sorunu çözdük... yardım eden herkeze teşekkür ederim...

Bu konu ikissyoudie12 tarafından düzenlendi(2007-10-03 17:34, 16 yıl önce)

Üye Ol veya Giriş Yap

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