Selam arkadaşlar şimdi bi teleport olsun ve bu teleportun üstüne i_top itemi geldimi gol olsun ve kim attıysa +1 eklensin o takıma bunu nasıl yapabiliriz?

birde bu potlar stoneden aldımmı 20 tane ayrı ayrı yerlere düşüyor bunları nasıl çiftli gösterebiliriz?

Bu konu manifest tarafından düzenlendi(2009-06-07 17:02, 14 yıl önce)
Araştırma yaparsan futbol sistemide var,pot sistemide var.
pot çok aradım herşeyi denedim olmadı sen biliyorsan bi söylermisin?

[ITEMDEF i_keg_potion]
NAME=empty potion keg
ID=i_keg_wood
TYPE=t_script
WEIGHT=20
SKILLMAKE=TINKERING 80.0
RESOURCES=10 i_ingot_iron, 1 i_barrel_open, 1 i_barrel_hoops
VALUE=650

CATEGORY=Unique Items
SUBSECTION=Tinker
DESCRIPTION=empty potion Keg

ON=@Create
TAG.POTION=0
MORE2=0
TIMER=-1
	
ON=@Click
IF (<MOREX>)
MESSAGE @0481 [<MOREX>]
message @0481 <name>
return 1
else
message @0481 <name>
return 1
endif

ON=@DClick
if (<eval <morex> > 0)
target @0713,,1 Lütfen iksiri boşaltmak için boş şişe seçiniz.
return 1
elseif (<eval <tag.dolduruyoruz>> == 1)
target
return 1
elseif (<eval <morex>> ==0)
src.dialog d_keg_doldur
src.tag.clickuid <uid>
return 1
endif

ON=@targon_Cancel
src.sys_error İksir doldurmadınız.
tag.dolduruyoruz 0
return 1

ON=@Targon_Char
TARGET @38,1,1 Lütfen bir iksir şişesi seçiniz.
RETURN 1
	
ON=@Targon_Ground
TARGET @38,1,1 Lütfen bir iksir şişesi seçiniz.
RETURN 1

ON=@Targon_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Sadece üstünüzdeki eşyaları kullanabilirsiniz.
endif

IF <SRC.TARG.BASEID>==i_bottle_empty
IF <MOREX> = 0
src.smsx Fıçıdaki iksiri şişeye doldurmaya çalıştınız ama fıçıda iksir yok.
TARGET @38,,1 Fıçıyı doldurmak için lütfen dolu bir iksir şişesi seçiniz.
RETURN 1
ENDIF
src.sms Fıçıdaki iksirin bir kısmını boş bir şişeye bosalttınız.
SRC.SOUND=snd_Z_END_LIQUID
SRC.NEWITEM=<TAG.POTION>
SRC.ACT.MORE2=<MORE2>
SRC.ACT.ATTR=0
SRC.ACT.TIMER=-1
SRC.ACT.BOUNCE
MOREX=<MOREX> - 1
	IF (<MOREX> == 0)
	NAME=
	TAG.POTION=0
	MORE2=0
	ELSE
	NAME=<SRC.ACT.NAME> keg
	ENDIF
	SRC.TARG.CONSUME 1
	TARGET
	RETURN 1
ELSEIF <SRC.TARG.TYPE> != T_POTION
	src.smsx Bu bir iksir değil!
	TARGET
	RETURN 1
ELSEIF <TAG.POTION> && (<SRC.TARG.BASEID>!=<TAG.POTION>)
	src.smsx Fıçıya sadece bir çeşit iksir koyabilirsiniz!
	TARGET
	RETURN 1
ELSEIF (<MOREX> = 250)
	src.smsx Fıçı ağzına kadar dolmus.
	src.smsx İçindekileri boşaltmak için boş şişe seçiniz.
	TARGET
	RETURN 1
ELSEIF (<MOREX>==0)
	TAG.POTION=<SRC.TARG.BASEID>
ENDIF
MORE2=<SRC.TARG.MORE2>
MOREX=(<MOREX> + <src.targ.amount>)
NAME=a <SRC.TARG.NAME> keg (<MOREX>)
SRC.SOUND=snd_Z_END_LIQUID
src.smsx Fıçıyı <SRC.TARG.NAME> ile doldurdunuz.
SRC.TARG.REMOVE
SRC.NEWITEM=i_bottle_empty,<src.targ.amount>
SRC.ACT.ATTR=0
SRC.ACT.BOUNCE
src.act.update
TARGET
RETURN 1

[ITEMDEF i_potion_bleed1]
ID=i_bottle_empty
TYPE=T_POTION
NAME=bleed potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 70.0

ON=@Create
COLOR=0481
MORE1=s_Cure
MORE2=40.1

ON=@DClick
if (<topobj.uid> != <src.uid>)
src.smsx Bunu kullanabilmeniz için çantanızda olmalı.
return 1
endif
if (<src.findid.i_rune_poison>)
src.smsx Poison etkisi varken içemezsiniz.
return 1
endif

if !(rand(5) == 1)
if (<src.findid.i_bleeding>)
src.findid.i_bleeding.remove
src.effect snd_spell_poison
src.effect 3,0376a,2,10,1
src.sayua 0835,6,6,0 * yarayı tedavi eder *
src.consume 1 i_potion_bleed
src.act i_bottle_empty
else
src.consume 1 i_potion_bleed
src.act i_bottle_empty
endif
endif

[ITEMDEF i_potion_Agility1]
ID=i_bottle_empty
NAME=agility potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_bottle_empty
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Agility
MORE2={ 15.0 60.0 }
color=084a

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_AgilityGreat1]
ID=i_bottle_empty
TYPE=T_POTION
NAME=greater agility potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_Agility
MORE2={ 70.0 80.0 }
color=084a

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_CureLess1]
ID=i_bottle_empty
TYPE=T_POTION
NAME=lesser cure potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0

ON=@Create
MORE1=s_Cure
MORE2=40.0
color 02c

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cureless
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cureless
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_Cure1]
NAME=cure potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_Cure
MORE2=60.0
color 02c

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cure
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cure
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_CureGreat1]
NAME=greater cure potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_cure
MORE2=151.0
color 02c

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_curegreat
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_curegreat
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_ExplosionLess1]
NAME=lesser explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 5.0

ON=@Create
MORE1=s_explosion
MORE2=12.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
src.smsx Burada patlayici madde kullanamazsiniz.
return 1
elseif (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
	src.newitem i_mem_exp
	src.act.equip
	src.act.timer 5
endif

[ITEMDEF i_mem_exp]
ID=i_memory
TYPE=t_eq_script
NAME=explosion delay

ON=@Create
ATTR=attr_decay|attr_invis

ON=@Timer
REMOVE
RETURN 1

[ITEMDEF i_potion_Explosion1]
NAME=explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_explosion
MORE2=30.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
src.smsx Burada patlayici madde kullanamazsiniz.
return 1
elseif (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
src.newitem i_mem_exp
src.act.equip
src.act.timer 6
endif

[ITEMDEF i_potion_ExplosionGreat1]
NAME=greater explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_explosion
MORE2=50.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
src.smsx Burada patlayici madde kullanamazsiniz.
return 1
elseif (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
src.newitem i_mem_exp
src.act.equip
src.act.timer 9
endif

[ITEMDEF i_xp11]
NAME=super explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
ATTR=attr_newbie|attr_invis
MORE1=s_explosion
MORE2=120.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
	src.st 0846,0,0,0 Burada patlayici madde kullanamazsiniz.
	return 1
endif

[ITEMDEF i_potion_HealLess1]
NAME=lesser heal potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0
TYPE=T_POTION
TDATA1=i_bottle_empty

On=@Create
MORE1=s_heal
MORE2=35.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding2>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.smsx Poison etkisindeyken bunu icemezsiniz.
return 1
endif

[ITEMDEF i_potion_Heal1]
NAME=heal potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0
TYPE=T_POTION
TDATA1=i_bottle_empty
VALUE=29

ON=@Create
MORE1=s_greater_heal
MORE2=55.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.smsx Poison etkisindeyken bunu icemezsiniz.
return 1
endif

[ITEMDEF i_potion_HealGreat1]
NAME=greater heal potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_ginseng 7, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 55.0

ON=@Create
MORE1=s_greater_heal
MORE2=80.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.smsx Poison etkisindeyken bunu icemezsiniz.
return 1
endif

[ITEMDEF i_potion_Nightsight1]
NAME=nightsight potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_spider_silk 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0

ON=@Create
MORE1=s_night_sight
MORE2=100.0
color=0452

[ITEMDEF i_potion_PoisonLess1]
NAME=lesser poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0

ON=@Create
MORE1=s_poison
MORE2=40.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 40.0)
src.smsx Poison skilliniz en az 40.0 olmalıdır.
return 1
endif
if (<src.armslore> < 40.0)
src.smsx Armslore skilliniz en az 40.0 olmalıdır.
return 1
endif
target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
	SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.poigain
src.azbekle
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.azbekle
src.poigain
endif

src.targ.morez 60
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_Poison1]
NAME=poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.1

ON=@Create
MORE1=s_poison
MORE2=50.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 50.0)
src.smsx Poison skilliniz en az 50.0 olmalıdır.
return 1
endif
if (<src.armslore> < 40.0)
src.smsx Armslore skilliniz en az 50.0 olmalıdır.
return 1
endif

target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.poigain
src.azbekle
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.azbekle
src.poigain
endif

src.targ.morez 80
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_PoisonGreat1]
NAME=greater poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 4, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 55.1

ON=@Create
MORE1=s_poison
MORE2=90.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 80.0)
src.smsx Poison skilliniz en az 80.0 olmalıdır.
return 1
endif
if (<src.armslore> < 40.0)
src.smsx Armslore skilliniz en az 80.0 olmalıdır.
return 1
endif

target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
	SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.azbekle
src.poigain
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.poigain
src.azbekle
endif

src.targ.morez 100
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_PoisonDeadly1]
NAME=deadly poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 8, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 90.1

ON=@Create
MORE1=s_poison
MORE2=105.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 99.9)
src.smsx Poison skilliniz en az 99.0 olmalıdır.
return 1
endif
if (<src.armslore> < 99.0)
src.smsx Armslore skilliniz en az 90.0 olmalıdır.
return 1
endif
target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
	SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.poigain
src.azbekle
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.poigain
src.azbekle
endif

src.targ.morez 130
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_Refresh1]
NAME=refresh potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0

ON=@Create
MORE1=s_Refresh
MORE2=25.0
color=0845

[ITEMDEF i_potion_RefreshTotal]
ID=i_bottle_empty
NAME=total refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_Refresh
MORE2=50.0
color 0845

[ITEMDEF i_potion_Strength1]
ID=i_bottle_WHITE
NAME=strength potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_strength
MORE2=60.0
color=0835

ON=@DCLICK
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_StrengthGreat1]
NAME=greater strength potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 45.0

ON=@Create
MORE1=s_strength
MORE2=100.0
color=0835

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

// These are custom potions

[ITEMDEF i_potion_Shrink1]
ID=i_bottle_WHITE
NAME=shrink potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_batwing 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 100.0

ON=@Create
MORE1=s_shrink
MORE2=100.0
COLOR=color_gray_lt

[ITEMDEF i_potion_Invisibility]
ID=i_bottle_empty
NAME=invisibility potion
TYPE=T_POTION
TDATA1=i_bottle_empty
//RESOURCES=i_reag_nightsight 10, i_reag_ginseng 10, i_bottle_EMPTY
//SKILLMAKE=ALCHEMY 99.9

ON=@Create
MORE1=s_invisibility
MORE2=100.0
COLOR=0

[ITEMDEF i_potion_Mana1]
ID=i_bottle_empty
NAME=mana refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
//RESOURCES=i_reag_garlic 5,i_reag_ginseng 5, i_bottle_EMPTY
//SKILLMAKE=ALCHEMY 90.0


ON=@Create
MORE1=s_mana
MORE2=20.0
COLOR=color_gray_lt

[ITEMDEF i_potion_ManaTotal]
ID=i_bottle_empty
NAME=total mana refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic 10,i_reag_ginseng 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 98.0, Magery 50.0

ON=@Create
MORE1=s_mana
MORE2=50.0
COLOR=color_gray_lt

// Extended potions.

[ITEMDEF i_potion_Beastform]
// This potion polymorphs you into an animal for a while.
// The animal it turns you into is determined when you make the potion (you can use taste id to determine which animal it does).
ID=i_bottle_WHITE
NAME=beastform potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_BeastForm
MORE2=60.0

[ITEMDEF i_potion_Chameleon]
// This potion makes your skin match the colors of whatever is behind you.
ID=i_bottle_WHITE
NAME=chameleon skin potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic, i_reag_spider_silk, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Chameleon
MORE2=60.0

[ITEMDEF i_potion_Clever1]
// This potion gives a temporary boost to intelligence.
ID=i_bottle_WHITE
NAME=cleverness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Cunning
MORE2=70.0

[ITEMDEF i_potion_Clever_Great1]
// This potion gives a temporary boost to intelligence.
ID=i_bottle_WHITE
NAME=great cleverness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=2 i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Cunning
MORE2=100.0

[ITEMDEF i_potion_Clumsiness1]
// This potion lowers your dexterity temporarily.
ID=i_bottle_WHITE
NAME=clumsiness potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Clumsy
MORE2=70.0

[ITEMDEF i_potion_Confusion1]
// This potion lowers your intelligence temporarily.
ID=i_bottle_WHITE
NAME=confusion potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_Nightshade, i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_feeblemind
MORE2=50.0

[ITEMDEF i_potion_Forget_Less1]
ID=i_bottle_WHITE
NAME=esser forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_forget
MORE2=40.0

[ITEMDEF i_potion_Forget1]
ID=i_bottle_WHITE
NAME=forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 30.0

ON=@Create
MORE1=s_forget
MORE2=60.0

[ITEMDEF i_potion_Forget_Great1]
// This potion permanently lowers one skill.
// You can tell which skill the potion lowers by tasting it.
ID=i_bottle_WHITE
NAME=greater forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, 2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 70.0

ON=@Create
MORE1=s_forget
MORE2=100.0

[ITEMDEF i_potion_Gender1]
// This potion permanently changes your gender.
ID=i_bottle_WHITE
NAME=gender swap potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_reag_mandrake_root, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Gender_Swap
MORE2=100.0

[ITEMDEF i_potion_Trance1]
// This potion temporarily increases your meditation skill.
ID=i_bottle_WHITE
NAME=trance potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl,  2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Trance
MORE2=50.0

[ITEMDEF i_potion_Trance_Great1]
// This potion temporarily increases your meditation skill.
ID=i_bottle_WHITE
NAME=greater trance potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_reag_mandrake_root, 2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Trance
MORE2=100.0

[ITEMDEF i_potion_Restore1]
// This potion increases both your hit points and your stamina.
RESOURCES=i_reag_black_pearl 5,i_reag_mandrake_root 3, i_bottle_EMPTY
ID=i_bottle_WHITE
NAME=restoration potion
TYPE=T_POTION
TDATA1=i_bottle_empty
SKILLMAKE=ALCHEMY 75.0

ON=@Create
MORE1=s_Restore
MORE2=75.0

[ITEMDEF i_potion_Restore_Great1]
// This potion increases both your hit points and your stamina.
RESOURCES=i_reag_black_pearl 10,i_reag_mandrake_root 3, i_bottle_EMPTY
ID=i_bottle_WHITE
NAME=greater restoration potion
TYPE=T_POTION
TDATA1=i_bottle_empty
SKILLMAKE=ALCHEMY 85.0

ON=@Create
MORE1=s_Restore
MORE2=125.0

[ITEMDEF i_potion_Sustenance1]
// This potion serves to fill you up. (Remember, healing rate depends on how well fed you are!)
// It comes in multiple strengths:
// Greater: RESOURCES=2 i_reag_ginseng, 2 i_reag_mandrake_root, i_bottle_EMPTY
NAME=sustenance potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_ginseng, i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Sustenance
MORE2=60.0

[ITEMDEF i_potion_Monster1]
// This potion polymorphs you into a monster for a while.
// The monster it turns you into is determined when you make the potion (you can use taste id to determine which animal it does).
NAME=monster form potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss, i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Monster_Form
MORE2=100.0

[ITEMDEF i_potion_Particle1]
// This potion turns you into an immobile, but untargetable particle system for a while.
NAME=particle form potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_reag_blood_moss, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Particle_Form
MORE2=60.0

[ITEMDEF i_potion_Shield1]
// This potion erects a temporary force field around you. Nobody approaching will be able to get within 1 tile of you, though you can move close to them if you wish.
NAME=shield potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic, i_reag_sulfur_ash, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Shield
MORE2=100.0

[ITEMDEF i_potion_Steelskin1]
// This potion turns your skin into steel, giving a boost to your AR.
NAME=steelskin potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic, i_reag_ginseng, 2 i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Steelskin
MORE2=100.0

[ITEMDEF i_potion_Stoneskin1]
// This potion turns your skin into stone, giving a boost to your AR.
NAME=stoneskin potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
//RESOURCES=i_reag_nightsight 5,i_reag_ginseng 5,i_reag_mandrake_root 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 80.0

ON=@Create
MORE1=s_Stoneskin
MORE2=150.0

[ITEMDEF i_potion_Weakness1]
// This potion temporarily lowers your strength.
NAME=weakness potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_weaken
MORE2=100.0

[COMMENT ITEMDEF i_potion_FloatLess1]
ID=i_bottle_WHITE
NAME=lesser float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Float
MORE2=30.0
COLOR=COLOR_CYAN

[COMMENT ITEMDEF i_potion_Float1]
ID=i_bottle_WHITE
NAME=float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_Float
MORE2=50.0
COLOR=COLOR_CYAN

[COMMENT ITEMDEF i_potion_FloatGreat]
ID=i_bottle_WHITE
NAME=greater float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_Float
MORE2=100.0
COLOR=COLOR_CYAN

[ITEMDEF i_potion_Explosion_Superior]
NAME=superior explosion potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_volcanic_ash 10, i_reag_dragon_blood 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 99.9, MAGERY 50.0

ON=@Create
color=0c
MORE1=s_explosion
MORE2=150.0

[ITEMDEF i_potion_Lava]
ID=i_bottle_empty
NAME=lava bomb
TYPE=T_POTION
TDATA1=0

RESOURCES=i_reag_volcanic_ash 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_lava
MORE2=50.0
COLOR=color_violet_lt



[ITEMDEF i_potion_blood]
NAME=blood potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0
TYPE=T_POTION
TDATA1=i_bottle_empty
VALUE=29

ON=@Create
MORE1=s_greater_heal
MORE2=55.0
color 026

On=@DClick
if strmatch('<src.title>','The Vampire'))
else
return 1
src.st 0846,0,0,0 Bunu sadece vampirler icebilir...
endif
//src.findlayer(2).unequip

[DIALOG d_keg_doldur]
150,50
PAGE 0
nomove

resizepic 0 0 3500 350 120

tilepic 150 70 6464
tilepic 160 80 6464

dhtmlgump 25 10 330 73 0 0 <var.font2>><def.center>Keg Doldurma İşlemi
dhtmlgump 35 32 330 73 0 0 Keg için doldurmak istediğiniz potion'u seçiniz.
button 13 30 2714 2715 1 0 1

[DIALOG d_keg_doldur BUTTON]
ON=1
src.targ.tag.dolduruyoruz 1
try uid.<eval <src.tag.clickuid>>.dclick
src.sys_error Lütfen doldurmak istediğiniz iksiri seçiniz.

[DIALOG d_keg_bilgi]
150,50
PAGE 0
nomove

resizepic 0 0 3500 350 210

resizepic 28 120 3000 45 21

tilepic 150 160 6464
tilepic 160 170 6464

dhtmlgump 25 10 330 50 0 0 <var.font2>><def.center>Keg Bolaştma İşlemi
dhtmlgump 15 32 330 50 0 0 Keg
dhtmlgump 65 32 330 50 0 0 : <var.font2>><src.targ.name>

dhtmlgump 15 52 330 73 0 0 Adet
dhtmlgump 65 52 330 73 0 0 : <var.font2>><strsub 26 40 <src.targ.name>> adet

dtextentry 33 120 30 20 0 1 <src.targ.morex>
dhtmlgump 75 120 330 50 0 0 <var.font2>>adet al.

button 13 120 2714 2715 1 0 1

[DIALOG d_keg_bilgi BUTTON]
ON=1
if (<argtxt[1]> > <eval <src.targ.morex>>)
src.sys_error Bu keg'de girdiğiniz miktar kadar potion bulunmuyor.
return 1
else
src.newitem <eval <src.targ.tag.potion>>
src.act.more2 <src.targ.MORE2>
src.act.attr 0
src.act.timer-1
src.act.bounce
try uid.<eval <src.tag.clickuid>>.morex -=1
return 1
endif

[EOF]
gene ayrı ayrı geliyor çiftli olmasını istiyorum
Novice
-0.500001
Potionun id sini i_empty_bottle yapıcan
yaptım gene olmadı sorunu bi anlamadm
Ozmn Spheren Görmüyo Yada Bug vs Sorun Wardır Baska TürLü Hata olucaqını Sanmıyorum yada Script'ti yanLıs geçiriYorsun...
sanırım bu işini görebilir ...

[function esyalar]
src.potsay
src.dialogclose d_potionss
src.dac potionss

[function potsay]
src.ctag0.healp 0
src.ctag0.curep 0
src.ctag0.refreshp 0
src.ctag0.poip 0
src.ctag0.agilityp 0
src.ctag0.bleedp 0
src.ctag0.nsp 0
src.ctag0.tps 0
src.ctag0.bndj 0
src.ctag0.arrowss 0
forcont <findlayer.21.uid> 20
if (<baseid> == i_potion_healgreat) || (<baseid> == i_potion_heal) || (<baseid> == i_potion_healless)
src.ctag0.healp <eval <src.findid.i_potion_healgreat.amount>+<src.findid.i_potion_heal.amount>+<src.findid.i_potion_healless.amonut>>
elseif (<baseid> == i_potion_curegreat) || (<baseid> == i_potion_cure) || (<baseid> == i_potion_cureless)
src.ctag0.curep <eval <src.findid.i_potion_curegreat.amount>+<src.findid.i_potion_cure.amount>+<src.findid.i_potion_cureless.amonut>>
elseif (<baseid> == i_potion_refresh) || (<baseid> == i_potion_refreshtotal)
src.ctag0.refreshp <eval <src.findid.i_potion_refresh.amount>+<src.findid.i_potion_refreshtotal.amount>>
elseif (<baseid> == i_potion_poisonless) || (<baseid> == i_potion_poison) || (<baseid> == i_potion_poisondeadly)
src.ctag0.poip <eval <src.findid.i_potion_poisonless.amount>+<src.findid.i_potion_poison.amount>+<src.findid.i_potion_poisondeadly.amonut>>
elseif (<baseid> == i_potion_agility) || (<baseid> == i_potion_agilitygreat)
src.ctag0.agilityp <eval <src.findid.i_potion_agility.amount>+<src.findid.i_potion_agilitygreat.amount>>
elseif (<baseid> == i_potion_bleed)
src.ctag0.bleedp <eval <src.findid.i_potion_bleed.amount>>
elseif (<baseid> == i_potion_nightsight)
src.ctag0.nsp <eval <src.findid.i_potion_nightsight.amount>>
elseif (<baseid> == i_arrow)
src.ctag0.arrowss <eval <src.findid.i_arrow.amount>>
elseif (<baseid> == i_bandage)
src.ctag0.bndj <eval <src.findid.i_bandage.amount>>
elseif (<baseid> == i_pouch_trapped)
src.ctag0.tps +=1
endif

endfor

[DIALOG d_potionss]
130,30
PAGE 0
Resizepic 0 0 20090 400 430
Resizepic 60 70 3000 300 3 // Cizgi

Resizepic 310 80 3000 50 20
Resizepic 310 105 3000 50 20
Resizepic 310 130 3000 50 20
Resizepic 310 155 3000 50 20
Resizepic 310 180 3000 50 20
Resizepic 310 205 3000 50 20
Resizepic 310 230 3000 50 20
//Resizepic 310 255 3000 50 20
Resizepic 310 280 3000 50 20
Resizepic 310 305 3000 50 20
Resizepic 310 330 3000 50 20

dhtmlgump 20 15 400 100 0 0 <def.h6><def.bfont_white><def.bfont_size5>              Çantanızdaki Eşyalar <var.br>><def.bfont_size3>(not: greater cure/heal ve normal cure/heal sayıları aynı tutulmaktadır, örneğin: 1 g.heal ve 1.heal var ise göreceğiniz sayı 2'dir)

Tilepic 10 82 3851 //refresh
dhtmlgump 60 82 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Refresh Potion
dhtmlgump 315 81 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.refreshp>>

Tilepic 25 105 3848 // Agility
dhtmlgump 60 107 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Agility Potion
dhtmlgump 315 106 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.agilityp>>

Tilepic 25 130 3848 // Bleed
dhtmlgump 60 132 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Bleed potion
dhtmlgump 315 131 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.bleedp>>

Tilepic 13 158 0f0c // heal
dhtmlgump 60 157 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Heal Potion
dhtmlgump 315 156 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.healp>>

Tilepic 15 181 3847 // cure
dhtmlgump 60 182 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Cure Potion
dhtmlgump 315 181 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.curep>>

Tilepic 21 205 3850 // poison	
dhtmlgump 60 207 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Poison Potion
dhtmlgump 315 206 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.poisonp>>

Tilepic 25 230 3846 // Nightsight
dhtmlgump 60 232 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Nightsight
dhtmlgump 315 231 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.nsp>>

//Tilepic 24 260 5042 // elven
//dhtmlgump 60 257 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Arrow
//Textentry 312 256 42 25 850 7 7

Tilepic 25 285 0f3f //Arrow
dhtmlgump 60 282 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Arrow
dhtmlgump 315 281 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.arrowss>>

Tilepic 21 310 0e21 // Bandaj
dhtmlgump 60 307 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Bandaj
dhtmlgump 315 305 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.bndj>>

Tilepic 23 337 09b0 // Tp
dhtmlgump 60 332 200 25 0 0 <def.h6><def.bfont_dred><def.bfont_size4> Tp
dhtmlgump 315 331 50 25 0 0 <var.fontkirmizi>><eval <src.ctag0.tps>>

Button 40 382 4006 4005 1 0 1
dhtmlgump 68 385 200 25 0 0 <def.h6><def.bfont_red><def.bfont_size3> Reglere göz at


[Dialog d_potionss Text]
0
0
0
0
0
0
0
0
0
0
0

[Dialog d_potionss BUTTON]
ON=1
src.regs

[ITEMDEF i_keg_potion]
NAME=empty potion keg
ID=i_keg_wood
TYPE=t_script
WEIGHT=5
SKILLMAKE=TINKERING 80.0
RESOURCES=10 i_ingot_iron, 1 i_barrel_open, 1 i_barrel_hoops
VALUE=100

CATEGORY=Unique Items
SUBSECTION=Tinker
DESCRIPTION=empty potion Keg

ON=@Create
TAG.POTION=0
MORE2=0
TIMER=-1
	
ON=@Click
IF (<MOREX>)
MESSAGE @0481 [<MOREX>]
message @0481 <name>
return 1
else
message @0481 <name>
return 1
endif

ON=@DClick
if (<eval <morex> > 0)
target @0713,,1 Lütfen iksiri boşaltmak için boş şişe seçiniz.
return 1
elseif (<eval <tag.dolduruyoruz>> == 1)
target
return 1
elseif (<eval <morex>> ==0)
src.dialog d_keg_doldur
src.tag.clickuid <uid>
return 1
endif

ON=@targon_Cancel
src.sys_error İksir doldurmadınız.
tag.dolduruyoruz 0
return 1

ON=@Targon_Char
TARGET @38,1,1 Lütfen bir iksir şişesi seçiniz.
RETURN 1
	
ON=@Targon_Ground
TARGET @38,1,1 Lütfen bir iksir şişesi seçiniz.
RETURN 1

ON=@Targon_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @07a1,1,1 Sadece üstünüzdeki eşyaları kullanabilirsiniz.
endif

IF <SRC.TARG.BASEID>==i_bottle_empty
IF <MOREX> = 0
src.sysmessage @07a1,1,1 Fıçıdaki iksiri şişeye doldurmaya çalıştınız ama fıçıda iksir yok.
TARGET @38,,1 Fıçıyı doldurmak için lütfen dolu bir iksir şişesi seçiniz.
RETURN 1
ENDIF
src.sms Fıçıdaki iksirin bir kısmını boş bir şişeye bosalttınız.
SRC.SOUND=snd_Z_END_LIQUID
SRC.NEWITEM=<TAG.POTION>
SRC.ACT.MORE2=<MORE2>
SRC.ACT.ATTR=0
SRC.ACT.TIMER=-1
SRC.ACT.BOUNCE
MOREX=<MOREX> - 1
	IF (<MOREX> == 0)
	NAME=
	TAG.POTION=0
	MORE2=0
	ELSE
	NAME=<SRC.ACT.NAME> keg
	ENDIF
	SRC.TARG.CONSUME 1
	TARGET
	RETURN 1
ELSEIF <SRC.TARG.TYPE> != T_POTION
	src.sysmessage @07a1,1,1 Bu bir iksir değil!
	TARGET
	RETURN 1
ELSEIF <TAG.POTION> && (<SRC.TARG.BASEID>!=<TAG.POTION>)
	src.sysmessage @07a1,1,1 Fıçıya sadece bir çeşit iksir koyabilirsiniz!
	TARGET
	RETURN 1
elseif (<src.targ.amount> > 255)
	src.sysmessage @07a1,1,1 Fıçı sınırı 255.
	return 1
ELSEIF (<MOREX> = 250)
	src.sysmessage @07a1,1,1 Fıçı ağzına kadar dolmus.
	src.sysmessage @07a1,1,1 İçindekileri boşaltmak için boş şişe seçiniz.
	TARGET
	RETURN 1
ELSEIF (<MOREX>==0)
	TAG.POTION=<SRC.TARG.BASEID>
ENDIF
MORE2=<SRC.TARG.MORE2>
MOREX=(<MOREX> + <src.targ.amount>)
NAME=a <SRC.TARG.NAME> keg (<MOREX>)
SRC.SOUND=snd_Z_END_LIQUID
src.sysmessage @07a1,1,1 Fıçıyı <SRC.TARG.NAME> ile doldurdunuz.
SRC.TARG.REMOVE
SRC.NEWITEM=i_bottle_empty,<src.targ.amount>
SRC.ACT.ATTR=0
SRC.ACT.BOUNCE
src.act.update
TARGET
RETURN 1

[ITEMDEF i_potion_bleed]
ID=i_bottle_empty
TYPE=T_POTION
NAME=Bleed Potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 70.0

ON=@Create
COLOR=0481
MORE1=s_Cure
MORE2=40.1

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

ON=@DClick
if (<topobj.uid> != <src.uid>)
src.sysmessage @07a1,1,1 Bunu kullanabilmeniz için çantanızda olmalı.
return 1
endif
if (<src.findid.i_rune_poison>)
src.sysmessage @07a1,1,1 Poison etkisi varken içemezsiniz.
return 1
endif
if (<src.findlayer(50).baseid> == i_handr_1)
src.sysmessage @07a1,1,1 Başka bir potion içmek için biraz beklemelisiniz.
return 1
endif

if !(rand(5) == 1)
if (<src.findid.i_bleeding>)
src.findid.i_bleeding.remove
src.effect snd_spell_poison
src.effect 3,0376a,2,10,1
src.sayua 0835,6,6,0 * yarayı tedavi eder *
src.consume 1 i_potion_bleed
src.act i_bottle_empty
else
src.consume 1 i_potion_bleed
src.act i_bottle_empty
endif
endif

[ITEMDEF i_potion_Agility]
ID=i_bottle_empty
NAME=agility potion
TYPE=T_POTION
TDATA1=i_bottle_empty
WEIGHT=0

RESOURCES=i_reag_blood_moss, i_bottle_empty
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Agility
MORE2={ 15.0 60.0 }
color=084a

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_AgilityGreat]
ID=i_bottle_empty
TYPE=T_POTION
NAME=Greater Agility Potion
TDATA1=i_bottle_empty
WEIGHT=0

RESOURCES=i_reag_blood_moss 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_Agility
MORE2={ 70.0 80.0 }
color=084a

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_CureLess]
ID=i_bottle_empty
TYPE=T_POTION
NAME=Lesser Cure Potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0

ON=@Create
MORE1=s_Cure
MORE2=40.0
color 02c

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cureless
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cureless
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_Cure]
NAME=Cure Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_Cure
MORE2=60.0
color 02c

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cure
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cure
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_CureGreat]
NAME=Greater Cure Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
WEIGHT=0

RESOURCES=i_reag_garlic 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_cure
MORE2=151.0
color 02c

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

//ON=@DClick
//if <src.findid.i_rune_poison>
//if (<src.findid.i_rune_poison.moreY> > <more2>)
//src.effect snd_spell_poison
//src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
//src.consume 1 i_potion_curegreat
//src.findid.i_rune_poison.morey -=50
//return 1
//endif
//endif

//if <src.findid.i_rune_poison_field>
//if (<src.findid.i_rune_poison_field.moreY> > <more2>)
//src.effect snd_spell_poison
//src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
//src.consume 1 i_potion_curegreat
//src.findid.i_rune_poison_field.morey -=50
//return 1
//endif
//endif

[ITEMDEF i_potion_ExplosionLess]
NAME=Lesser Explosion Potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 5.0

ON=@Create
MORE1=s_explosion
MORE2=12.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
src.sysmessage @07a1,1,1 Burada patlayici madde kullanamazsınız.
return 1
elseif (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Safe alan')
src.sysmessage @07a1,1,1 Safe'de patlatamasınız.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
	src.newitem i_mem_exp
	src.act.equip
	src.act.timer 5
endif

[ITEMDEF i_mem_exp]
ID=i_memory
TYPE=t_eq_script
NAME=explosion delay

ON=@Create
ATTR=attr_decay|attr_invis

ON=@Timer
REMOVE
RETURN 1

[ITEMDEF i_potion_Explosion]
NAME=Explosion Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_explosion
MORE2=30.0
color=080a


On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Safe alan')
src.sysmessage @07a1,1,1 Safe'de patlatamasınız.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Safe alan')
src.sysmessage @07a1,1,1 Safe'de patlatamasınız.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
src.newitem i_mem_exp
src.act.equip
src.act.timer 6
endif

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_ExplosionGreat]
NAME=Greater Explosion Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_explosion
MORE2=50.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Safe alan')
src.sysmessage @07a1,1,1 Safe'de patlatamasınız.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Safe alan')
src.sysmessage @07a1,1,1 Safe'de patlatamasınız..
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
src.newitem i_mem_exp
src.act.equip
src.act.timer 9
endif

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_xp11]
NAME=Super Explosion Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
ATTR=attr_newbie|attr_invis
MORE1=s_explosion
MORE2=120.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Safe alan')
src.sysmessage @07a1,1,1 Safe'de patlatamasınız.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
	src.st 0846,0,0,0 Burada patlayici madde kullanamazsiniz.
	return 1
endif

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_HealLess]
NAME=Lesser Heal Potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0
TYPE=T_POTION
TDATA1=i_bottle_empty

On=@Create
MORE1=s_heal
MORE2=35.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.sysmessage @07a1,1,1 Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding2>)
src.sysmessage @07a1,1,1 Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.sysmessage @07a1,1,1 Poison etkisindeyken bunu icemezsiniz.
return 1
endif

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_Heal]
NAME=Heal Potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0
TYPE=T_POTION
TDATA1=i_bottle_empty
VALUE=29

ON=@Create
MORE1=s_greater_heal
MORE2=55.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.sysmessage @07a1,1,1 Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding>)
src.sysmessage @07a1,1,1 Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.sysmessage @07a1,1,1 Poison etkisindeyken bunu icemezsiniz.
return 1
endif

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_HealGreat]
NAME=Greater Heal Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_ginseng 7, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 55.0
WEIGHT=0

ON=@Create
MORE1=s_greater_heal
MORE2=80.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.sysmessage @07a1,1,1 Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding>)
src.sysmessage @07a1,1,1 Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.sysmessage @07a1,1,1 Poison etkisindeyken bunu icemezsiniz.
return 1
endif

on=@click
message @0794 <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_Nightsight]
NAME=Nightsight Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_spider_silk 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0
WEIGHT=0

ON=@Create
MORE1=s_night_sight
MORE2=100.0
color=0452

on=@click
message @<COLOR> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_PoisonLess]
NAME=Lesser Poison Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0

ON=@Create
MORE1=s_poison
MORE2=40.0
color=07d3

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_Poison]
NAME=Poison Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.1

ON=@Create
MORE1=s_poison
MORE2=50.0
color=07d3

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_PoisonGreat]
NAME=Greater Poison Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 4, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 55.1

ON=@Create
MORE1=s_poison
MORE2=90.0
color=07d3

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1


[ITEMDEF i_potion_PoisonDeadly]
NAME=Deadly Poison Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 8, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 90.1
WEIGHT=0

ON=@Create
MORE1=s_poison
MORE2=105.0
color=07d3

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1


[ITEMDEF i_potion_Refresh]
NAME=Refresh Potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0
WEIGHT=0

ON=@Create
MORE1=s_Refresh
MORE2=25.0
color=0845

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_RefreshTotal]
ID=i_bottle_empty
NAME=Total Refresh Potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_Refresh
MORE2=50.0
color 0845

on=@click
message @<color> <amount> <name>
src.sysmessage @07a1,1,1 <name> Adet Sayınız : <amount>
return 1

[ITEMDEF i_potion_Strength]
ID=i_bottle_WHITE
NAME=strength potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_strength
MORE2=60.0
color=0835

ON=@DCLICK
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_StrengthGreat]
NAME=greater strength potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 45.0

ON=@Create
MORE1=s_strength
MORE2=100.0
color=0835

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

// These are custom potions

[ITEMDEF i_potion_Shrink]
ID=i_bottle_WHITE
NAME=shrink potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_batwing 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 100.0

ON=@Create
MORE1=s_shrink
MORE2=100.0
COLOR=color_gray_lt

[ITEMDEF i_potion_Invisibility]
ID=i_bottle_empty
NAME=invisibility potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightsight 10, i_reag_ginseng 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 99.9

ON=@Create
MORE1=s_invisibility
MORE2=100.0
COLOR=0

[ITEMDEF i_potion_Mana]
ID=i_bottle_empty
NAME=mana refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic 5,i_reag_ginseng 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 90.0


ON=@Create
MORE1=s_mana
MORE2=20.0
COLOR=color_gray_lt

[ITEMDEF i_potion_ManaTotal]
ID=i_bottle_empty
NAME=total mana refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic 10,i_reag_ginseng 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 98.0, Magery 50.0

ON=@Create
MORE1=s_mana
MORE2=50.0
COLOR=color_gray_lt

// Extended potions.

[ITEMDEF i_potion_Beastform]
// This potion polymorphs you into an animal for a while.
// The animal it turns you into is determined when you make the potion (you can use taste id to determine which animal it does).
ID=i_bottle_WHITE
NAME=beastform potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_BeastForm
MORE2=60.0

[ITEMDEF i_potion_Chameleon]
// This potion makes your skin match the colors of whatever is behind you.
ID=i_bottle_WHITE
NAME=chameleon skin potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic, i_reag_spider_silk, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Chameleon
MORE2=60.0

[ITEMDEF i_potion_Clever]
// This potion gives a temporary boost to intelligence.
ID=i_bottle_WHITE
NAME=cleverness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Cunning
MORE2=70.0

[ITEMDEF i_potion_Clever_Great]
// This potion gives a temporary boost to intelligence.
ID=i_bottle_WHITE
NAME=great cleverness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=2 i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Cunning
MORE2=100.0

[ITEMDEF i_potion_Clumsiness]
// This potion lowers your dexterity temporarily.
ID=i_bottle_WHITE
NAME=clumsiness potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Clumsy
MORE2=70.0

[ITEMDEF i_potion_Confusion]
// This potion lowers your intelligence temporarily.
ID=i_bottle_WHITE
NAME=confusion potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_Nightshade, i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_feeblemind
MORE2=50.0

[ITEMDEF i_potion_Forget_Less]
ID=i_bottle_WHITE
NAME=esser forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_forget
MORE2=40.0

[ITEMDEF i_potion_Forget]
ID=i_bottle_WHITE
NAME=forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 30.0

ON=@Create
MORE1=s_forget
MORE2=60.0

[ITEMDEF i_potion_Forget_Great]
// This potion permanently lowers one skill.
// You can tell which skill the potion lowers by tasting it.
ID=i_bottle_WHITE
NAME=greater forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, 2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 70.0

ON=@Create
MORE1=s_forget
MORE2=100.0

[ITEMDEF i_potion_Gender]
// This potion permanently changes your gender.
ID=i_bottle_WHITE
NAME=gender swap potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_reag_mandrake_root, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Gender_Swap
MORE2=100.0

[ITEMDEF i_potion_Trance]
// This potion temporarily increases your meditation skill.
ID=i_bottle_WHITE
NAME=trance potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl,  2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Trance
MORE2=50.0

[ITEMDEF i_potion_Trance_Great]
// This potion temporarily increases your meditation skill.
ID=i_bottle_WHITE
NAME=greater trance potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_reag_mandrake_root, 2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Trance
MORE2=100.0

[ITEMDEF i_potion_Restore]
// This potion increases both your hit points and your stamina.
RESOURCES=i_reag_black_pearl 5,i_reag_mandrake_root 3, i_bottle_EMPTY
ID=i_bottle_WHITE
NAME=restoration potion
TYPE=T_POTION
TDATA1=i_bottle_empty
SKILLMAKE=ALCHEMY 75.0

ON=@Create
MORE1=s_Restore
MORE2=75.0

[ITEMDEF i_potion_Restore_Great]
// This potion increases both your hit points and your stamina.
RESOURCES=i_reag_black_pearl 10,i_reag_mandrake_root 3, i_bottle_EMPTY
ID=i_bottle_WHITE
NAME=greater restoration potion
TYPE=T_POTION
TDATA1=i_bottle_empty
SKILLMAKE=ALCHEMY 85.0

ON=@Create
MORE1=s_Restore
MORE2=125.0

[ITEMDEF i_potion_Sustenance]
// This potion serves to fill you up. (Remember, healing rate depends on how well fed you are!)
// It comes in multiple strengths:
// Greater: RESOURCES=2 i_reag_ginseng, 2 i_reag_mandrake_root, i_bottle_EMPTY
NAME=sustenance potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_ginseng, i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Sustenance
MORE2=60.0

[ITEMDEF i_potion_Monster]
// This potion polymorphs you into a monster for a while.
// The monster it turns you into is determined when you make the potion (you can use taste id to determine which animal it does).
NAME=monster form potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss, i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Monster_Form
MORE2=100.0

[ITEMDEF i_potion_Particle]
// This potion turns you into an immobile, but untargetable particle system for a while.
NAME=particle form potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_reag_blood_moss, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Particle_Form
MORE2=60.0

[ITEMDEF i_potion_Shield]
// This potion erects a temporary force field around you. Nobody approaching will be able to get within 1 tile of you, though you can move close to them if you wish.
NAME=shield potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic, i_reag_sulfur_ash, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Shield
MORE2=100.0

[ITEMDEF i_potion_Steelskin]
// This potion turns your skin into steel, giving a boost to your AR.
NAME=steelskin potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic, i_reag_ginseng, 2 i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Steelskin
MORE2=100.0

[ITEMDEF i_potion_Stoneskin]
// This potion turns your skin into stone, giving a boost to your AR.
NAME=stoneskin potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightsight 5,i_reag_ginseng 5,i_reag_mandrake_root 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 80.0

ON=@Create
MORE1=s_Stoneskin
MORE2=150.0

[ITEMDEF i_potion_Weakness]
// This potion temporarily lowers your strength.
NAME=weakness potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_weaken
MORE2=100.0

[COMMENT ITEMDEF i_potion_FloatLess]
ID=i_bottle_WHITE
NAME=lesser float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Float
MORE2=30.0
COLOR=COLOR_CYAN

[COMMENT ITEMDEF i_potion_Float]
ID=i_bottle_WHITE
NAME=float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_Float
MORE2=50.0
COLOR=COLOR_CYAN

[COMMENT ITEMDEF i_potion_FloatGreat]
ID=i_bottle_WHITE
NAME=greater float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_Float
MORE2=100.0
COLOR=COLOR_CYAN

[ITEMDEF i_potion_Explosion_Superior]
NAME=superior explosion potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_volcanic_ash 10, i_reag_dragon_blood 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 99.9, MAGERY 50.0

ON=@Create
color=0c
MORE1=s_explosion
MORE2=150.0

[ITEMDEF i_potion_Lava]
ID=i_bottle_empty
NAME=lava bomb
TYPE=T_POTION
TDATA1=0

RESOURCES=i_reag_volcanic_ash 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_lava
MORE2=50.0
COLOR=color_violet_lt



[ITEMDEF i_potion_blood]
NAME=blood potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0
TYPE=T_POTION
TDATA1=i_bottle_empty
VALUE=29

ON=@Create
MORE1=s_greater_heal
MORE2=55.0
color 026

On=@DClick
if strmatch('<src.title>','The Vampire'))
else
return 1
src.st 0846,0,0,0 Bunu sadece vampirler icebilir...
endif
//src.findlayer(2).unequip

[DIALOG d_keg_doldur]
150,50
PAGE 0
nomove

resizepic 0 0 3500 350 120

tilepic 150 70 6464
tilepic 160 80 6464

dhtmlgump 25 10 330 73 0 0 <var.font2>><def.center>Keg Doldurma İşlemi
dhtmlgump 35 32 330 73 0 0 Keg için doldurmak istediğiniz potion'u seçiniz.
button 13 30 2714 2715 1 0 1

[DIALOG d_keg_doldur BUTTON]
ON=1
src.targ.tag0.dolduruyoruz 1
try uid.<eval <src.tag.clickuid>>.dclick
src.sys_error Lütfen doldurmak istediğiniz iksiri seçiniz.

[DIALOG d_keg_bilgi]
150,50
PAGE 0
nomove

resizepic 0 0 3500 350 210

resizepic 28 120 3000 45 21

tilepic 150 160 6464
tilepic 160 170 6464

dhtmlgump 25 10 330 50 0 0 <var.font2>><def.center>Keg Bolaştma İşlemi
dhtmlgump 15 32 330 50 0 0 Keg
dhtmlgump 65 32 330 50 0 0 : <var.font2>><src.targ.name>

dhtmlgump 15 52 330 73 0 0 Adet
dhtmlgump 65 52 330 73 0 0 : <var.font2>><strsub 26 40 <src.targ.name>> adet

dtextentry 33 120 30 20 0 1 <src.targ.morex>
dhtmlgump 75 120 330 50 0 0 <var.font2>>adet al.

button 13 120 2714 2715 1 0 1

[DIALOG d_keg_bilgi BUTTON]
ON=1
if (<argtxt[1]> > <eval <src.targ.morex>>)
src.sys_error Bu keg'de girdiğiniz miktar kadar potion bulunmuyor.
return 1
else
src.newitem <eval <src.targ.tag.potion>>
src.act.more2 <src.targ.MORE2>
src.act.attr 0
src.act.timer-1
src.act.bounce
try uid.<eval <src.tag.clickuid>>.morex -=1
return 1
endif

[function poigain]
if ((<skilllock[30]> == 0) && (<skilltotal> < 800.0))
if (<poisoning> < 100.0)
poisoning += 1
endif
endif

[EOF]


Bu konu Zippos tarafından düzenlendi(2009-06-29 21:20, 14 yıl önce)
@Zippos Scripting'i Cod İçine Alırsan Sevinirim.

@Manifest Soruna Gelince.

1. Potion Sorunun İçin Şöyle Yap.


[ITEMDEF i_keg_potion]
NAME=empty potion keg
ID=i_keg_wood
TYPE=t_script
WEIGHT=20
SKILLMAKE=TINKERING 80.0
RESOURCES=10 i_ingot_iron, 1 i_barrel_open, 1 i_barrel_hoops
VALUE=650

CATEGORY=Unique Items
SUBSECTION=Tinker
DESCRIPTION=empty potion Keg

ON=@Create
TAG.POTION=0
MORE2=0
TIMER=-1
	
ON=@Click
IF (<MOREX>)
MESSAGE @0481 [<MOREX>]
message @0481 <name>
return 1
else
message @0481 <name>
return 1
endif

ON=@DClick
if (<eval <morex> > 0)
target @0713,,1 Lütfen iksiri boşaltmak için boş şişe seçiniz.
return 1
elseif (<eval <tag.dolduruyoruz>> == 1)
target
return 1
elseif (<eval <morex>> ==0)
src.dialog d_keg_doldur
src.tag.clickuid <uid>
return 1
endif

ON=@targon_Cancel
src.sys_error İksir doldurmadınız.
tag.dolduruyoruz 0
return 1

ON=@Targon_Char
TARGET @38,1,1 Lütfen bir iksir şişesi seçiniz.
RETURN 1
	
ON=@Targon_Ground
TARGET @38,1,1 Lütfen bir iksir şişesi seçiniz.
RETURN 1

ON=@Targon_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Sadece üstünüzdeki eşyaları kullanabilirsiniz.
endif

IF <SRC.TARG.BASEID>==i_bottle_empty
IF <MOREX> = 0
src.smsx Fıçıdaki iksiri şişeye doldurmaya çalıştınız ama fıçıda iksir yok.
TARGET @38,,1 Fıçıyı doldurmak için lütfen dolu bir iksir şişesi seçiniz.
RETURN 1
ENDIF
src.sms Fıçıdaki iksirin bir kısmını boş bir şişeye bosalttınız.
SRC.SOUND=snd_Z_END_LIQUID
SRC.NEWITEM=<TAG.POTION>
SRC.ACT.MORE2=<MORE2>
SRC.ACT.ATTR=0
SRC.ACT.TIMER=-1
SRC.ACT.BOUNCE
MOREX=<MOREX> - 1
	IF (<MOREX> == 0)
	NAME=
	TAG.POTION=0
	MORE2=0
	ELSE
	NAME=<SRC.ACT.NAME> keg
	ENDIF
	SRC.TARG.CONSUME 1
	TARGET
	RETURN 1
ELSEIF <SRC.TARG.TYPE> != T_POTION
	src.smsx Bu bir iksir değil!
	TARGET
	RETURN 1
ELSEIF <TAG.POTION> && (<SRC.TARG.BASEID>!=<TAG.POTION>)
	src.smsx Fıçıya sadece bir çeşit iksir koyabilirsiniz!
	TARGET
	RETURN 1
ELSEIF (<MOREX> = 250)
	src.smsx Fıçı ağzına kadar dolmus.
	src.smsx İçindekileri boşaltmak için boş şişe seçiniz.
	TARGET
	RETURN 1
ELSEIF (<MOREX>==0)
	TAG.POTION=<SRC.TARG.BASEID>
ENDIF
MORE2=<SRC.TARG.MORE2>
MOREX=(<MOREX> + <src.targ.amount>)
NAME=a <SRC.TARG.NAME> keg (<MOREX>)
SRC.SOUND=snd_Z_END_LIQUID
src.smsx Fıçıyı <SRC.TARG.NAME> ile doldurdunuz.
SRC.TARG.REMOVE
SRC.NEWITEM=i_bottle_empty,<src.targ.amount>
SRC.ACT.ATTR=0
SRC.ACT.BOUNCE
src.act.update
TARGET
RETURN 1

[ITEMDEF i_potion_bleed1]
ID=i_bottle_empty
TYPE=T_POTION
NAME=bleed potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 70.0

ON=@Create
COLOR=060
MORE1=s_Cure
MORE2=40.1

ON=@DClick
if (<topobj.uid> != <src.uid>)
src.smsx Bunu kullanabilmeniz için çantanızda olmalı.
return 1
endif
if (<src.findid.i_rune_poison>)
src.smsx Poison etkisi varken içemezsiniz.
return 1
endif

if !(rand(5) == 1)
if (<src.findid.i_bleeding>)
src.findid.i_bleeding.remove
src.effect snd_spell_poison
src.effect 3,0376a,2,10,1
src.sayua 0835,6,6,0 * yarayı tedavi eder *
src.consume 1 i_potion_bleed1
src.act i_bottle_empty
else
src.consume 1 i_potion_bleed1
src.act i_bottle_empty
color=060
endif
endif

[ITEMDEF i_potion_Agility1]
ID=i_bottle_empty
NAME=agility potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_bottle_empty
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Agility
MORE2={ 15.0 60.0 }
color=084a

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_AgilityGreat1]
ID=i_bottle_empty
TYPE=T_POTION
NAME=greater agility potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_Agility
MORE2={ 70.0 80.0 }
color=084a

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_CureLess1]
ID=i_bottle_empty
TYPE=T_POTION
NAME=lesser cure potion
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0

ON=@Create
MORE1=s_Cure
MORE2=40.0
color 02c

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cureless
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cureless
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_Cure1]
NAME=cure potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_Cure
MORE2=60.0
color 02c

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cure
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_cure
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_CureGreat1]
NAME=greater cure potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_cure
MORE2=151.0
color 02c

ON=@DClick
if <src.findid.i_rune_poison>
	if (<src.findid.i_rune_poison.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_curegreat
		src.findid.i_rune_poison.morey -=1
		return 1
	endif
endif

if <src.findid.i_rune_poison_field>
	if (<src.findid.i_rune_poison_field.moreY> > <more2>)
		src.effect snd_spell_poison
		src.sysmessage @0842,,1 İksir zehirin etkisini azalttı.
		src.consume 1 i_potion_curegreat
		src.findid.i_rune_poison_field.morey -=1
		return 1
	endif
endif

[ITEMDEF i_potion_ExplosionLess1]
NAME=lesser explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 5.0

ON=@Create
MORE1=s_explosion
MORE2=12.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
src.smsx Burada patlayici madde kullanamazsiniz.
return 1
elseif (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
	src.newitem i_mem_exp
	src.act.equip
	src.act.timer 5
endif

[ITEMDEF i_mem_exp]
ID=i_memory
TYPE=t_eq_script
NAME=explosion delay

ON=@Create
ATTR=attr_decay|attr_invis

ON=@Timer
REMOVE
RETURN 1

[ITEMDEF i_potion_Explosion1]
NAME=explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_explosion
MORE2=30.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
src.smsx Burada patlayici madde kullanamazsiniz.
return 1
elseif (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
src.newitem i_mem_exp
src.act.equip
src.act.timer 6
endif

[ITEMDEF i_potion_ExplosionGreat1]
NAME=greater explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_explosion
MORE2=50.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
src.smsx Burada patlayici madde kullanamazsiniz.
return 1
elseif (<src.region.guarded>)
src.sysmessage @0481 GZ'de Patlamaz.
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
return 1
elseif (<src.findid.i_mem_exp>)
src.sysmessage You must wait to use another explosion potion.
return 1
else
src.newitem i_mem_exp
src.act.equip
src.act.timer 9
endif

[ITEMDEF i_xp11]
NAME=super explosion potion
ID=i_bottle_PURPLE
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_sulfur_ash 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
ATTR=attr_newbie|attr_invis
MORE1=s_explosion
MORE2=120.0

On=@Targon_Char
if (<cont>)
	drop
endif
return 1

ON=@dropon_ground
if (<region.guarded> == 1)
src.sysmessage @0481 GZ'de patlamaz.
remove
return 1
elseif (strmatch('<region.name>','Pazar Alani')
src.sysmessage @0481 Pazarda patlamaz.
remove
return 1
endif

On=@Targon_Item
if (<cont>)
	drop
endif
return  1

On=@TargOn_Ground
attr 010

ON=@DClick
if (<src.isevent.e_delucia>)
	src.st 0846,0,0,0 Burada patlayici madde kullanamazsiniz.
	return 1
endif

[ITEMDEF i_potion_HealLess1]
NAME=lesser heal potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0
TYPE=T_POTION
TDATA1=i_bottle_empty

On=@Create
MORE1=s_heal
MORE2=35.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding2>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.smsx Poison etkisindeyken bunu icemezsiniz.
return 1
endif

[ITEMDEF i_potion_Heal1]
NAME=heal potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0
TYPE=T_POTION
TDATA1=i_bottle_empty
VALUE=29

ON=@Create
MORE1=s_greater_heal
MORE2=55.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.smsx Poison etkisindeyken bunu icemezsiniz.
return 1
endif

[ITEMDEF i_potion_HealGreat1]
NAME=greater heal potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_ginseng 7, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 55.0

ON=@Create
MORE1=s_greater_heal
MORE2=80.0
color=4044

on=@dclick
if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_bleeding>)
src.smsx Bleeding etkisindeyken bunu icemezsiniz.
return 1
endif

if (<src.findid.i_rune_poison>)
src.smsx Poison etkisindeyken bunu icemezsiniz.
return 1
endif

[ITEMDEF i_potion_Nightsight1]
NAME=nightsight potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_spider_silk 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0.0

ON=@Create
MORE1=s_night_sight
MORE2=100.0
color=0452

[ITEMDEF i_potion_PoisonLess1]
NAME=lesser poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0

ON=@Create
MORE1=s_poison
MORE2=40.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 40.0)
src.smsx Poison skilliniz en az 40.0 olmalıdır.
return 1
endif
if (<src.armslore> < 40.0)
src.smsx Armslore skilliniz en az 40.0 olmalıdır.
return 1
endif
target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
	SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.poigain
src.azbekle
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.azbekle
src.poigain
endif

src.targ.morez 60
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_Poison1]
NAME=poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.1

ON=@Create
MORE1=s_poison
MORE2=50.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 50.0)
src.smsx Poison skilliniz en az 50.0 olmalıdır.
return 1
endif
if (<src.armslore> < 40.0)
src.smsx Armslore skilliniz en az 50.0 olmalıdır.
return 1
endif

target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.poigain
src.azbekle
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.azbekle
src.poigain
endif

src.targ.morez 80
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_PoisonGreat1]
NAME=greater poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 4, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 55.1

ON=@Create
MORE1=s_poison
MORE2=90.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 80.0)
src.smsx Poison skilliniz en az 80.0 olmalıdır.
return 1
endif
if (<src.armslore> < 40.0)
src.smsx Armslore skilliniz en az 80.0 olmalıdır.
return 1
endif

target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
	SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.azbekle
src.poigain
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.poigain
src.azbekle
endif

src.targ.morez 100
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_PoisonDeadly1]
NAME=deadly poison potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_nightshade 8, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 90.1

ON=@Create
MORE1=s_poison
MORE2=105.0
color=07d3

On=@Dclick
if (<src.findid.i_azbekle>)
src.smsx Bir süre beklemelisiniz.
return 1
endif
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Çantanızda olmalı.
return 1
endif
if (<src.poisoning> < 99.9)
src.smsx Poison skilliniz en az 99.0 olmalıdır.
return 1
endif
if (<src.armslore> < 99.0)
src.smsx Armslore skilliniz en az 90.0 olmalıdır.
return 1
endif
target
src.smsx Hangi silaha zehir sürmek istiyorsunuz.
return 1

ON=@TargOn_Char
	SRC.smsx <src.targ.name> bir silah değil.
RETURN 1

ON=@TargOn_Item
if !(<src.targ.topobj.uid> == <src.uid>)
src.smsx Hedefe ulaşamıyorsunuz.
return 1
endif

if ((<src.targ.type> == t_weapon_mace_staff) || (<src.targ.type> == t_weapon_bow) || (<src.targ.type> == t_weapon_xbow) || (<src.targ.type> == t_weapon_mace_smith))
src.smsx Bu silaha zehir süremezsiniz.
return 1
endif

//if ((<src.targ.type> == t_weapon_fence) || (<src.targ.type> == t_weapon_sword) || (<src.targ.type> == t_weapon_mace_pick) || (<src.targ.type> == t_weapon_mace_smith) || (<src.targ.type> == t_weapon_mace_sharp) || (<src.targ.type> == t_weapon_axe))
//if (<src.targ.morey> > 79.9)
//src.smsx [+12] ve [+15] silahlara zehir süremezsiniz.
//return 1
//endif

if (<src.targ.morez> > 99)
src.smsx Bu silah yeterince zehirli.
return 1
endif

if (<src.targ.morez> < 100) && (<src.targ.morez> > 0)
src.smsx Silahın zehrini tazelediniz.
src.targ.bounce
src.poigain
src.azbekle
endif

if (<src.targ.morez> == 0)
src.smsx Zehri başarıyla sürdünüz.
src.targ.bounce
src.poigain
src.azbekle
endif

src.targ.morez 130
if (<amount> > 1)
amount -=1
return 1
endif
remove
return 1
endif
src.smsx Bu bir silah değil
return 1
endif

[ITEMDEF i_potion_Refresh1]
NAME=refresh potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 0

ON=@Create
MORE1=s_Refresh
MORE2=25.0
color=0845

[ITEMDEF i_potion_RefreshTotal]
ID=i_bottle_empty
NAME=total refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_Refresh
MORE2=50.0
color 0845

[ITEMDEF i_potion_Strength1]
ID=i_bottle_WHITE
NAME=strength potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 25.0

ON=@Create
MORE1=s_strength
MORE2=60.0
color=0835

ON=@DCLICK
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

[ITEMDEF i_potion_StrengthGreat1]
NAME=greater strength potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 45.0

ON=@Create
MORE1=s_strength
MORE2=100.0
color=0835

ON=@DCLICK
//SRC.FINDLAYER(2).UNEQUIP
IF (<SRC.FINDID.i_rune_bless>)
	SRC.FINDID.i_rune_bless.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_agility>)
	SRC.FINDID.i_rune_agility.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_cunning>)
	SRC.FINDID.i_rune_cunning.REMOVE
ENDIF
IF (<SRC.FINDID.i_rune_strength>)
	SRC.FINDID.i_rune_strength.REMOVE
ENDIF

// These are custom potions

[ITEMDEF i_potion_Shrink1]
ID=i_bottle_WHITE
NAME=shrink potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_batwing 2, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 100.0

ON=@Create
MORE1=s_shrink
MORE2=100.0
COLOR=color_gray_lt

[ITEMDEF i_potion_Invisibility]
ID=i_bottle_empty
NAME=invisibility potion
TYPE=T_POTION
TDATA1=i_bottle_empty
//RESOURCES=i_reag_nightsight 10, i_reag_ginseng 10, i_bottle_EMPTY
//SKILLMAKE=ALCHEMY 99.9

ON=@Create
MORE1=s_invisibility
MORE2=100.0
COLOR=0

[ITEMDEF i_potion_Mana1]
ID=i_bottle_empty
NAME=mana refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
//RESOURCES=i_reag_garlic 5,i_reag_ginseng 5, i_bottle_EMPTY
//SKILLMAKE=ALCHEMY 90.0


ON=@Create
MORE1=s_mana
MORE2=20.0
COLOR=color_gray_lt

[ITEMDEF i_potion_ManaTotal]
ID=i_bottle_empty
NAME=total mana refresh potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic 10,i_reag_ginseng 10, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 98.0, Magery 50.0

ON=@Create
MORE1=s_mana
MORE2=50.0
COLOR=color_gray_lt

// Extended potions.

[ITEMDEF i_potion_Beastform]
// This potion polymorphs you into an animal for a while.
// The animal it turns you into is determined when you make the potion (you can use taste id to determine which animal it does).
ID=i_bottle_WHITE
NAME=beastform potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_BeastForm
MORE2=60.0

[ITEMDEF i_potion_Chameleon]
// This potion makes your skin match the colors of whatever is behind you.
ID=i_bottle_WHITE
NAME=chameleon skin potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_garlic, i_reag_spider_silk, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Chameleon
MORE2=60.0

[ITEMDEF i_potion_Clever1]
// This potion gives a temporary boost to intelligence.
ID=i_bottle_WHITE
NAME=cleverness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Cunning
MORE2=70.0

[ITEMDEF i_potion_Clever_Great1]
// This potion gives a temporary boost to intelligence.
ID=i_bottle_WHITE
NAME=great cleverness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=2 i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Cunning
MORE2=100.0

[ITEMDEF i_potion_Clumsiness1]
// This potion lowers your dexterity temporarily.
ID=i_bottle_WHITE
NAME=clumsiness potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_blood_moss, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_Clumsy
MORE2=70.0

[ITEMDEF i_potion_Confusion1]
// This potion lowers your intelligence temporarily.
ID=i_bottle_WHITE
NAME=confusion potion
TYPE=T_POTION
TDATA1=i_bottle_empty

RESOURCES=i_reag_Nightshade, i_reag_fertile_dirt, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_feeblemind
MORE2=50.0

[ITEMDEF i_potion_Forget_Less1]
ID=i_bottle_WHITE
NAME=esser forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_forget
MORE2=40.0

[ITEMDEF i_potion_Forget1]
ID=i_bottle_WHITE
NAME=forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 30.0

ON=@Create
MORE1=s_forget
MORE2=60.0

[ITEMDEF i_potion_Forget_Great1]
// This potion permanently lowers one skill.
// You can tell which skill the potion lowers by tasting it.
ID=i_bottle_WHITE
NAME=greater forgetfulness potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blackmoor, 2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 70.0

ON=@Create
MORE1=s_forget
MORE2=100.0

[ITEMDEF i_potion_Gender1]
// This potion permanently changes your gender.
ID=i_bottle_WHITE
NAME=gender swap potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss, i_reag_ginseng, i_reag_mandrake_root, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Gender_Swap
MORE2=100.0

[ITEMDEF i_potion_Trance1]
// This potion temporarily increases your meditation skill.
ID=i_bottle_WHITE
NAME=trance potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl,  2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Trance
MORE2=50.0

[ITEMDEF i_potion_Trance_Great1]
// This potion temporarily increases your meditation skill.
ID=i_bottle_WHITE
NAME=greater trance potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_reag_mandrake_root, 2 i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Trance
MORE2=100.0

[ITEMDEF i_potion_Restore1]
// This potion increases both your hit points and your stamina.
RESOURCES=i_reag_black_pearl 5,i_reag_mandrake_root 3, i_bottle_EMPTY
ID=i_bottle_WHITE
NAME=restoration potion
TYPE=T_POTION
TDATA1=i_bottle_empty
SKILLMAKE=ALCHEMY 75.0

ON=@Create
MORE1=s_Restore
MORE2=75.0

[ITEMDEF i_potion_Restore_Great1]
// This potion increases both your hit points and your stamina.
RESOURCES=i_reag_black_pearl 10,i_reag_mandrake_root 3, i_bottle_EMPTY
ID=i_bottle_WHITE
NAME=greater restoration potion
TYPE=T_POTION
TDATA1=i_bottle_empty
SKILLMAKE=ALCHEMY 85.0

ON=@Create
MORE1=s_Restore
MORE2=125.0

[ITEMDEF i_potion_Sustenance1]
// This potion serves to fill you up. (Remember, healing rate depends on how well fed you are!)
// It comes in multiple strengths:
// Greater: RESOURCES=2 i_reag_ginseng, 2 i_reag_mandrake_root, i_bottle_EMPTY
NAME=sustenance potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_ginseng, i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Sustenance
MORE2=60.0

[ITEMDEF i_potion_Monster1]
// This potion polymorphs you into a monster for a while.
// The monster it turns you into is determined when you make the potion (you can use taste id to determine which animal it does).
NAME=monster form potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_blood_moss, i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Monster_Form
MORE2=100.0

[ITEMDEF i_potion_Particle1]
// This potion turns you into an immobile, but untargetable particle system for a while.
NAME=particle form potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_black_pearl, i_reag_blood_moss, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Particle_Form
MORE2=60.0

[ITEMDEF i_potion_Shield1]
// This potion erects a temporary force field around you. Nobody approaching will be able to get within 1 tile of you, though you can move close to them if you wish.
NAME=shield potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic, i_reag_sulfur_ash, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Shield
MORE2=100.0

[ITEMDEF i_potion_Steelskin1]
// This potion turns your skin into steel, giving a boost to your AR.
NAME=steelskin potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_garlic, i_reag_ginseng, 2 i_reag_mandrake_root, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Steelskin
MORE2=100.0

[ITEMDEF i_potion_Stoneskin1]
// This potion turns your skin into stone, giving a boost to your AR.
NAME=stoneskin potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
//RESOURCES=i_reag_nightsight 5,i_reag_ginseng 5,i_reag_mandrake_root 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 80.0

ON=@Create
MORE1=s_Stoneskin
MORE2=150.0

[ITEMDEF i_potion_Weakness1]
// This potion temporarily lowers your strength.
NAME=weakness potion
ID=i_bottle_WHITE
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_mandrake_root, i_reag_blackmoor, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_weaken
MORE2=100.0

[COMMENT ITEMDEF i_potion_FloatLess1]
ID=i_bottle_WHITE
NAME=lesser float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 1, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0

ON=@Create
MORE1=s_Float
MORE2=30.0
COLOR=COLOR_CYAN

[COMMENT ITEMDEF i_potion_Float1]
ID=i_bottle_WHITE
NAME=float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 35.0

ON=@Create
MORE1=s_Float
MORE2=50.0
COLOR=COLOR_CYAN

[COMMENT ITEMDEF i_potion_FloatGreat]
ID=i_bottle_WHITE
NAME=greater float potion
TYPE=T_POTION
TDATA1=i_bottle_empty
RESOURCES=i_reag_pumice 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 65.0

ON=@Create
MORE1=s_Float
MORE2=100.0
COLOR=COLOR_CYAN

[ITEMDEF i_potion_Explosion_Superior]
NAME=superior explosion potion
ID=i_bottle_empty
TYPE=T_POTION
TDATA1=0
RESOURCES=i_reag_volcanic_ash 10, i_reag_dragon_blood 5, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 99.9, MAGERY 50.0

ON=@Create
color=0c
MORE1=s_explosion
MORE2=150.0

[ITEMDEF i_potion_Lava]
ID=i_bottle_empty
NAME=lava bomb
TYPE=T_POTION
TDATA1=0

RESOURCES=i_reag_volcanic_ash 6, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 95.0

ON=@Create
MORE1=s_lava
MORE2=50.0
COLOR=color_violet_lt



[ITEMDEF i_potion_blood]
NAME=blood potion
ID=i_bottle_empty
RESOURCES=i_reag_ginseng 3, i_bottle_EMPTY
SKILLMAKE=ALCHEMY 15.0
TYPE=T_POTION
TDATA1=i_bottle_empty
VALUE=29

ON=@Create
MORE1=s_greater_heal
MORE2=55.0
color 026

On=@DClick
if strmatch('<src.title>','The Vampire'))
else
return 1
src.st 0846,0,0,0 Bunu sadece vampirler icebilir...
endif
//src.findlayer(2).unequip

[DIALOG d_keg_doldur]
150,50
PAGE 0
nomove

resizepic 0 0 3500 350 120

tilepic 150 70 6464
tilepic 160 80 6464

dhtmlgump 25 10 330 73 0 0 <var.font2>><def.center>Keg Doldurma İşlemi
dhtmlgump 35 32 330 73 0 0 Keg için doldurmak istediğiniz potion'u seçiniz.
button 13 30 2714 2715 1 0 1

[DIALOG d_keg_doldur BUTTON]
ON=1
src.targ.tag.dolduruyoruz 1
try uid.<eval <src.tag.clickuid>>.dclick
src.sys_error Lütfen doldurmak istediğiniz iksiri seçiniz.

[DIALOG d_keg_bilgi]
150,50
PAGE 0
nomove

resizepic 0 0 3500 350 210

resizepic 28 120 3000 45 21

tilepic 150 160 6464
tilepic 160 170 6464

dhtmlgump 25 10 330 50 0 0 <var.font2>><def.center>Keg Bolaştma İşlemi
dhtmlgump 15 32 330 50 0 0 Keg
dhtmlgump 65 32 330 50 0 0 : <var.font2>><src.targ.name>

dhtmlgump 15 52 330 73 0 0 Adet
dhtmlgump 65 52 330 73 0 0 : <var.font2>><strsub 26 40 <src.targ.name>> adet

dtextentry 33 120 30 20 0 1 <src.targ.morex>
dhtmlgump 75 120 330 50 0 0 <var.font2>>adet al.

button 13 120 2714 2715 1 0 1

[DIALOG d_keg_bilgi BUTTON]
ON=1
if (<argtxt[1]> > <eval <src.targ.morex>>)
src.sys_error Bu keg'de girdiğiniz miktar kadar potion bulunmuyor.
return 1
else
src.newitem <eval <src.targ.tag.potion>>
src.act.more2 <src.targ.MORE2>
src.act.attr 0
src.act.timer-1
src.act.bounce
try uid.<eval <src.tag.clickuid>>.morex -=1
return 1
endif

[EOF]

Hazineyle İlgili Olan Sıkıntın İçinde. Araştım Falan Deme Araştırmadığını İkimizde Biliyoruz Araştırmış Olsan Zaten Görürdün.

[function topsile]
foritems 0
if (<baseid> == i_top)
remove
try uid.<var.topcikarici>.timer 5
fix
var.kirmizigol +=1
serv.allclients sysmessage @07e5,1,1 Futbol Duyuru : Kırmızılar gol attı! (Kırmizi: <eval <var.kirmizigol>> - Beyaz : <eval <var.beyazgol>>)
serv.allclients sysmessage @033,1,1 Top 5 saniye içinde santraya gidecek.
SERV.NEWITEM i_duyurucuu
new.p 5756,1634,0

tag.sahipuid 0
SERV.ALLCLIENTS SOUND 247
tag.sahipuid 0
endif
endfor


[itemdef i_topsile]
name=Top Silici
id=i_rune_alchem_1
type=t_script
//COLOR=08b0
tag.gmsilemezdemisyucegcx 1

ON=@create
attr=attr_move_never|attr_invis
color=08b0
timer=1

ON=@timer
topsile
timer=1
return 1

ON=@dclick
return 1

on=@click
message @044,1,1 Bunlar top siliciler, lufen silmeyin!
return 1

on=@step
if (<src.dir> == 0)
src.move 0 1
elseif (<src.dir> == 1)
src.move -1 1
elseif (<src.dir> == 2)
src.move -1 0
elseif (<src.dir> == 3)
src.move -1 -1
elseif (<src.dir> == 4)
src.move 0 -1
elseif (<src.dir> == 5)
src.move 1 -1
elseif (<src.dir> == 6)
src.move 1 0
elseif (<src.dir> == 7)
src.move 1 1
endif
return 1

Buda Futbol Sorunun İçin Fakat Yanlış Algılamadıysam Eyer Senin Futbol Sisteminde bu Vardır Fakat Events'ler Aktif Olmadığı İçin Çalışmıyordur Fakat O İşlevi Gördüğünü Anlamamışsındır. Neyse. İşallaha İşine Yaramıştır Ama Biraz Araştırıcı Olmak Senin Lehine Daha İyi Olur.
aldım kardeşim ...
Verdata + Client değişimi gerek diye biliyorum
Members
0.1
Mulpatcher'ı indir. Orada clientinin tiledata.mul dosyasını aç. Çıkan listede itemler 0xITEMINIDI şeklinde sıralanır. Oradan potionları bulup sağdaki kısımda generici işaretleyeceksin. Daha sonra dosyayı kaydeder MUL dosyasını clientine uyarlarsın.

Futbol içinse topu kapan kişinin uidini topa taglersin. Bu tag adını atıyorum tag.sontopcu yaptık diyelim. Bir item yaratırsın:

[itemdef i_golsay]
id i_deed
name gol sayıcı (ustune gelince gol sayar)

on=@create
attr 080
timer 1

on=@timer
foritems 0
if (<baseid>=i_top)//topun idi neyse artık sende
if (<uid.<tag.sontopcu>.tag0.takim>=1)//golü atanın takımını sorguladık, tag.takim 1 olanlar ve tag.takim 0 olanlar ayrı takım
src.sysmessage @0481,1,1 tag.takimi 1 olan oyuncular gol kazandi
var.takim1 ++
else
src.sysmessage @0481,1,1 tag.takimi 0 olan oyuncular gol kazandi
var.takim2 ++
endif
endfor
endif
return 1

Bu itemle gol atanı kontrol ettirirsin. (Top itemin üstüne gelince gol sayıyor)

Bu konu gcx tarafından düzenlendi(2009-06-30 09:36, 14 yıl önce)
Futbolla Sistemler Clientin Bi Alakası Yok Event Ve Topun Tam Üstünde Kalması Lazım Yani Topun Durduqu yerde Onun Scirptinin İçinde
.add i_topsile yada i_topsilw Olması Laızm bunlardan 6 7 kare yaparesan şut vurdunda üste kalır silinir ve 5 sn sonra topcikariciyi koyarsın scirpten çıkıcaqı yeri ayarlarsın qolden 5 sn sonra ayarladın yerde top çıkar top çikariciyi nereye koyarsan koy alanın içinde çıkar!

Üye Ol veya Giriş Yap

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