[itemdef i_moon]
defname=i_moon
id=i_moongate_black
weight=1
type=t_eq_script
name=Topuk Gate
on=@create
attr=10
color=0819
on=@click
message @07a1 <name>
return 1
on=@Dclick
IF(<distane> <1)
src.dialog d_moon
[dialog d_moon]
nomove
resizepic 0 0 3500 290 240
resizepic 20 20 9300 250 200
button 35 35 55 56 1 0 1
button 35 70 55 56 1 0 2
[dialog d_moon button]
onbutton=0
sysmessage= @07a1 Bir Karar Verin!
onbutton=1
if (<src.restest 5000 i_gold>)
src.sysmessage @90 Oyuna Girmek Icin 5k Gereklidir!
else
src.consume 5000 i_gold
src.targ.go britain
endif
on=@Dclick
IF (<distance> <2)
src.dialog d_moon
src.sysmessage Merhaba <src.name>!
return 1
elseif (<src.hits> < 95) && (<src.hits> > 1)
src.sysmessage Yaraliyken moongate kullanamazsiniz.
return 1
elseif (<src.hits> < 1)
src.sysmessage @07a1 Oluyken yarismaya katilamazsiniz.
return 1
else
src.sysmessage @1152 Moongate'e cok uzaksiniz!
return 1
[dialog d_moon button]
onbutton=0
sysmessage= @07a1 Bir Karar Verin!
onbutton=1
if !(<src.restest 5000 i_gold>)
src.sysmessage @90 Oyuna Girmek Icin 5k Gereklidir!
else
src.consume 5000 i_gold
src.go britain
src.sysmessage @07a1 Yarismaya Katildiniz.
return 1
endif
[itemdef i_moon]
defname=i_moon
id=i_moongate_black
weight=1
type=t_eq_script
name=Topuk Gate
on=@create
attr=10
color=0819
on=@click
message @07a1 <name>
return 1
on=@step
src.dialog d_moon
src.sysmessage Merhaba <src.name>!
[dialog d_moon]
nomove
resizepic 0 0 3500 200 150
resizepic 20 20 9300 160 110
dtext 50 35 10 Gir
dtext 50 70 20 Cik
button 35 35 55 56 1 0 1
button 35 70 55 56 1 0 2
[dialog d_moon button]
onbutton=0
sysmessage= @07a1 Bir Karar Verin!
onbutton=1
src.go britain
return 1
onbutton=2
src.go star chamber
return 1