[itemdef i_magerylvl]
name=magery gain
id=i_memory
type=t_eq_script
weight=0
layer=layer_special
On=@Create
attr attr_invis|attr_decay
On=@Equip
timer 3
On=@Timer
if (<cont.int> < 60)
if (rand(2) == 1)
cont.int (<cont.int> + 1)
endif
elseif (<cont.int> < 100)
if (rand(4) == 1)
cont.int (<cont.int> + 1)
endif
endif
// Level 1
if (<more1> == 1)
if (rand(2) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 2
elseif (<more1> == 2)
if (rand(4) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 3
elseif (<more1> == 3)
if (rand(7) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 4
elseif (<more1> == 4)
if (rand(10) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 5
elseif (<more1> == 5)
if (rand(13) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 6
elseif (<more1> == 6)
if (rand(15) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 7
elseif (<more1> == 7)
if (rand(18) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 8
elseif (<more1> == 8)
if (rand(20) == 1)
cont.magery (<cont.magery> + 1)
endif
endif
attr attr_decay
remove
return 1
[itemdef i_evallvl]
name=eval intel gain
id=i_memory
type=t_eq_script
weight=0
layer=layer_special
On=@Create
attr attr_invis|attr_decay
On=@Equip
timer 3
On=@Timer
// Level 1
if (<more1> == 1)
if (rand(2) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 2
elseif (<more1> == 2)
if (rand(2) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 3
elseif (<more1> == 3)
if (rand(3) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 4
elseif (<more1> == 4)
if (rand(4) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 5
elseif (<more1> == 5)
if (rand(5) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 6
elseif (<more1> == 6)
if (rand(5) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 7
elseif (<more1> == 7)
if (rand(6) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 8
elseif (<more1> == 8)
if (rand(6) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
endif
attr attr_decay
remove
return 1
[itemdef i_poisonlvl]
name=poison gain
id=i_memory
type=t_eq_script
weight=0
layer=layer_special
On=@Create
attr attr_invis|attr_decay
On=@Equip
timer 2
return 1
On=@Timer
if (<more1> == 1)
cont.poisoning (<cont.poisoning> + 1)
elseif (<more1> == 2)
cont.poisoning (<cont.poisoning> + 2)
elseif (<more1> == 3)
cont.poisoning (<cont.poisoning> + 3)
elseif (<more1> == 4)
cont.poisoning (<cont.poisoning> + 4)
elseif (<more1> == 5)
cont.poisoning (<cont.poisoning> + 5)
elseif (<more1> == 6)
cont.poisoning (<cont.poisoning> + 6)
elseif (<more1> == 7)
cont.poisoning (<cont.poisoning> + 7)
elseif (<more1> == 8)
cont.poisoning (<cont.poisoning> + 8)
endif
attr attr_decay
remove
return 1
[itemdef i_spdelay_woman] // bunnar adamda kaliodu (timer -1) fixlendi uzulmeyin
name=magery delay (woman)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_woman_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_woman
cont.obody c_woman
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_man]
name=magery delay (man)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_man_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_man
cont.obody c_man
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_man_brnx]
name=magery delay (brnx_man)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_man_brnx_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_man_brnx
cont.obody c_man_brnx
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_unisex] // unicornlarla seks anlaminda
name=magery delay (unisex)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
cont.flags <cont.flags>|04 // paralarim lan adami uniseksmi$
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.flags <cont.flags>&~04
endif
On=@Timer
remove
return 1
///////
[itemdef i_spdelay_womann] // bunnar adamda kaliodu (timer -1) fixlendi uzulmeyin
name=magery delay (woman)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_woman_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_woman
cont.obody c_woman
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_mann]
name=magery delay (man)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_man_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_man
cont.obody c_man
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_man_brnxx]
name=magery delay (brnx_man)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_man_brnx_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_man_brnx
cont.obody c_man_brnx
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_unisexx] // unicornlarla seks anlaminda
name=magery delay (unisex)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
cont.flags <cont.flags>|04 // paralarim lan adami uniseksmi$
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.flags <cont.flags>&~04
endif
On=@Timer
remove
return 1
//------------------
// freeze body's
//------------------
[chardef c_man_nomove]
id c_man
can mt_usehands // newly added
foodtype 15 t_food, t_fruit
On=@GetHit
body c_man
obody c_man
[chardef c_man_brnx_nomove]
id c_man
can mt_usehands // newly added
foodtype 15 t_food, t_fruit
On=@GetHit
body c_man_brnx
obody c_man_brnx
[chardef c_woman_nomove]
id c_woman
can mt_usehands|mt_female
foodtype 15 t_food, t_fruit
On=@GetHit
body c_woman
obody c_woman
//------------------
// freezetime control functionz
//------------------
[function sd]
if ((<findid.i_spdelay_man>) || (<findid.i_spdelay_woman>) || (<findid.i_spdelay_unisex>))
if (<findid.i_spdelay_man>)
findid.i_spdelay_man.remove
elseif (<findid.i_spdelay_woman>)
findid.i_spdelay_woman.remove
elseif (<findid.i_spdelay_unisex>)
findid.i_spdelay_unisex.remove
endif
endif
if !((<findid.i_spdelay_man>) || (<findid.i_spdelay_woman>) || (<findid.i_spdelay_unisex>))
if (<body> == c_man)
var.m <act.uid>
newitem i_spdelay_man
act.more1 <args>
act.equip
act <var.m>
elseif (<body> == c_woman)
var.m <act.uid>
newitem i_spdelay_woman
act.more1 <args>
act.equip
act <var.m>
else
var.m <act.uid>
newitem i_spdelay_unisex
act.more1 <args>
act.equip
act <var.m>
endif
endif
//------------------
// magery control functionz
//------------------
// Level 1
[function mg1]
if (<magery> < 30.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 1
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 30.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 1
act.equip
act <var.m2>
endif
// Level 2
[function mg2]
if (<magery> < 40.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 2
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 40.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 2
act.equip
act <var.m2>
endif
// Level 3
[function mg3]
if (<magery> < 50.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 3
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 50.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 3
act.equip
act <var.m2>
endif
// Level 4
[function mg4]
if (<magery> < 60.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 4
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 60.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 4
act.equip
act <var.m2>
endif
// Level 5
[function mg5]
if (<magery> < 70.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 5
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 70.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 5
act.equip
act <var.m2>
endif
// Level 6
[function mg6]
if (<magery> < 80.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 6
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 80.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 6
act.equip
act <var.m2>
endif
// Level 7
[function mg7]
if (<magery> < 90.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 7
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 90.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 7
act.equip
act <var.m2>
endif
// Level 8
[function mg8]
if (<magery> < 100.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 8
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 100.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 8
act.equip
act <var.m2>
endif
//------------------
// poison functionz
//------------------
[function psg]
if (<magery> < 50.0) && ((<skilllock[25]> == 0) && (<skilltotal> < 800.0))
findid.i_magerylvl.remove
var.m2 <act.uid>
newitem i_magerylvl
act.more1 3
act.equip
act <var.m2>
endif
if (<evaluatingintel> < 50.0) && ((<skilllock[16]> == 0) && (<skilltotal> < 800.0))
findid.i_evallvl.remove
var.m2 <act.uid>
newitem i_evallvl
act.more1 3
act.equip
act <var.m2>
endif
if ((<skilllock[10]> == 0) && (<skilltotal> < 800.0))
if (<poisoning><100.0)
findid.i_poisonlvl.remove
var.m2 <act.uid>
newitem i_poisonlvl
if (<poisoning> < 30.0)
act.more1 8
elseif (<poisoning> > 29.9) && (<poisoning> < 40.0)
act.more1 7
elseif (<poisoning> > 39.9) && (<poisoning> < 50.0)
act.more1 6
elseif (<poisoning> > 49.9) && (<poisoning> < 60.0)
act.more1 5
elseif (<poisoning> > 59.9) && (<poisoning> < 70.0)
act.more1 4
elseif (<poisoning> > 69.9) && (<poisoning> < 80.0)
act.more1 3
elseif (<poisoning> > 79.9) && (<poisoning> < 90.0)
act.more1 2
elseif (<poisoning> > 89.9)
act.more1 1
endif
act.equip
act <var.m2>
endif
endif
//------------------
// breakspell functionz
//------------------
// Circle 1
[function breakspell1]
f_fizzle
// Circle 2
[function breakspell2]
f_fizzle
if (<src.mana> > 20)
src.mana (<src.mana> - {8 10})
else
src.mana 0
endif
// Circle 3
[function breakspell3]
f_fizzle
if (<src.mana> > 25)
src.mana (<src.mana> - {10 15})
else
src.mana 0
endif
// Circle 4
[function breakspell4]
f_fizzle
if (<src.mana> > 30)
src.mana (<src.mana> - {15 20})
else
src.mana 0
endif
// Circle 5
[function breakspell5]
f_fizzle
if (<src.mana> > 35)
src.mana (<src.mana> - {20 25})
else
src.mana 0
endif
// Circle 6
[function breakspell6]
f_fizzle
if (<src.mana> > 40)
src.mana (<src.mana> - {25 30})
else
src.mana 0
endif
// Circle 7
[function breakspell7]
f_fizzle
if (<src.mana> > 45)
src.mana (<src.mana> - {30 35})
else
src.mana 0
endif
// Circle 8
[function breakspell8]
f_fizzle
if (<src.mana> > 50)
src.mana (<src.mana> - {35 40})
else
src.mana 0
endif
//------------------
// spell: explosion
//------------------
[itemdef i_spelleffect_explosion]
name=[explosion spelleffect]
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
cont.sayu explosion
timer 2
On=@Timer
cont.effect 3,i_fx_explode,6,15,1
cont.sfx snd_spell_explosion
if (<cont.hitpoints> > 32)
cont.hits=(<cont.hits> - {25 30})
cont.damage 1
else
cont.hits=0
endif
attr attr_decay
remove
return 1
//------------------
// spell: polymorph
//------------------
[function plym]
if (<findid.i_pre_morph>)
findid.i_pre_morph.remove
f_fizzle
endif
if !(<findid.i_morpher>)
newitem i_pre_morph
act.more <args>
act.equip
newitem i_morpher
act.more <body>
act.equip
else
findid.i_morpher.timer {285 320}
newitem i_pre_morph
act.more <args>
act.equip
endif
[itemdef i_pre_morph]
name=[casting polymorph]
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
timer 4
cont.0837,6,0,enu Vas Ylem Rel
cont.anim 17
cont.sd 3
cont.events +e_breakpoly
On=@UnEquip
cont.events -e_breakpoly
cont.consume 1 i_reag_spider_silk
cont.consume 1 i_reag_blood_moss
cont.consume 1 i_reag_mandrake_root
cont.consume 1 i_reag_sulfur_ash
On=@Timer
attr attr_decay
if (<cont.mana> < 40)
cont.f_fizzle
else
cont.mana (<cont.mana> - 40)
cont.sfx snd_spell_polymorph
cont.body <more>
cont.update
endif
remove
return 1
[itemdef i_morpher]
name=Polymorph
id=i_rune_polymorph
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
timer {285 320}
cont.events +e_poly
On=@UnEquip
cont.events -e_poly
cont.body <more>
cont.update
On=@Timer
attr attr_decay
remove
return 1
[events e_poly]
On=@Death
findid.i_morpher.remove
[events e_breakpoly]
On=@SpellCast
findid.i_pre_morph.remove
findid.i_morpher.remove
f_fizzle
On=@GetHit
findid.i_pre_morph.remove
findid.i_morpher.remove
f_fizzle
On=@Hit
findid.i_pre_morph.remove
findid.i_morpher.remove
f_fizzle
On=@Death
findid.i_pre_morph.remove
findid.i_morpher.remove
On=@SkillStart
findid.i_pre_morph.remove
findid.i_morpher.remove
f_fizzle
[EOF]
fix scp ise soyle
ON=@itemclick
if (<act.attr> == attr_newbie)
act.message @080a Bu esya kaybolmaz.
endif
ON=@click
if (<act.attr> == attr_newbie)
act.message @0794 Kaybolmaz
endif
[itemdef i_alt_not]
name alt f4 yok artiqin
id i_gold
type t_eq_script
weight 0
layer layer_special
On=@Create
attr attr_invis|attr_decay
On=@Equip
timer 45
On=@Timer
if (<cont>)
cont.disconnect
endif
remove
return 1
[function rap]
sayua 0481,6,0,enu <args>
[Plevel 4]
lock
[Function lock]
src.sysmessage @50 Hangi esyayi sabitleyeceksin <src.name> ?
src.xattr 08000
return 1
[function spell_say]
if (<isevent.e_ibranice_acik>)
say @0481,8 <strtoupper <args>>
return 1
endif
if (0< <src.account.plevel> < 2)
sayua 07a1,6,6,eng, <args>
else
return 1
endif
[events fix]
On=@Profile
if (<src.uid> == <uid>) || (0<src.account.plevel> > 2)
src.sysmessage @0481,1,1 Char : <name>
src.sysmessage @0481,1,1 Online : <eval (<account.totalconnecttime> / 60)> saat.
src.sysmessage @0481,1,1 Kayit : <account.firstconnectdate>
endif
On=@Death
src.frozen
if !(<isevent.e_qchar>)
if (<fame> > 9900) && (<memoryfindtype.memory_harmedby>) && (<act.ischar>) && (<act.uid> != <uid>) && (0<act.npc> == 0)
serv.allclients sysmessage @69,1,1 <sex Lord/Lady> <name>, <act.name> tarafýndan <region.name> civarlarýnda öldürüldü.
src.fame <src.fame> - 1000
src.karma <src.karma> - 1100
endif
endif
on=@damage
if (<src.isevent.e_safe>)
src.sysmessage @69,1,1 Suan bunu yapamazsiniz.
skill fail
return 1
if ((<memoryfindtype.memory_guild.link.align> == 1) && (<act.memoryfindtype.memory_guild.link.align> == 1))
action -1
skill fail
smg Order Grubu Uyesi, diger bir grup uyesi ile savasamaz...
return 1
elseif ((<memoryfindtype.memory_guild.link.align> == 2) && (<act.memoryfindtype.memory_guild.link.align> == 2))
smg Chaos Grubu Uyesi, diger bir grup uyesi ile savasamaz...
action -1
skill fail
return 1
endif
on=@hit
if (<src.isevent.e_safe>)
src.sysmessage @69,1,1 Suan bunu yapamazsiniz.
skill fail
return 1
if ((<memoryfindtype.memory_guild.link.align> == 1) && (<src.memoryfindtype.memory_guild.link.align> == 1))
action -1
skill fail
smg Order Grubu Uyesi, diger bir grup uyesi ile savasamaz...
return 1
elseif ((<memoryfindtype.memory_guild.link.align> == 2) && (<src.memoryfindtype.memory_guild.link.align> == 2))
smg Chaos Grubu Uyesi, diger bir grup uyesi ile savasamaz...
action -1
skill fail
return 1
endif
ON=@HitTry
if (<src.isevent.e_safe>)
src.sysmessage @69,1,1 Suan bunu yapamazsiniz.
skill fail
return 1
IF (<SRC.UID>==<UID>)
SRC.ACTION=-1
SRC.FLAGS=<SRC.FLAGS>&~statf_war
RETURN 1
ENDIF
if ((<memoryfindtype.memory_guild.link.align> == 1) && (<src.memoryfindtype.memory_guild.link.align> == 1))
action -1
skill fail
smg Order Grubu Uyesi, diger bir grup uyesi ile savasamaz...
return 1
elseif ((<memoryfindtype.memory_guild.link.align> == 2) && (<src.memoryfindtype.memory_guild.link.align> == 2))
smg Chaos Grubu Uyesi, diger bir grup uyesi ile savasamaz...
action -1
skill fail
return 1
endif
on=@Atack
if (<src.isevent.e_safe>)
src.sysmessage @69,1,1 Suan bunu yapamazsiniz.
skill fail
return 1
On=@GetHit
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
On=@EnvironChange
if !(<memoryfindtype.memory_guild>) ///guildi yoksa guildmaster olayini silcek bu kanki.
tag.gs_title
tag.gunvan
tag.unvanvar
endif
if !((<findlayer(32)> || <findlayer(44)> || <findlayer(47)>)) // active stat-effecting spell?
stchk
if ((<findlayer(10).baseid> == i_platemail_gorget) && (<findlayer(6).baseid> == i_platemail_helm) && (<findlayer(7).baseid> == i_platemail_gloves) && (<findlayer(13).baseid> == i_platemail_chest) && (<findlayer(19).baseid> == i_platemail_arms) && (<findlayer(24).baseid> == i_platemail_leggings))
if (<dex> > 80)
dex 80
endif
elseif ((<findlayer(6).baseid> == i_bone_helmet) && (<findlayer(13).baseid> == i_bone_chest) && (<findlayer(19).baseid> == i_bone_arms) && (<findlayer(7).baseid> == i_bone_gloves) && (<findlayer(4).baseid> == i_bone_leggings))
if (<dex> > 85)
dex 85
endif
endif
if !((<isevent.e_str>) || (<isevent.e_dex>) || (<isevent.e_int>) || (<isevent.e_spr>))
var.stats <eval (<str> + <int> + <dex>)> // stat cap fix
if (<eval <var.stats>> > 225)
statcapdex
endif
endif
endif
On=@SpellCast
IF (<eval <SRC.REGION.FLAGS>> & 04000) ///////////Sehirde Field buyusu atamama
IF (<ARGN>==24) || (<ARGN>==28) || (<ARGN>==39) || (<ARGN>==47) || (<ARGN>==50)
SRC.ACTION -1
SRC.smg Bu alanda Field yada Wall buyulerini kullanamazsiniz..
return 1 //275
endif
endif
IF (<eval <SRC.REGION.FLAGS>> & 04000)
IF (<SRC.ISGM>)
RETURN 0
ELSEIF (<ARGN>==33) || (<ARGN>==40) || (<ARGN>==58) || (<ARGN>==60) || (<ARGN>==61) || (<ARGN>==62) || (<ARGN>==62) || (<ARGN>==63) || (<ARGN>==64) || (<ARGN>==65) || (<ARGN>==66)
SRC.ACTION -1
SRC.SMg Bu alanda summon buyulerini kullanamazsiniz..
RETURN 1
endif
endif
if (<findlayer(1).type> == t_spellbook)
findlayer(2).unequip
elseif !(<findlayer(2).type> == t_weapon_mace_staff)
findlayer(1).unequip
findlayer(2).unequip
endif
if ((<flags>&statf_freeze) || (<flags>&statf_stone) || (<findtype.t_armor.cont.uid> == <uid>)) // dur bakim nolyo
f_fizzle
ekranitemizle
skill fail
return 1
endif
if (<act.ischar>)
if !(<act.flags>&statf_insubstantial) && (0<act.account.plevel> > 0<account.plevel>)
f_fizzle
return 1
elseif ((<argn> == 7) || (<argn> == 15)) // no prot. & reac. arm. over armor
if (<act.findtype.t_armor.cont.uid> == <act.uid>)
f_fizzle
return 1
endif
elseif (<argn> == 59) && !(<act.flags>&statf_dead)
f_fizzle
return 1
endif
endif
if (<argn> == 1) // Clumsy
spell_say Uus Jux
mg1
elseif (<argn> == 2) // Create food
spell_say In Mani Ylem
mg1
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
mg1
elseif (<argn> == 4) // Heal
if (<act.findid.i_rune_poison>) || (<act.findid.i_rune_poison_field>)
src.sysmessage @0790 Zehirliyken bunu kullanamazsiniz.
anim 4
return 1
else
spell_say In Mani
sd 1
mg1
endif
elseif (<argn> == 5) // Magic Arrow
spell_say In Por Ylem
mg1
elseif (<argn> == 6) // Night Sight
if (<src.restest i_spdelay_man>) || (<src.restest i_spdelay_woman>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say In Lor
mg1
elseif (<argn> == 7) // Reactive Armor
if (<act.serial>==<targ.serial>)
spell_say Flam Sanct
// spellfreeze 1
sd 1
mg8
else
skill fail
ekranitemizle
sysmessage @1153 Bu buyuyu sadece kendi uzerinizde kullanabilirsiniz...
return 1
endif
elseif (<argn> == 8) // Weaken
spell_say Des Mani
mg1
elseif (<argn> == 9) // Agility
spell_say Ex Uus
mg2
elseif (<argn> == 10) // Cunning
spell_say Uus Wis
mg2
elseif (<argn> == 11) // Cure
spell_say An Nox
sd 1
if (<act.findid.i_rune_poison>)
if (<act.findid.i_rune_poison.morey> > <eval ((<magery> + 400) / 2)>)
if !(rand(8) == 1)
act.effect 3,0374a,1,15,1
act.sound snd_spell_poison
f_fizzle
return 1
endif
endif
endif
mg2
elseif (<argn> == 12) // Harm
spell_say An Mani
// spellfreeze 1
sd 1
mg2
elseif (<argn> == 13) // Trap
spell_say In Jux
f_fizzle
return 1
elseif (<argn> == 14) // Untrap
spell_say An Jux
f_fizzle
return 1
elseif (<argn> == 15) // Protection
if (<act.serial>==<targ.serial>)
spell_say Uus Sanct
// spellfreeze 1
sd 1
mg7
else
skill fail
ekranitemizle
sysmessage @1153 Bu buyuyu sadece kendi uzerinizde kullanabilirsiniz...
return 1
endif
elseif (<argn> == 16) // Strength
spell_say Uus Mani
// spellfreeze 1
sd 1
mg2
elseif (<argn> == 17) // Bless
spell_say Rel Sanct
// spellfreeze 1
sd 1
mg3
elseif (<argn> == 18) // Fireball
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say Vas Flam
// spellfreeze 1
sd 1
mg3
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
if (<src.region.safe> == 1)
src.sysmessage @0481,,1 Bu buyuyu safe zone icinde yapamazsiniz.
f_fizzle
return 1
elseif (<act.hits> == 0)
f_fizzle
src.sysmessage @0481,,1 Olulere poison atamazsiniz.
skill fail
return 1
elseif (<src.targ.findid.i_rune_summon_creature>
f_fizzle
src.sysmessage @0481,,1 Buyu ile yaratilmis cisimlere poison atamazsiniz.
skill fail
return 1
elseif (<src.act.topobj.stone> == 1)
src.sysmessage @0481,,1 Bu buyuyu stone haldeki ki$ilere atamazsiniz.
f_fizzle
return 1
else
spell_say In Nox
// spellfreeze 1
psg
sd 1
endif
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
// spellfreeze 1
sd 1
if (<act.isitem>)
if (<act.cont.isitem>)
if ((<act.cont.type> == t_corpse) || (<act.topobj.id> == c_pv))
f_fizzle
return 1
endif
endif
else
f_fizzle
return 1
endif
mg3
elseif (<argn> == 22) // Teleport
spell_say Rel Por
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 2
mg3
elseif (<argn> == 23) // Unlock
spell_say Ex Por
f_fizzle
return 1
elseif (<argn> == 24) // Wall
spell_say In Sanct Ylem
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 1
sd 1
mg3
elseif (<argn> == 25) // Arch Cure
spell_say Vas An Nox
// spellfreeze 2
sd 2
mg4
elseif (<argn> == 26) // Arch Protection
spell_say Vas Uus Sanct
// spellfreeze 2
sd 2
mg4
elseif (<argn> == 27) // Curse
spell_say Des Sanct
// spellfreeze 2
sd 2
mg4
elseif (<argn> == 28) // Fire Field
spell_say In Flam Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 1
mg4
sd 2
elseif (<argn> == 29) // Greater Heal
if (<act.findid.i_rune_poison>) || (<act.findid.i_rune_poison_field>)
src.sysmessage @0790 Zehirliyken bunu kullanamazsiniz.
anim 4
return 1
else
spell_say In Vas Mani
// spellfreeze 1
sd 2
mg4
endif
elseif (<argn> == 30) // Lightning
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say Por Ort Grav
// spellfreeze 1
sd 2
mg4
elseif (<argn> == 31) // Mana Drain
spell_say Ort Rel
// spellfreeze 1
return 1
elseif (<argn> == 32) // Recall
spell_say Kal Ort Por
// spellfreeze 2
sd 2
mg4
elseif (<argn> == 33) // Blade Spirits
spell_say In Jux Hur Ylem
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 34) // Dispel Field
spell_say An Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
if (<act.ischar>)
f_fizzle
return 1
endif
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 36) // Magic Reflect
if (<act.serial>==<targ.serial>)
spell_say In Jux Sanct
// spellfreeze 2
sd 1
mg8
else
skill fail
ekranitemizle
sysmessage @1153 Bu buyuyu sadece kendi uzerinizde kullanabilirsiniz...
return 1
endif
elseif (<argn> == 37) // Mind Blast
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say Por Corp Wis
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 38) // Paralyze
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say An Ex Por
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 39) // Poison Field
spell_say In Nox Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
if (<act.topobj.ischar>)
f_fizzle
return 1
endif
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 40) // Summon Creature
spell_say Kal Xen
f_fizzle
return 1
elseif (<argn> == 41) // Dispel
spell_say An Ort
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 42) // Energy Bolt
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say Corp Por
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 43) // Explosion
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say Vas Ort Flam
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 44) // Invisibility
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say An Lor Xen
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 45) // Mark
spell_say Kal Por Ylem
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 46) // Mass Curse
spell_say Vas Des Sanct
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 47) // Paralyze Field
spell_say In Ex Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
if (<act.topobj.ischar>)
f_fizzle
return 1
endif
// spellfreeze 2
sd 3
mg6
elseif (<argn> == 48) // Reveal
spell_say Wis Quas
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 49) // Chain Lightning
spell_say Vas Ort Grav
if (<act.uid> == <uid>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg7
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
if (<act.topobj.ischar>)
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg7
elseif (<argn> == 51) // Flame strike
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @045 Su anda baska bir buyu yapmaktasiniz
return 1
endif
spell_say Kal Vas Flam
// spellfreeze 3
sd 3
mg7
elseif (<argn> == 52) // Gate Travel
spell_say Vas Rel Por
// spellfreeze 3
sd 3
mg7
elseif (<argn> == 53) // Mana Vampire
spell_say Ort Sanct
// spellfreeze 3
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
spell_say Vas An Ort
//if (<act.topobj.ischar>)
//f_fizzle
//return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg7
elseif (<argn> == 55) // Meteor Swarm
spell_say Flam Kal Des Ylem
if (<act.uid> == <uid>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 2
sd 3
mg7
elseif (<argn> == 56) // Polymorph
src.skill fail
sd 3
mg3
elseif (<argn> == 57) // Earthquake
spell_say In Vas Por
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 58) // Energy Vortex
spell_say Vas Corp Por
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 59) // Resurrect
spell_say An Corp
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 60) // Air Elemental
spell_say Kal Vas Xen Hur
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 62) // Earth Elemental
spell_say Kal Vas Xen Ylem
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 64) // Water Elemental
spell_say Kal Vas Xen An Flam
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @0481,,1 Bu buyuyu guard zone icinde yapamazsiniz
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
mg8
endif
On=@SpellEffect
if (<flags>&statf_dead) // oluye dokunulmaz, ayiptir
if (<argn> == 59)
sfx snd_spell_resurrection
findlayer(22).remove
color <oskin>
update
effect 3,0376a,2,20,1
else
return 1
endif
elseif ((<argn> == 9) || (<argn> == 10) || (<argn> == 16) || (<argn> == 17)) // stat fix
findlayer(32).remove // spell
findlayer(44).remove // potion
elseif ((<argn> == 49) || (<argn> == 55)) // eve disardan chain atsalar bile icerdeki yemez
if !(<src.region.uid> == <region.uid>)
return 1
endif
elseif (<argn> == 37) // mindblast
if (<src.int> > <int>)
var.mb (<src.int> - <int>)
var.mb <eval (<var.mb> / 2)>
if (<eval <var.mb>> > 40)
var.mb 40
endif
damage <eval (<var.mb> + {-5 5)>
else
damage {5 10}
endif
sfx snd_spell_mind_blast
effect 3,0374a,1,15,1
elseif ((<argn> == 41) || (<argn> == 54)) // dispel & mass dispel
if (<findid.i_morpher>)
if !(<findid.i_pre_morph>)
findid.i_morpher.remove
endif
endif
elseif ((<argn> == 20) || (<argn> == 39)) // poison, poison field
if !(<findid.i_rune_poison>) && (<flags>&statf_poisoned)
flags <flags>&~statf_poisoned
endif
if !(<src.uid> == <uid>)
skill fail
endif
if (<eval (<src.poisoning> + 100)> > <eval <findid.i_rune_poison.morey>>)
findid.i_rune_paralyze.remove
findid.i_rune_paralyze_field.remove
findid.i_rune_poison.remove
if (<distance> > 3) && (<eval (<src.poisoning> + 100)> > 700)
poison (600 + {-100 100})
else
poison (<src.poisoning> + {-100 100})
endif
endif
sfx snd_spell_poison
effect 3,0374a,1,15,1
return 1
elseif ((<argn> == 38) || (<argn> == 47)) // paralyze & paralyze field
if (<findid.i_pouch_trapped>)
effect 3,i_fx_explode,3,25,1
sound snd_spell_explosion
damage 20
findid.i_pouch_trapped.remove
return 1
elseif !(<src.uid> == <uid>)
findid.i_rune_poison.remove
endif
elseif (<argn> == 26) // no arch prot. over armor
if (<findtype.t_armor.cont.uid> == <uid>)
return 1
endif
elseif (<argn> == 25) // arch cure
if (<memoryfindtype.memory_town>) && !(<src.memoryfindtype.memory_town>)
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
return 1
endif
if (<findid.i_rune_poison>)
if (<findid.i_rune_poison.morey> > <eval ((<src.magery> + 400) / 2)>)
if !(rand(8) == 1)
effect 3,0374a,1,15,1
sound snd_spell_poison
return 1
endif
endif
endif
elseif (<argn> == 4) || (<argn> == 29) || (<argn> == 11)
if (<memoryfindtype.memory_town>) && !(<src.memoryfindtype.memory_town>)
src.sysmessage Faction uyelerini iyilestiremezsiniz.
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
src.sysmessage Order/Chaos uyelerini iyilestiremezsiniz.
return 1
endif
if (<argn> == 4) || (<argn> == 29)
if (<findid.i_rune_poison>)
effect 3,0374a,1,15,1
sound snd_spell_poison
return 1
endif
endif
endif
On=@SkillStart
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_pv)
skill fail
ekranitemizle
sysmessage @1153 Vendorlardan bir esya calamazsiniz...
return 1
elseif (<targ.topobj.id> == c_pv)
skill fail
ekranitemizle
sysmessage @1153 Vendorlardan bir esya calamazsiniz...
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @1153 Sadece canli varliklardan calabilirsiniz.
skill fail
return 1
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
skill fail
return 1
endif
endif
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
src.sysmessage @07a1,1,1 Stealth yapabilmek icin 80 hiding skilline ihtiyaciniz var.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
src.sysmessage @07a1,1,1 Zirhinizin verdiği ağırlık gizlenmenizi engelliyor
skill fail
return 1
elseif (<flags>&statf_onhorse)
src.sysmessage @07a1,1,1 Binek Üzerinde gizlenemezsiniz.
skill fail
return 1
endif
elseif (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<eval (<ac> * 100)> > <eval (<hiding> + 200)>)
src.sysmessage @07a1,1,1 Zirhinizin verdiği ağırlık gizlenmenizi engelliyor
skill fail
return 1
elseif (<flags>&statf_onhorse)
src.sysmessage @07a1,1,1 Binek Üzerinde gizlenemezsiniz.
skill fail
return 1
endif
if (<action> == id(skill_animal_lore)) || (<action> == skill_animal_lore)
IF (<uid>==<SRC.UID>)
SRC.ACTION -1
src.smg Bu yeteneginizi HAYVANLAR uzerinde deneyin...
RETURN 1
ENDIF
ENDIF
if (<action> == id(skill_stealth)) || (<action> == skill_stealth))
IF (<hiding> < 800)
skill fail
src.sysmessage @1153 Stealth skillinizi kullanabilmeniz icin en az 80.0 hiding bilginiz olmali...
RETURN 1
ENDIF
ENDIF
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<findlayer(2).type> == t_weapon_axe)
smg Baltaniz olmadan odun kesemezsiniz...
skill fail
return 1
else
sysmessage @1153 Odun cikarmaya basladiniz...
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_pv)
skill fail
return 1
elseif (<targ.id> == c_pv)
skill fail
return 1
endif
endif
IF (<action>==skill_provocation) || (<action>==id(skill_provocation))
skill fail
src.smg Gecici Sure kapatildi...
return 1
endif
endif
IF (<action>==skill_mining) || (<action>==id(skill_mining))
if (<flags>&statf_onhorse)
src.smg Binek uzerindeyken kazi yapamazsiniz.
skill fail
return 1
endif
endif
On=@Click
if !(<isevent.e_faction>) && !(<findid.i_rune_incognito>) && (<memoryfindtype.memory_guild>)
if (strmatch('<tag.gs_title>','')
message @0810 [<memoryfindtype.memory_guild.link.name>]
else
message @0810 [<tag.gs_title>, <memoryfindtype.memory_guild.link.abbrev>]
endif
endif
On=@ItemSpell
if !((<argn> == 2) || (<argn> == 13) || (<argn> == 14) || (<argn> == 19)|| (<argn> == 21) || (<argn> == 23) || (<argn> == 24) || (<argn> == 28) || (<argn> == 32) || (<argn> == 34) || (<argn> == 39) || (<argn> == 45) || (<argn> == 46) || (<argn> == 47) || (<argn> == 48) || (<argn> == 50) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57)) // no enchant
f_fizzle
return 1
endif
if (<ARGN>==24) || (<ARGN>==28) || (<ARGN>==39) || (<ARGN>==47) || (<ARGN>==50)
if (<act.baseid> == i_moongate_red) || (<act.baseid> == i_sign_brass) || (<act.baseid> == i_moongate_blue) || (<act.type> == t_door_open) || (<act.type> == t_door_locked) || (<act.type> == t_multi) || (<act.baseid> == i_rb_gate) || (<act.dispid> == i_moongate_blue)
fieldattixxxaaabbbpottiabi
src.sysmessage @38,,1 Hata: Buraya field atamazsýnýz.
endif
endif
endif
On=@ItemEquip
if (<act.attr>&attr_magic) && !(<act.type> == t_armor) && !(<act.type> == t_shield) && !(<act.type> == t_armor_leather)
if (<act.color> == 02bc) || (<act.color> == 0373) || (<act.color> == 070d) || (<act.color> == 075f) || (<act.color> == 0454)
act.color 0
act.name
endif
endif
On=@ItemDClick
if ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<targ.baseid> == i_runebook)
sysmessage @1153 Su anda bunu kullanamazsin. War-mode den cikman lzm...
return 1
endif
endif
if (<targ.topobj.id> == c_pv)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
if (<targ.topobj.id> == c_pv)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
if (<targ.type> == t_deed)
if (<region.guarded>==1)
sysmessage @1153 Guard Zone icinde bunu kullanamazsin...
return 1
elseif (<hits> < <str>)
sysmessage @1153 Yarali iken bunu kullanamazsiniz...
return 1
elseif (<flags>&statf_war)
sysmessage @1153 Savas esnasinda ev kuramazsiniz...
return 1
endif
endif
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.smg Oltanizi dusurdugunuz icin balik tutamadiniz...
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.smg Baltanizi dusurdugunuz icin log cikaramadiniz...
skill fail
action -1
return 1
endif
endif
On=@ItemClick
if (strmatch('','t_eq_trade_window'))
act.message @125,,1 [secure]
endif
if (<act.topobj.id> == c_pv)
if (strmatch('<act.price>',''))
act.message @0481 [satilamaz]
elseif (<act.price> <= 0)
act.message @0481 [satilik degil]
else
if ((<act.type> == t_armor) || (<act.type> == t_armor_leather) || (<act.type> == t_shield) || (<act.type> == t_clothing) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_mace_smith) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_bow) || (<act.type> == t_weapon_xbow))
if !(<eval ((<act.more1l> * 100) / <act.more1h>)> == 100)
act.message @1153 [<act.price> Pvp Gold] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @1153 [<act.price> Pvp Gold]
endif
else
act.message @0481 [<act.price> Pvp Gold]
endif
endif
endif
if (<act.topobj.id> == c_pv)
if (strmatch('<act.price>',''))
act.message @0481 [satilamaz]
elseif (<act.price> <= 0)
act.message @0481 [satilik degil]
else
if ((<act.type> == t_armor) || (<act.type> == t_armor_leather) || (<act.type> == t_shield) || (<act.type> == t_clothing) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_mace_smith) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_bow) || (<act.type> == t_weapon_xbow))
if !(<eval ((<act.more1l> * 100) / <act.more1h>)> == 100)
act.message @1153 [<act.price> Pvp Gold] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @1153 [<act.price> Pvp Gold]
endif
else
act.message @1153 [<act.price> Pvp Gold]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @50 Kaybolmaz
endif
if (<act.type> == t_container)
if !(<act.baseid> == i_strong_box)
if (<act.attr>&attr_move_never) && !(strmatch('<act.region.tag.owner>,'')) && (<act.region.uid> == <region.uid>)
act.message @0481 [sabit]
endif
if (<act.baseid> == i_bones)
act.message @0481 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<act.rescount> > 0)
act.message @0481 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0481 <act.typedef.name>
endif
return 1
endif
endif
endif
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_pv)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
endif
elseif !(strmatch('0<act.price>',''))
if (<act.price> > 0)
act.price 0
endif
endif
On=@ItemTargOn_Item
if ((<targ.topobj.id> == c_pv) && (<act.cont.uid> =! <targ.topobj.uid>))
return 1
elseif ((<targ.topobj.id> == c_pv) && (<act.cont.uid> =! <targ.topobj.uid>))
return 1
//elseif (<targ.baseid> == i_corpse) // human cesetleri bicememe
// if ((<targ.amount> == 400) || (<targ.amount> == 401))
// return 1
// endif
endif
On=@ItemDropOn_Ground
if (<act.attr> == 04008)
act.attr 0
endif
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish)
act.bounce
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
[events e_qchar]
On=@Death
hits 5
fame 10000
return 1
On=@GetHit
hits (<hits> + 15)
if (<hits> > <str>)
hits <str>
endif
On=@EnvironChange
if (<npc>)
food 999
endif
[function findbanker]
forchars 13
if (<baseid>==c_h_banker) || (<baseid>==c_h_banker_f)
src.bankself
return 1
endif
endfor
[EOF]
biraz uzun oldu ama scp bu kadar

bu arada bu scp ztn hazır kullanan arklarda calısıo ben o yüzden çakışabilir dedim bu arada eventleri verdim
Bu konu siene tarafından düzenlendi(2009-02-06 22:53, 16 yıl önce)