Reg Store / Reagent Store[ITEMDEF i_reg_store]
name reagent store
id i_crystal_green_big
type t_eq_script
Value 5000
flip=0
On=@Create
color 0b92
On=@Click
if (<more1> == 00 )
message @091,,1 a reagent store
return 1
else
message @091,,1 a reagent store
message @092,,1 [<link.name>]
return 1
On=@Dclick
if !(<src.uid> == <topobj.uid>)
src.sysmessage @1100,,1 Bunu kullanabilmeniz icin uzerinizde olmali.
return 1
elseif (<more1> == 00 )
more1 <src.uid>
src.sysmessage @045,,1 Reagent store artik sizin.
link <src.uid>
return 1
elseif !(strmatch('<more1>','<src.uid>' )
src.sysmessage @1100,,1 Bu reagent store bir baskasinin.
return 1
elseif (<more1> == <src.uid>)
src.dialog d_reagent_store
return 1
endif
[DIALOG d_reagent_store]
100, 20
//PAGE 0
resizepic 2 2 2620 460 376
button 28 330 4005 4006 1 0 1
text 59 330 1152 16
button 179 330 4005 4006 1 0 2
text 212 330 1152 17
gumppic 210 40 5569
tilepic 10 60 <eval 0f8d> // spider silk
gumppic 22 80 2443
text 46 82 5 0
text 45 58 5 1
tilepic 10 112 <eval 0f8c> // sulfurous ash
gumppic 22 128 2443
text 46 130 5 2
text 48 110 5 3
tilepic 10 164 <eval 0f88> // nightshade
gumppic 22 184 2443
text 46 186 5 4
text 45 162 5 5
tilepic 10 216 <eval 0f7b> // mandrake root
gumppic 22 233 2443
text 46 235 5 6
text 45 214 5 7
tilepic 10 268 <eval 0f85> // ginseng
gumppic 22 285 2443
text 46 287 5 8
text 45 266 5 9
tilepic 204 273 <eval 0f84> // garlic
gumppic 210 285 2443
text 233 287 5 10
text 232 266 5 11
tilepic 204 216 <eval 0f86> // blood moss
gumppic 210 233 2443
text 233 235 5 12
text 232 214 5 13
tilepic 198 168 <eval 0f7a> // black pearl
gumppic 210 184 2443
text 233 186 5 14
text 232 162 5 15
[DIALOG d_reagent_store TEXT]
<eval <src.tag0.spider_silk>>
Spider's Silk
<eval <src.tag0.sulfur_ash>>
Sulfurous Ash
<eval <src.tag0.nightshade>>
Nightshade
<eval <src.tag0.blood_moss>>
Blood Moss
<eval <src.tag0.ginseng>>
Ginseng
<eval <src.tag0.garlic>>
Garlic
<eval <src.tag0.mandrake_root>>
Mandrake Root
<eval <src.tag0.black_pearl>>
Black Pearls
Hepsini Cikart
Reagent Ekle
[DIALOG d_reagent_store BUTTON]
on=1
if (<src.tag0.nightshade> > 0)
serv.newitem i_reag_nightshade
new.amount <src.tag0.nightshade>
new.bounce
src.tag0.nightshade 0
else
return 0
endif
if (<src.tag0.garlic> > 0)
serv.newitem i_reag_garlic
new.amount <src.tag0.garlic>
new.bounce
src.tag0.garlic 0
else
return 0
endif
if (<src.tag0.ginseng> > 0)
serv.newitem i_reag_ginseng
new.amount <src.tag0.ginseng>
new.bounce
src.tag0.ginseng 0
else
return 0
endif
if (<src.tag0.black_pearl> > 0)
serv.newitem i_reag_black_pearl
new.amount <src.tag0.black_pearl>
new.bounce
src.tag0.black_pearl 0
else
return 0
endif
if (<src.tag0.spider_silk> > 0)
serv.newitem i_reag_spider_silk
new.amount <src.tag0.spider_silk>
new.bounce
src.tag0.spider_silk 0
else
return 0
endif
if (<src.tag0.sulfur_ash> > 0)
serv.newitem i_reag_sulfur_ash
new.amount <src.tag0.sulfur_ash>
new.bounce
src.tag0.sulfur_ash 0
else
return 0
endif
if (<src.tag0.blood_moss> > 0)
serv.newitem i_reag_blood_moss
new.amount <src.tag0.blood_moss>
new.bounce
src.tag0.blood_moss 0
else
return 0
endif
if (<src.tag0.mandrake_root> > 0)
serv.newitem i_reag_mandrake_root
new.amount <src.tag0.mandrake_root>
new.bounce
src.tag0.mandrake_root 0
else
return 0
endif
on=2
serv.newitem i_reg_ekle
new.equip
return 1
[ITEMDEF i_reg_ekle]
id i_gold
name reagent ekle
type t_eq_script
layer layer_special
weight 0.1
On=@Create
timer 15
attr attr_decay
On=@Timer
Remove
On=@Equip
target @045,,1 Eklemek istediginiz reagent'i secin.
return 1
On=@TargOn_Char
Return 1
On=@TargOn_Ground
return 1
On=@TargOn_Item
if (<src.targ.baseid> == i_reag_nightshade )
src.tag0.nightshade <eval <src.tag0.nightshade> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> nightshade eklendi.
timer 1
src.targ.remove
return 1
elseif (<src.targ.baseid> == i_reag_garlic )
src.tag0.garlic <eval <src.tag0.garlic> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> garlic eklendi.
timer 1
src.targ.remove
return 1
elseif (<src.targ.baseid> == i_reag_ginseng )
src.tag0.ginseng <eval <src.tag0.ginseng> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> ginseng eklendi.
timer 1
src.targ.remove
return 1
elseif (<src.targ.baseid> == i_reag_black_pearl )
src.tag0.black_pearl <eval <src.tag0.black_pearl> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> black pearl eklendi.
timer 1
src.targ.remove
return 1
elseif (<src.targ.baseid> == i_reag_spider_silk )
src.tag0.spider_silk <eval <src.tag0.spider_silk> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> spider silk eklendi.
timer 1
src.targ.remove
return 1
elseif (<src.targ.baseid> == i_reag_sulfur_ash )
src.tag0.sulfur_ash <eval <src.tag0.sulfur_ash> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> sulphurous ash eklendi.
timer 1
src.targ.remove
return 1
elseif (<src.targ.baseid> == i_reag_blood_moss )
src.tag0.blood_moss <eval <src.tag0.blood_moss> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> blood moss eklendi.
timer 1
src.targ.remove
return 1
elseif (<src.targ.baseid> == i_reag_mandrake_root )
src.tag0.mandrake_Root <eval <src.tag0.mandrake_root> + <src.targ.amount>>
src.sms Reagent Store'unuza <eval <src.targ.amount>> mandrake root eklendi.
timer 1
src.targ.remove
return 1
else
src.smg Bu bir reagent degil.
timer 1
return 1
endif