[itemdef i_market_stone]
id=i_grave_stone
name Market
on=@create
color=07a1
attr attr_move_never
one=@click
message @0484,,1 <name>
return 1
ON=@DClick
If (<distance> < 3)
sdialog d_market
return 1
else
src.sysmessage @38,1,1 Uzaksiniz.
return 1
endif
[DIALOG d_market] //SPECIAL PLACES
50,50
nomove
resizepic 5 5 83 210 250
text 35 20 38 0
text 35 62 1152 1
text 35 82 1152 2
text 35 102 1152 3
text 35 122 1152 4
text 35 142 1152 5
button 15 63 55 56 1 0 1
button 15 82 55 56 1 0 2
button 15 102 55 56 1 0 3
button 15 123 55 56 1 0 4
button 15 143 55 56 1 0 5
[DIALOG d_market TEXT]
Market Stone
Wolf
Maximum Steed
Armor Steed
Volcanic Steed
Nightmare
[DIALOG d_market BUTTON]
onbutton=0
//sysmessage= @07a1 Menuyu Kapattiniz.
on=1
if ! <src.restest 5 src.tag0.market>
src.sysmessage @07a1,,1 Hesabinizda 5 TL Bulunmuyor.
else
src.consume 5 src.tag0.market
src.newitem i_wolf
src.act.bounce
src.message @07a1,,1 Wolf Aldiniz.
endif
on=2
if !(<src.restest 5 src.tag0.market>)
src.sysmessage @07a1,,1 Hesabinizda 5 TL Bulunmuyor.
else
src.consume 5 src.tag0.market
src.newitem i_maximumsteed
src.act.bounce
src.message @07a1,,1 Wolf Aldiniz.
endif
on=3
if !(<src.restest 5 src.tag0.market>)
src.sysmessage @07a1,,1 Hesabinizda 5 TL Bulunmuyor.
else
src.consume 5 src.tag0.market
src.newitem i_armorsteed
src.act.bounce
src.message @07a1,,1 Wolf Aldiniz.
endif
on=4
if (<dsrc.tag0.market> >= 7)
src.newitem i_pet_horse_brown_dk
src.act.bounce
src.act.more1 c_m_unicorn
src.act.color 0481
src.act.name Unicorn
src.tag0.market -= 7
src.message @07a1,,1 Unicorn Aldiniz.
return1
else
src.sysh_trk 7 TL'niz bulunmamaktadir.
return 1
endif
on=5
if (<dsrc.tag0.market> >= 15)
src.newitem i_pet_horse_brown_dk
src.act.bounce
src.act.more1 c_m_nightmare
src.act.color 0901
src.act.name Nightmare
src.tag0.market -= 15
src.message @07a1,,1 Nightmare Aldiniz.
return1
else
src.sysh_trk 15 TL'niz bulunmamaktadir.
return 1
endif
[plevel 1]
market
[function market]
src.sysmessage @6336 Hesabinizda: <eval <src.tag0.market>> TL Bulunuyor.
[ITEMDEF i_1tl]
id 7148
name Mobil TL
type t_deed
on=@create
color 07e5
attr attr_decay
on=@dclick
if !(<src.findid.i_1tl>)
src.sysmessage @0823 Catanizda Mobil TL Deed Bulunmuyor.
return 1
else
src.tag0.market +=1
src.message @07a1,,1 Hesabiniza 1 TL Aktardiniz.
src.consume 1 i_1tl
return 1
on=@click
message @6336 [Mobil Market]
message @07a1,,1 1 TL
return 1
[ITEMDEF i_5tl]
id 7148
name Mobil TL
type t_deed
on=@create
color 07e5
attr attr_decay
on=@dclick
if !(<src.findid.i_5tl>)
src.sysmessage @0823 Catanizda Mobil TL Deed Bulunmuyor.
return 1
else
src.tag0.market +=5
src.message @07a1,,1 Hesabiniza 5 TL Aktardiniz.
src.consume 1 i_5tl
return 1
on=@click
message @6336,,1 [Mobil Market]
message @07a1,,1 5 TL
return 1
[EOF]
Şöyle birşey buldum belki işine yarar.