SphereCommunity
I'll create Farming - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: I'll create Farming (/Thread-I-ll-create-Farming)



I'll create Farming - djazraell - 06-08-2014 04:00 PM

Hello Again
I "Farming.scp" I want to write but you must take help from
I think "typedef" I've used in the right place, but the "TAG" is not correct.!
Because I'm the "TAG" to stone when I add "dclic" does not work.
Code:
[typedef t_tarla]

on=@itemdclick
if (<act.baseid>=i_runebook_double)
src.sysmessage @38 Tarlada runebook kullanimi yasaktir.!.
return 1
endif

ON=@DEATH
src.sysmessage @1152 Kendi tarlanizda olum yasaklanmistir.!
hits=<str>
action -1
RETURN 1
endif

ON=@Attack
src.sysmessage @38 Tarlada bunu yapamazsin <src.name>.!
RETURN 1
endif

ON=@UserWarMode
src.sysmessage @38 Tarlada bunu yapamazsin <src.name>.!
RETURN 1
endif

on=@spelleffect
src.sysmessage @38 Tarlada bunu yapamazsin <src.name>.!
RETURN 1
endif

ON=@CallGuards
src.sysmessage @38 Tarlada guard'lari cagirmak yasaktir <sex Bay/Bayan> <src.name>.!
RETURN 1
endif

on=@SkillStart
src.sysmessage @38 Tarlada skill kasimi yasktir <sex Bayim/Hanimefendi>.!
return 1
endif

[itemdef i_tarla_tasi]
id i_gravestone_16
name Tarla tasi
type t_tarla

on @Create
tag.tarla 0
attr 010
color 07a1

on @Click
message @0481 [ MaHSeR Uo ]
message @0666 Farming system..

on @Dclick
if (<src.TAG0.Tarla> == 1)
Src.Sysmessage @38 <sex Bay/Bayan> <src.name> sizin bir tarlaniz var.!
else
elseif (<src.findid i_rune_poison>)
src.sysmessage @38 Uzerinizde zehir varken olmaz.!
return 1
elseif (<src.hits> < <src.str>)
src.sysmessage @38 Yaraliyken bunu kullanamazsınız.
return 1
elseIF (<distance> > 2)
src.sysmessage @38 <src.sex Bay/Bayan> <src.name> biraz daha yaklasmalisiniz..
return 1
else
    sdialog d_tarla
return 1

[Dialog d_tarla]
Me "TAG" Can you tell how I'il write?
So the owner of the field, they'll stone you want to teleport.
But the field is not the holder
're open dialogue.!

If I'm wrong, "dclic" I need to add two fat?


Re: I'll create Farming - Extreme - 06-09-2014 12:04 AM

[attachment=246]


RE: I'll create Farming - djazraell - 06-09-2014 01:01 AM

Big Grin
Heyy
Code:
[itemdef i_tarla_tasi]
id i_gravestone_16
name Tarla tasi
type t_tarla

on @Create
tag.Tarla 0
attr 010
color 07a1

on @Click
message @0481 [ MaHSeR Uo ]
message @0666 Farming system..

on @Dclick
IF (<distance> > 2)
src.sysmessage @38 <src.sex Bay/Bayan> <src.name> biraz daha yaklasmalisiniz..
return 1
elseif (<src.findid i_rune_poison>)
src.sysmessage @38 Uzerinizde zehir varken olmaz.!
return 1
elseif (<src.hits> < <src.str>)
src.sysmessage @38 Yaraliyken bunu kullanamazsınız.
return 1
elseif (<src.TAG0.Tarla> == 1)
Src.Sysmessage @38 <sex Bay/Bayan> <src.name> sizin bir tarlaniz var.!
return 1
else
    sdialog d_tarla
return 1

[Dialog d_tarla]
0,0
nomove
resizepic 150 85 5120 275 145
resizepic 160 95 9300 255 125
dtext 175 100 0 MaHSeR Uo farming system
dtext 165 140 1152 Bu tarla haftalik 50.000 gold.
dtext 165 175 0481 Alacagim
dtext 355 175 38 Vazgec
button 175 195 4024 4025 1 0 1
button 362 195 4021 4022 1 0 2

[Dialog d_tarla button]
on 1
if !(<src.restest 50000 i_gold>)
src.message @38 Hata.!
src.sysmessage @0481 50000 Gold'a Sahip Degilsiniz.
elseif (<act.baseid>=i_runebook)
src.sysmessage @38 Tarla menusunu acmisken runebook kullanamazsiniz.
return 1
elseif (<src.findid i_rune_poison>)
src.sysmessage @38 Uzerinizde zehir varken olmaz.!
return 1
elseif (<src.hits> < <src.str>)
src.sysmessage @38 Yaraliyken bunu kullanamazsınız.
return 1
elseIF (<distance> > 2)
src.sysmessage @38 <src.sex Bay/Bayan> <src.name> biraz daha yaklasmalisiniz..
return 1
else
consume 50000 i_gold
src.tag0.Tarla +=1
src.sysmessage @74 <src.name> Yeni tarlaniz hayirli olsun.
src.events +e_tarlaaldi
endif
on 2
src.sysmessage @1152 Tarla satin almaktan vazgectiniz <src.sex Bay/Bayan> <src.name> iyi oyunlar..

[events e_tarlaaldi]
on=@itemdclick
if (<act.baseid>=i_tarla_tasi)
src.sysmessage @38 Zaten sahibi oldugunuz bir tarla var.!
return 1
endif
Here
Code:
on @Dclick
If the owner provides what I need to write part're irradiation !?