[typedef t_yereatildi]
ON=@timer
remove
[function spell_say]
if (<src.account.plevel> < 2)
sayua 0835,6,0,enu <args>
endif
[events fix]
ON=@UserQuestButton
openquestlog
ON=@UserguildButton
guildonline
On=@Profile
if (<src.uid> == <uid>) || (0<src.account.plevel> > 2)
src.sysmessage @0481,,1 Hesap : <ACCOUNT>,online süresi <eval (<account.totalconnecttime> / 60)> saat.
src.sysmessage @0481,,1 Kayıt : <account.firstconnectdate>
src.sysmessage @0481,,1 Karakter : <eval (<age> / 86400)> gün önce doğmuş.
endif
On=@mount
targ.findid.i_rune_poison.remove
targ.findid.i_rune_poison_field.remove
targ.findid.i_bleeding.remov
On=@Death
if !(<isevent.e_qchar>)
if (<fame> > 9900) && (<memoryfindtype.memory_harmedby>) && (<act.ischar>) && (<act.uid> != <uid>)
serv.allclients sysmessage @0481,,1 <sex Lord/Lady> <name>, <act.name> tarafindan <region.name> civarlarında öldürüldü.
endif
endif
if (<src.findid.i_bleeding>)
findid.i_bleeding.remove
findid.i_bleeding2.remove
return 1
endif
if (<kills> > 5)
f_statloss
findid.i_mem_healing.remove
endif
endif
if (<src.findid.i_magerylvl>)
src.findid.i_magerylvl.remove
endif
if (<src.findid.i_evallvl>)
src.findid.i_evallvl.remove
endif
if (<src.findid.i_poisonlvl>)
src.findid.i_poisonlvl.remove
endif
if (<src.findid.i_spdelay_man>)
src.findid.i_spdelay_man.remove
elseif (<src.findid.i_spdelay_woman>)
src.findid.i_spdelay_woman.remove
elseif (<src.findid.i_spdelay_unisex>)
src.findid.i_spdelay_unisex.remove
endif
return 1
On=@GetHit
IF ( <FLAGS> & statf_reactive )
FLAGS=<FLAGS> & ~statf_reactive
SRC.FLAGS=<SRC.FLAGS> & ~statf_reactive
DAMAGE=<ARGN1> 01 <SRC.UID>
IF (<FINDID.i_rune_reactive_armor>)
FLAGS=<FLAGS> | statf_reactive
ENDIF
IF (<SRC.FINDID.i_rune_reactive_armor>)
SRC.FLAGS=<SRC.FLAGS> | statf_reactive
ENDIF
RETURN 1
ENDIF
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
On=@EnvironChange
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
if !(<memoryfindtype.memory_guild.link.align>)
if (<findlayer(2).baseid> == i_shield_chaos) || (<findlayer(2).baseid> == i_shield_order)
findlayer(2).unequip
endif
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
endif
endif
if ((<body> == c_man) || (<body> == c_woman)) // yimmeeah
if !((<isevent.e_jail>) || (<flags>&statf_stone) || (<isevent.e_qchar>))
if (<food> == 3)
say * acliktan basi doner *
elseif (<food> == 2)
say * acliktan basi doner *
elseif (<food> == 1)
say * acliktan olmek uzeredir *
elseif (<food> == 0)
//sayua 045f * acliktan olur *
newitem i_aclikcim
act.equip
endif
endif
endif
On=@SpellCast
if !((<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
return 1
endif
if (<kills> < 8) && (strmatch(&裟<targ.region.name>&裟,&裟Calimport&裟))
sysmessage @066d,,1 Calimport&裟un güçlü büyü duvarları sebebiyle büyünüz etki göstermedi.
go 5249 3918 28
f_fizzle
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 (<act.id> == c_steacher)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
//if (<act.id> == c_tuccar)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
if (<src.findid.i_mem_spellheall>)
sayua 020,6,6,0 * bandajlari yirtilir *
findid.i_mem_healing.remove
endif
// spell freeze time
if (<argn> == 1)// Clumsy
//spell_say Uus Jux
mg1
elseif (<argn> == 2)
//spell_say In Mani Ylem // Create food
foodverici
mg1
elseif (<argn> == 3) // Feeblemind
//spell_say Rel Wis
mg1
elseif (<argn> == 4) // Heal
//spell_say In Mani
sd 1
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>)
sysmessage @066d,,1 Yaranızı iyileştirmelisiniz.
f_fizzle
return 1
return 1
endif
mg2
elseif (<argn> == 5) // Magic Arrow
//spell_say In Por Ylem
mg1
elseif (<argn> == 6) // Night Sight
//spell_say In Lor
mg1
elseif (<argn> == 7) // Reactive Armor
if (<act.serial>==<targ.serial>)
//spell_say Flam Sanct
sd 1
mg1
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde 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
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
sd 1
mg2
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 16) // Strength
//spell_say Uus Mani
sd 1
mg2
elseif (<argn> == 17) // Bless
if (<act.serial>==<targ.serial>)
//spell_say Rel Sanct
sd 1
mg3
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 18) // Fireball
//spell_say Vas Flam
sd 1
mg3
elseif (<argn> == 19) // Lock
//spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
if !(<act.serial>==<targ.serial>)
//spell_say In Nox
psg
sd 1
else
skill fail
sysmessage @066d,,1 Bu büyüyü kendinize atamazsınız.
return 1
endif
elseif (<argn> == 21) // Telekinesis
//spell_say Ort Por Ylem
src.sysmessage @066d,,1 Bu büyünün kullanımı kapatılmıştır.
f_fizzle
return 1
elseif (<argn> == 22) // Teleport
//spell_say Rel Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
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
endif
// spellfreeze 1
sd 1
mg3
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
elseif (<argn> == 25) // Arch Cure
//spell_say Vas An Nox
sd 2
mg4
elseif (<argn> == 26) // Arch Protection
//spell_say Vas Uus Sanct
sd 2
mg4
elseif (<argn> == 27) // Curse
//spell_say Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg4
sd 2
elseif (<argn> == 29) // Greater Heal
//spell_say In Vas Mani
sd 2
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>
sysmessage @066d,,1 Yaranizi iyilestirmelisiniz.
f_fizzle
return 1
return 1
endif
mg4
elseif (<argn> == 30) // Lightning
//spell_say Por Ort Grav
sd 2
mg4
elseif (<argn> == 31) // Mana Drain
//spell_say Ort Rel
f_fizzle
return 1
elseif (<argn> == 32) // Recall
//spell_say Kal Ort Por
sd 2
mg4
if (0<src.tag.ticaret>==01)
if !(0<src.tag.ticaretk>==0<uid>
src.sysmessage @066d,,1 Ticaret yaparken bunu kullanamazsınız.
f_fizzle
return 1
endif
endif
elseif (<argn> == 33) // Blade Spirits
//spell_say In Jux Hur Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 34) // Dispel Field
//spell_say An Grav
if (<act.ischar>)
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 35) // Incognito
//spell_say Kal In Ex
f_fizzle
return 1
elseif (<argn> == 36) // Magic Reflect
//spell_say In Jux Sanct
sd 2
mg5
elseif (<argn> == 37) // Mind Blast
//spell_say Por Corp Wis
sd 2
mg5
elseif (<argn> == 38) // Paralyze
//spell_say An Ex Por
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 40) // Summon Creature
//spell_say Kal Xen
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 41) // Dispel
//spell_say An Ort
sd 2
mg6
elseif (<argn> == 42) // Energy Bolt
//spell_say Corp Por
sd 2
mg6
elseif (<argn> == 43) // Explosion
//spell_say Vas Ort Flam
sd 2
mg6
elseif (<argn> == 44) // Invisibility
//spell_say An Lor Xen
sd 2
mg6
elseif (<argn> == 45) // Mark
//spell_say Kal Por Ylem
sd 2
mg6
elseif (<argn> == 46) // Mass Curse
//spell_say Vas Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg6
sd 2
elseif (<argn> == 48) // Reveal
//spell_say Wis Quas
sd 2
mg6
elseif (<argn> == 49) // Chain Lightning
//spell_say Vas Ort Grav
if (<act.uid> == <uid>)
f_fizzle
return 1
endif
sd 3
mg7
if (<src.region.guarded> == 1)
f_fizzle
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
return 1
endif
elseif (<argn> == 50) // Energy Field
//spell_say In Sanct Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 2
elseif (<argn> == 51) // Flame strike
//spell_say Kal Vas Flam
sd 3
mg7
elseif (<argn> == 52) // Gate Travel
//spell_say Vas Rel Por
sd 3
mg7
elseif (<argn> == 53) // Mana Vampire
//spell_say Ort Sanct
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
//spell_say Vas An Ort
sd 3
mg7
elseif (<argn> == 55) // Meteor Swarm
//spell_say Flam Kal Des Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 3
elseif (<argn> == 56) // Polymorph
//spell_say Vas Ylem Rel
sd 7
mg3
elseif (<argn> == 57) // Earthquake
//spell_say In Vas Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 4
elseif (<argn> == 58) // Energy Vortex
//spell_say Vas Corp Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 59) // Resurrect
//spell_say An Corp
sd 3
mg8
elseif (<argn> == 60) // Air Elemental
//spell_say Kal Vas Xen Hur
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 61) // Summon Deamon
//spell_say Kal Vas Xen Corp
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 62) // Earth Elemental
//spell_say Kal Vas Xen Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 63) // Fire Elemental
//spell_say Kal Vas Xen Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 64) // Water Elemental
//spell_say Kal Vas Xen An Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
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> == 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 &褳10 15}
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.poisoning> == 120.0)
findid.i_rune_poison.morey += 50.0
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 3
if (<findid.i_pouch_trapped.more2> > 1)
findid.i_pouch_trapped.more2 <eval <findid.i_pouch_trapped.more2>-1>
return 1
else
findid.i_pouch_trapped.remove
return 1
endif
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 @03b2,,1, Faction uyelerini iyilestiremezsiniz.
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
src.sysmessage @03b2,,1, 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
if (<flags>&statf_onhorse)
On=@Click
if !(<findid.i_rune_incognito>) && (<memoryfindtype.memory_guild>)
if (strmatch(&裟<tag.gs_title>&裟,&裟&裟)
message @0481,,1 [<memoryfindtype.memory_guild.link.name>]
else
message @0481,,1 [<tag.gs_title>, <memoryfindtype.memory_guild.link.abbrev>]
endif
endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
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
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_bow)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
endif
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemUnEquip
//if (<act.type> == t_weapon_axe)
//events -e_axer
//endif
On=@ItemDClick
if (<targ.topobj.id> == c_player_v)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
On=@ItemClick
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
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 @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
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
[events e_atmalen]
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
//elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
//if (<act.price> > 0)
//act.price 0
//endif
//endif
On=@ItemTargOn_Item
if ((<targ.topobj.id> == c_player_v) && (<act.cont.uid> != <targ.topobj.uid>))
return 1
[events gmfix]
On=@Death
hits <str>
fame 0
return 1
On=@EnvironChange
food 999
karma 0
fame 0
ON=@UserQuestButton
src.sysmessage Quest sistemi askıdadır.İstendiği takdirde eklenecektir.
ON=@UserguildButton
guildonline
On=@mount
if !((<argo.id> == c_staff) || (<argo.id> == c_staff2) || (<argo.id> == c_staff3) || (<argo.id> == c_staff6) || (<argo.id> == c_staff4) || (<argo.id> == c_staff5))
src.sysmessage @066d,,1 Stafflar kendilerine özel binekten başka bineğe binemez.
return 1
endif
on=@itemcreate
if (<src.account.plevel> > 1)
try uid.<argo.uid>.tag.tarihisoylebab <serv.rtime>
try uid.<argo.uid>.tag.cikarankim <eval <src.uid>>
endif
On=@SpellCast
if ((<flags>&statf_freeze) || (<flags>&statf_stone))
f_fizzle
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 (<act.id> == c_player_v)
if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
f_fizzle
return 1
endif
endif
if (<src.findid.i_mem_spellheal>)
f_fizzle
src.sysmessage @066d,,1 Bandaj kullanırken büyü yapamazsınız.
return 1
endif
On=@Click
IF (<ACCOUNT.PLEVEL> = 2)
message @07a1 [ Counselor ]
message @07a1 <name>
return 1
elseif (strmatch(&裟<account.name>&裟,&裟qweqwewqewqeqwew&裟))
message @07a1 Player Master
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 3)
message @07a1 [ Seer ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 4)
message @07a1 [ Game Master ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 5)
message @07a1 [ Senior GM ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 6)
message @07a1 [ Administrator ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> > 6 )
message @07a1 [ Owner ]
message @07a1 <name>
return 1
endif
On=@DClick
if (<account.plevel> <8)
title <SERV.NAME> Yetkili Uyesi
endif
on=@ITEMPICKUP_PACK
if (<act.topobj.npc> == brain_monster) || (<act.topobj.npc> == brain_dragon)
return 1
endif
On=@GetHit
return 1
On=@ItemDClick
if (<act.type>=t_corpse)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Cesetleri açamazsınız.
return 1
endif
endif
if (<targ.baseid>=i_worldgem_bit)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Spawn taşları yenilenemez.
return 1
endif
endif
endif
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_bow) || (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemClick
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
endif
if (<act.type> == t_container)
if !(<act.baseid> == i_strong_box)
if (<act.attr>&attr_move_never) && !(strmatch(&裟<act.region.tag0.owner>,&裟&裟)) && (<act.region.uid> == <region.uid>)
act.message @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
endif
endif
endif
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
//if (<src.account.plevel> > 5)
//if !(<act.tag0.cikarankim>==0)
//act.message @0799,1,1 [Staff tarafından yapıldı]
//act.message @0783,,1 Çıkaran isim & Acc : [<serv.uid.<act.tag0.cikarankim>.name>] - [<serv.uid.<act.tag0.cikarankim>.account.name>]
//act.message @0783,,1 Tarih : [<act.tag0.tarihisoylebab>] | Eşya ismi : [<act.name>]
//return 1
//endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
endif
endif
[function foodverici]
IF (<magery> < 10.0) || !(<src.restest 1 i_reag_garlic>) || !(<src.restest 1 i_reag_ginseng>) || !(<src.restest 1 i_reag_mandrake_root>)
sysmessage @066d,,1 Malzeme eksik veya yetersiz yetenek.
return 1
elseif (<mana> < 4)
sysmessage @066d,,1 Yetersiz mana
return 1
else
mana <mana> + (-4)
foodver
endif
[function foodver]
dorand 5
tag.yemekci 1
tag.yemekci 2
tag.yemekci 3
tag.yemekci 4
tag.yemekci 5
enddo
if (<tag.yemekci> ==1)
newitem i_cake
act.bounce
elseif (<tag.yemekci> == 2)
newitem i_fish_cut_cooked
act.bounce
elseif (<tag.yemekci> == 3)
newitem i_bread_loaf
act.bounce
elseif (<tag.yemekci> == 4)
newitem i_bread_french
act.bounce
elseif (<tag.yemekci> == 5)
newitem i_ribs_cooked
act.bounce
endif
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
if (<act.price> > 0)
act.price 0
endif
endif
[EOF]
// ----------------------------
// MAGERY.SCP - MAGERY VE FREEZETIME SISTEMI
// SON GUNCELLENME TARIHI: 9 Temmuz 2oo7 - MiqRop|www.clax.gen.tr
// ----------------------------
VERSION=0.55
//------------------
// freezetime - eq items
//------------------
[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 6
On=@Timer
if (<cont.int> < 60)
if (rand(15) == 1)
cont.int (<cont.int> + 1)
endif
elseif (<cont.int> < 100)
if (rand(25) == 1)
cont.int (<cont.int> + 1)
endif
endif
// Level 1
if (<more1> == 1)
if (rand(3) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 2
elseif (<more1> == 2)
if (rand(5) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 3
elseif (<more1> == 3)
if (rand(10) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 4
elseif (<more1> == 4)
if (rand(15) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 5
elseif (<more1> == 5)
if (rand(20) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 6
elseif (<more1> == 6)
if (rand(25) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 7
elseif (<more1> == 7)
if (rand(30) == 1)
cont.magery (<cont.magery> + 1)
endif
// Level 8
elseif (<more1> == 8)
if (rand(35) == 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 6
On=@Timer
// Level 1
if (<more1> == 1)
if (rand(2) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 2
elseif (<more1> == 2)
if (rand(3) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 3
elseif (<more1> == 3)
if (rand(5) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 4
elseif (<more1> == 4)
if (rand(10) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 5
elseif (<more1> == 5)
if (rand(15) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 6
elseif (<more1> == 6)
if (rand(20) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 7
elseif (<more1> == 7)
if (rand(25) == 1)
cont.evaluatingintel (<cont.evaluatingintel> + 1)
endif
// Level 8
elseif (<more1> == 8)
if (rand(30) == 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 3
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=@Create
attr attr_decay|attr_newbie
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=@Create
attr attr_decay|attr_newbie
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_unisex] // unicornlarla seks anlaminda
name=magery delay (unisex)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Create
attr attr_decay|attr_newbie
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_man.remove
elseif (<findid.i_spdelay_woman>)
findid.i_spdelay_woman.remove
elseif (<findid.i_spdelay_unisex>)
findid.i_spdelay_unisex.remove
endif
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 (<poisoning> < 100.0) && ((<skilllock[30]> == 0) && (<skilltotal> < 800.0))
findid.i_poisonlvl.remove
var.m2 <act.uid>
newitem i_poisonlvl
if (<src.poisoning> < 30.0)
if (rand(2) == 1)
act.more1 8
endif
elseif (<src.poisoning> > 29.9) && (<src.poisoning> < 40.0)
if (rand(2) == 1)
act.more1 4
endif
elseif (<src.poisoning> > 39.9) && (<src.poisoning> < 50.0)
if (rand(2) == 1)
act.more1 3
endif
elseif (<src.poisoning> > 49.9) && (<src.poisoning> < 60.0)
if (rand(2) == 1)
act.more1 2
endif
elseif (<src.poisoning> > 59.9) && (<src.poisoning> < 70.0)
if (rand(2) == 1)
act.more1 1
endif
elseif (<src.poisoning> > 69.9) && (<src.poisoning> < 80.0)
if (rand(2) == 1)
act.more1 1
endif
elseif (<src.poisoning> > 79.9) && (<src.poisoning> < 90.0)
if (rand(2) == 1)
act.more1 1
endif
elseif (<src.poisoning> > 89.9)
if (rand(2) == 1)
act.more1 1
endif
else
act.more1 9
endif
act.equip
act <var.m2>
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=@Create
attr attr_decay|attr_newbie
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=@Create
attr attr_decay|attr_newbie
On=@Equip
timer 4
cont.spell_say Vas Ylem Rel
cont.anim 17
cont.sd 3
cont.events +e_breakpoly
On=@UnEquip
cont.events -e_breakpoly
cont.tag.okarma <cont.karma>
cont.karma 10000
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.karma <tag0.okarma>
cont.tag.okarma
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]
[Spell 0] // No effect.
DEFNAME=s_Water
NAME=Water
SOUND=0
RUNES=
CAST_TIME=0
RESOURCES=
RUNE_ITEM=0
SCROLL_ITEM=0
FLAGS=0
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=4
SKILLREQ=MAGERY 1.0
[Spell 1]
DEFNAME=s_Clumsy
NAME=Clumsy
SOUND=snd_SPELL_CLUMSY
RUNES=UJ
CAST_TIME=0.5
RESOURCES=i_reag_blood_moss,i_reag_nightshade
RUNE_ITEM=i_rune_CLUMSY
SCROLL_ITEM=i_scroll_CLUMSY
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=6,15
DURATION=2*60.0,4*60.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 2]
DEFNAME=s_create_food
NAME=Create Food
SOUND=snd_SPELL_CREATE_FOOD
RUNES=IMY
CAST_TIME=0.5
RESOURCES=i_reag_garlic,i_reag_ginseng,i_reag_mandrake_root
RUNE_ITEM=i_rune_CREATE_FOOD
SCROLL_ITEM=i_scroll_CREATE_FOOD
FLAGS=SPELLFLAG_TARG_XYZ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 3]
DEFNAME=s_feeblemind
NAME=Feeblemind
SOUND=snd_SPELL_FEEBLEMIND
RUNES=RW
CAST_TIME=0.5
RESOURCES=i_reag_ginseng,i_reag_nightshade
RUNE_ITEM=i_rune_FEEBLEMIND
SCROLL_ITEM=i_scroll_FEEBLEMIND
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=5,10
DURATION=2*60.0,4*60.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 4]
DEFNAME=s_heal
NAME=Heal
SOUND=snd_SPELL_HEAL
RUNES=IM
CAST_TIME=0.9
RESOURCES=i_reag_garlic,i_reag_ginseng,i_reag_spider_silk
RUNE_ITEM=i_rune_HEAL
SCROLL_ITEM=i_scroll_HEAL
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=10,11
DURATION=0.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 5]
DEFNAME=s_magic_arrow
NAME=Magic Arrow
SOUND=snd_SPELL_MAGIC_ARROW
CAST_TIME=0.5
RUNES=IPY
RESOURCES=i_reag_black_pearl,i_reag_nightshade
RUNE_ITEM=i_rune_MAGIC_ARROW
SCROLL_ITEM=i_scroll_MAGIC_ARROW
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM
EFFECT_ID=0
EFFECT=2
DURATION=0.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 6]
DEFNAME=s_night_sight
NAME=Night Sight
SOUND=snd_SPELL_NIGHT_SIGHT
RUNES=IL
CAST_TIME=0.4
RESOURCES=i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_NIGHT_SIGHT
SCROLL_ITEM=i_scroll_NIGHT_SIGHT
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=0
DURATION=10*60.0,12*60.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 7]
DEFNAME=s_reactive_armor
NAME=Reactive Armor
SOUND=snd_SPELL_REACTIVE_ARMOR
RUNES=FS
CAST_TIME=0.6
RESOURCES=i_reag_garlic,i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_REACTIVE_ARMOR
SCROLL_ITEM=i_scroll_REACTIVE_ARMOR
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=10.0,60.0
DURATION=480.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 8]
DEFNAME=s_weaken
NAME=Weaken
SOUND=snd_SPELL_WEAKEN
RUNES=DM
CAST_TIME=0.5
RESOURCES=i_reag_garlic,i_reag_nightshade
RUNE_ITEM=i_rune_WEAKEN
SCROLL_ITEM=i_scroll_WEAKEN
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=5,10
DURATION=2*60.0,3*60.0
MANAUSE=4
SKILLREQ=MAGERY 10.0
[Spell 9]
DEFNAME=s_Agility
NAME=Agility
SOUND=snd_SPELL_AGILITY
RUNES=EU
CAST_TIME=1.2
RESOURCES=i_reag_blood_moss,i_reag_mandrake_root
RUNE_ITEM=i_rune_AGILITY
SCROLL_ITEM=i_scroll_AGILITY
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=5,20
DURATION=480.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 10]
DEFNAME=s_Cunning
NAME=Cunning
SOUND=snd_SPELL_CUNNING
RUNES=UW
CAST_TIME=1.0
RESOURCES=i_reag_mandrake_root,i_reag_nightshade
RUNE_ITEM=i_rune_CUNNING
SCROLL_ITEM=i_scroll_CUNNING
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=5,20
DURATION=2*60.0,4*60.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 11]
DEFNAME=s_cure
NAME=Cure
SOUND=snd_SPELL_CURE
RUNES=AN
CAST_TIME=1.2
RESOURCES=i_reag_garlic,i_reag_ginseng
RUNE_ITEM=i_rune_CURE
SCROLL_ITEM=i_scroll_CURE
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=0
DURATION=0.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 12]
DEFNAME=s_harm
NAME=Harm
SOUND=snd_SPELL_HARM
RUNES=AM
CAST_TIME=1.5
RESOURCES=i_reag_nightshade,i_reag_spider_silk
RUNE_ITEM=i_rune_HARM
SCROLL_ITEM=i_scroll_HARM
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=4,7
DURATION=0.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 13]
DEFNAME=s_magic_trap
NAME=Magic Trap
SOUND=snd_SPELL_MAGIC_TRAP
RUNES=IJ
CAST_TIME=1.0
RESOURCES=i_reag_garlic,i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MAGIC_TRAP
SCROLL_ITEM=i_scroll_MAGIC_TRAP
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 14]
DEFNAME=s_magic_untrap
NAME=Magic Untrap
SOUND=snd_SPELL_MAGIC_UNTRAP
RUNES=AJ
CAST_TIME=1.0
RESOURCES=i_reag_blood_moss,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MAGIC_UNTRAP
SCROLL_ITEM=i_scroll_MAGIC_UNTRAP
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 15]
DEFNAME=s_protection
NAME=Protection
SOUND=snd_SPELL_PROTECTION
RUNES=US
CAST_TIME=1.3
RESOURCES=i_reag_garlic,i_reag_ginseng,i_reag_sulfur_ash
RUNE_ITEM=i_rune_PROTECTION
SCROLL_ITEM=i_scroll_PROTECTION
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=5,20
DURATION=480.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 16]
DEFNAME=s_strength
NAME=Strength
SOUND=snd_SPELL_STRENGTH
RUNES=UM
CAST_TIME=1.0
RESOURCES=i_reag_mandrake_root,i_reag_nightshade
RUNE_ITEM=i_rune_STRENGTH
SCROLL_ITEM=i_scroll_STRENGTH
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=5,15
DURATION=2*60.0,4*60.0
MANAUSE=6
SKILLREQ=MAGERY 20.0
[Spell 17]
DEFNAME=s_bless
NAME=Bless
SOUND=snd_SPELL_BLESS
RUNES=RS
CAST_TIME=1.5
RESOURCES=i_reag_garlic,i_reag_mandrake_root
RUNE_ITEM=i_rune_BLESS
SCROLL_ITEM=i_scroll_BLESS
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=5,20
DURATION=500.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
[Spell 18]
DEFNAME=s_fireball
NAME=Fireball
SOUND=snd_SPELL_FIREBALL
RUNES=VF
CAST_TIME=2.0
RESOURCES=i_reag_black_pearl,i_reag_sulfur_ash
RUNE_ITEM=i_rune_FIREBALL
SCROLL_ITEM=i_scroll_FIREBALL
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_RESIST
EFFECT_ID=0
EFFECT=5,10
DURATION=0.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
[Spell 19]
DEFNAME=s_magic_lock
NAME=Magic Lock
SOUND=snd_SPELL_MAGIC_LOCK
RUNES=AP
CAST_TIME=2.0
RESOURCES=i_reag_blood_moss,i_reag_garlic,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MAGIC_LOCK
SCROLL_ITEM=i_scroll_MAGIC_LOCK
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
[Spell 20]
DEFNAME=s_poison
NAME=Poison
SOUND=snd_SPELL_POISON
RUNES=IN
CAST_TIME=2.3
RESOURCES=i_reag_nightshade
RUNE_ITEM=i_rune_POISON
SCROLL_ITEM=i_scroll_POISON
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG
EFFECT_ID=i_fx_curse
EFFECT=10,60
DURATION=2,3
MANAUSE=9
SKILLREQ=MAGERY 30.0
on=@success
src.act.skill fail
[Spell 21]
DEFNAME=s_telekinesis
NAME=Telekinesis
SOUND=snd_SPELL_telekinesis
RUNES=OPY
CAST_TIME=1.9
RESOURCES=i_reag_blood_moss,i_reag_mandrake_root
RUNE_ITEM=i_rune_telekinesis
SCROLL_ITEM=i_scroll_telekinesis
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
[Spell 22]
DEFNAME=s_teleport
NAME=Teleport
SOUND=snd_SPELL_TELEPORT
RUNES=RP
CAST_TIME=2.0
RESOURCES=i_reag_blood_moss,i_reag_mandrake_root
RUNE_ITEM=i_rune_TELEPORT
SCROLL_ITEM=i_scroll_TELEPORT
FLAGS=SPELLFLAG_TARG_XYZ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
[Spell 23]
DEFNAME=s_unlock
NAME=Unlock
SOUND=snd_SPELL_UNLOCK
RUNES=EP
CAST_TIME=1.5
RESOURCES=i_reag_blood_moss,i_reag_sulfur_ash
RUNE_ITEM=i_rune_UNLOCK
SCROLL_ITEM=i_scroll_UNLOCK
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
[Spell 24]
DEFNAME=s_wall_of_stone
NAME=Wall of Stone
SOUND=snd_SPELL_WALL_OF_STONE
RUNES=ISY
CAST_TIME=1.5
RESOURCES=i_reag_blood_moss,i_reag_garlic
RUNE_ITEM=i_rune_WALL_OF_STONE
SCROLL_ITEM=i_scroll_WALL_OF_STONE
FLAGS=SPELLFLAG_TARG_XYZ | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_FIELD
EFFECT_ID=0
EFFECT=0
DURATION=30.0
MANAUSE=9
SKILLREQ=MAGERY 30.0
[Spell 25]
DEFNAME=s_archcure
NAME=Arch Cure
SOUND=snd_SPELL_ARCHCURE
RUNES=VAN
CAST_TIME=2.6
RESOURCES=i_reag_garlic,i_reag_ginseng,i_reag_mandrake_root
RUNE_ITEM=i_rune_ARCHCURE
SCROLL_ITEM=i_scroll_ARCHCURE
FLAGS=SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=0
DURATION=0.0
MANAUSE=11
SKILLREQ=MAGERY 40.0
[Spell 26]
DEFNAME=s_archprotection
NAME=Arch Protection
SOUND=snd_SPELL_ARCHPROTECTION
RUNES=VUS
CAST_TIME=3.2
RESOURCES=i_reag_garlic,i_reag_ginseng,i_reag_mandrake_root,i_reag_sulfur_ash
RUNE_ITEM=i_rune_ARCHPROTECTION
SCROLL_ITEM=i_scroll_ARCHPROTECTION
FLAGS=SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=2,8
DURATION=30.0,90.0
MANAUSE=11
SKILLREQ=MAGERY 40.0
[Spell 27]
DEFNAME=s_curse
NAME=Curse
SOUND=snd_SPELL_CURSE
RUNES=DS
CAST_TIME=2.1
RESOURCES=i_reag_garlic,i_reag_nightshade,i_reag_sulfur_ash
RUNE_ITEM=i_rune_CURSE
SCROLL_ITEM=i_scroll_CURSE
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=5,15
DURATION=10.0,60.0
MANAUSE=11
SKILLREQ=MAGERY 40.0
[Spell 28]
DEFNAME=s_fire_field
NAME=Fire Field
SOUND=snd_SPELL_FIRE_FIELD
RUNES=IFG
CAST_TIME=2.4
RESOURCES=i_reag_black_pearl,i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_FIRE_FIELD
SCROLL_ITEM=i_scroll_FIRE_FIELD
FLAGS=SPELLFLAG_TARG_XYZ | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_FIELD | SPELLFLAG_RESIST
EFFECT_ID=0
EFFECT=5,12
DURATION=40.0
MANAUSE=11
SKILLREQ=MAGERY 55.0
[Spell 29]
DEFNAME=s_greater_heal
NAME=Greater Heal
SOUND=snd_SPELL_GREATER_HEAL
RUNES=IVM
CAST_TIME=3.1
RESOURCES=i_reag_garlic,i_reag_ginseng,i_reag_mandrake_root,i_reag_spider_silk
RUNE_ITEM=i_rune_GREATER_HEAL
SCROLL_ITEM=i_scroll_GREATER_HEAL
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_HEAL_EFFECT
EFFECT=15,50
DURATION=0.0
MANAUSE=11
SKILLREQ=MAGERY 40.0
[Spell 30]
DEFNAME=s_lightning
NAME=Lightning
SOUND=snd_SPELL_LIGHTNING
RUNES=POG
CAST_TIME=2.5
RESOURCES=i_reag_black_pearl,i_reag_mandrake_root,i_reag_sulfur_ash
RUNE_ITEM=i_rune_LIGHTNING
SCROLL_ITEM=i_scroll_LIGHTNING
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_HARM | SPELLFLAG_RESIST
EFFECT_ID=0
EFFECT=10,15
DURATION=0.0
MANAUSE=11
SKILLREQ=MAGERY 50.0
[Spell 31]
DEFNAME=s_mana_drain
NAME=Mana Drain
SOUND=snd_SPELL_MANA_DRAIN
RUNES=OR
CAST_TIME=2.0
RESOURCES=i_reag_black_pearl,i_reag_mandrake_root,i_reag_spider_silk
RUNE_ITEM=i_rune_MANA_DRAIN
SCROLL_ITEM=i_scroll_MANA_DRAIN
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=0
DURATION=0.0
MANAUSE=11
SKILLREQ=MAGERY 50.0
[Spell 32]
DEFNAME=s_recall
NAME=Recall
SOUND=snd_SPELL_RECALL
RUNES=KOP
CAST_TIME=2.0
RESOURCES=i_reag_black_pearl,i_reag_blood_moss,i_reag_mandrake_root
RUNE_ITEM=i_rune_RECALL
SCROLL_ITEM=i_scroll_RECALL
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=11
SKILLREQ=MAGERY 40.0
[Spell 33]
DEFNAME=s_blade_spirits
NAME=Blade Spirit
SOUND=snd_SPELL_BLADE_SPIRITS
RUNES=IJHY
CAST_TIME=2.9
RESOURCES=i_reag_black_pearl,i_reag_mandrake_root,i_reag_nightshade
RUNE_ITEM=i_rune_BLADE_SPIRITS
SCROLL_ITEM=i_scroll_BLADE_SPIRITS
FLAGS=SPELLFLAG_TARG_XYZ | SPELLFLAG_HARM | SPELLFLAG_SUMMON
EFFECT_ID=0
EFFECT=0
DURATION=2*60.0,3*60.0
MANAUSE=14
SKILLREQ=MAGERY 60.0
[Spell 34]
DEFNAME=s_dispel_field
NAME=Dispel Field
SOUND=snd_SPELL_DISPEL_FIELD
RUNES=AG
CAST_TIME=2.5
RESOURCES=i_reag_black_pearl,i_reag_garlic,i_reag_spider_silk,i_reag_sulfur_ash
RUNE_ITEM=i_rune_DISPEL_FIELD
SCROLL_ITEM=i_scroll_DISPEL_FIELD
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=14
SKILLREQ=MAGERY 60.0
[Spell 35]
DEFNAME=s_incognito
NAME=Incognito
SOUND=snd_SPELL_INCOGNITO
RUNES=KIE
CAST_TIME=2.5
RESOURCES=i_reag_blood_moss,i_reag_garlic,i_reag_nightshade
RUNE_ITEM=i_rune_INCOGNITO
SCROLL_ITEM=i_scroll_INCOGNITO
FLAGS=0
EFFECT_ID=0
EFFECT=0
DURATION=5*60.0,8*60.0
MANAUSE=14
SKILLREQ=MAGERY 60.0
[Spell 36]
DEFNAME=s_magic_reflection
NAME=Magic Reflect
SOUND=snd_SPELL_MAGIC_REFLECTION
RUNES=IJS
CAST_TIME=2.8
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_spider_silk
RUNE_ITEM=i_rune_MAGIC_REFLECTION
SCROLL_ITEM=i_scroll_MAGIC_REFLECTION
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_GOOD
EFFECT_ID=i_fx_BLESS_EFFECT
EFFECT=0
DURATION=480.0
MANAUSE=14
SKILLREQ=MAGERY 60.0
[Spell 37]
DEFNAME=s_mind_blast
NAME=Mind Blast
SOUND=snd_SPELL_MIND_BLAST
RUNES=PCW
CAST_TIME=4.0
RESOURCES=i_reag_black_pearl,i_reag_mandrake_root,i_reag_nightshade,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MIND_BLAST
SCROLL_ITEM=i_scroll_MIND_BLAST
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_FX_TARG | SPELLFLAG_HARM | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=40,35
DURATION=0.0
MANAUSE=14
SKILLREQ=MAGERY 60.0
[Spell 38]
DEFNAME=s_paralyze
NAME=Paralyze
SOUND=snd_SPELL_PARALYZE
RUNES=AEP
CAST_TIME=3.5
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_spider_silk
RUNE_ITEM=i_rune_PARALYZE
SCROLL_ITEM=i_scroll_PARALYZE
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG
EFFECT_ID=i_fx_curse
EFFECT=0
DURATION=15.0
MANAUSE=14
SKILLREQ=MAGERY 65.0
[Spell 39]
DEFNAME=s_poison_field
NAME=Poison Field
SOUND=snd_SPELL_POISON_FIELD
RUNES=ING
CAST_TIME=3.0
RESOURCES=i_reag_black_pearl,i_reag_nightshade,i_reag_spider_silk
RUNE_ITEM=i_rune_POISON_FIELD
SCROLL_ITEM=i_scroll_POISON_FIELD
FLAGS=SPELLFLAG_TARG_XYZ | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_FIELD | SPELLFLAG_RESIST
EFFECT_ID=i_fx_curse
EFFECT=5,50
DURATION=2*60.0,4*60.0
MANAUSE=14
SKILLREQ=MAGERY 60.0
[Spell 40]
DEFNAME=s_summon_creature
NAME=Summon
SOUND=snd_SPELL_SUMMON_CREATURE
RUNES=KX
CAST_TIME=2.5
RESOURCES=i_reag_blood_moss,i_reag_mandrake_root,i_reag_spider_silk
RUNE_ITEM=i_rune_SUMMON_CREATURE
SCROLL_ITEM=i_scroll_SUMMON_CREATURE
FLAGS=SPELLFLAG_TARG_XYZ | SPELLFLAG_SUMMON
EFFECT_ID=0
EFFECT=0
DURATION=1*60.0,2*60.0
MANAUSE=14
SKILLREQ=MAGERY 60.0
[Spell 41]
DEFNAME=s_dispel
NAME=Dispel
SOUND=snd_SPELL_DISPEL
RUNES=AO
CAST_TIME=2.8
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_sulfur_ash
RUNE_ITEM=i_rune_DISPEL
SCROLL_ITEM=i_scroll_DISPEL
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM
EFFECT_ID=0
EFFECT=0
DURATION=0.0
MANAUSE=20
SKILLREQ=MAGERY 70.0
[Spell 42]
DEFNAME=s_energy_bolt
NAME=Energy Bolt
SOUND=snd_SPELL_ENERGY_BOLT
RUNES=CP
CAST_TIME=3.5
RESOURCES=i_reag_black_pearl,i_reag_nightshade
RUNE_ITEM=i_rune_ENERGY_BOLT
SCROLL_ITEM=i_scroll_ENERGY_BOLT
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=0
EFFECT=35,60
DURATION=0.0
MANAUSE=20
SKILLREQ=MAGERY 70.0
[Spell 43]
DEFNAME=s_explosion
NAME=Explosion
SOUND=snd_SPELL_EXPLOSION
RUNES=VOF
CAST_TIME=3.3
RESOURCES=i_reag_black_pearl,i_reag_mandrake_root,i_reag_sulfur_ash
RUNE_ITEM=i_rune_EXPLOSION
SCROLL_ITEM=i_scroll_EXPLOSION
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_DIR_ANIM | SPELLFLAG_HARM | SPELLFLAG_FX_TARG | SPELLFLAG_RESIST
EFFECT_ID=i_fx_explode
EFFECT=35,45
DURATION=0.0
MANAUSE=20
SKILLREQ=MAGERY 70.0
[Spell 44]
DEFNAME=s_invisibility
NAME=Invisibility
SOUND=snd_SPELL_INVISIBILITY
RUNES=ALX
CAST_TIME=3.0
RESOURCES=i_reag_blood_moss,i_reag_nightshade
RUNE_ITEM=i_rune_INVISIBILITY
SCROLL_ITEM=i_scroll_INVISIBILITY
FLAGS=SPELLFLAG_TARG_CHAR | SPELLFLAG_GOOD
EFFECT_ID=0
EFFECT=0
DURATION=3*60.0,5*60.0
MANAUSE=20
SKILLREQ=MAGERY 70.0
[Spell 45]
DEFNAME=s_mark
NAME=Mark
SOUND=snd_SPELL_MARK
RUNES=KPY
CAST_TIME=3.0
RESOURCES=i_reag_black_pearl,i_reag_blood_moss,i_reag_mandrake_root
RUNE_ITEM=i_rune_MARK
SCROLL_ITEM=i_scroll_MARK
FLAGS=SPELLFLAG_TARG_OBJ
EFFECT_ID=0
EFFECT=1,10
DURATION=0.0
MANAUSE=20
SKILLREQ=MAGERY 65.0
[Spell 46]
DEFNAME=s_mass_curse
NAME=Mass Curse
SOUND=snd_SPELL_MASS_CURSE
RUNES=VDS
CAST_TIME=3.3
RESOURCES=i_reag_garlic,i_reag_mandrake_root,i_reag_nightshade,i_reag_sulfur_ash
RUNE_ITEM=i_rune_MASS_CURSE
SCROLL_ITEM=i_scroll_MASS_CURSE
FLAGS=SPELLFLAG_HARM |
[typedef t_yereatildi]
ON=@timer
remove
[function spell_say]
if (<src.account.plevel> < 2)
sayua 0835,6,0,enu <args>
endif
[events fix]
ON=@UserQuestButton
openquestlog
ON=@UserguildButton
guildonline
On=@Profile
if (<src.uid> == <uid>) || (0<src.account.plevel> > 2)
src.sysmessage @0481,,1 Hesap : <ACCOUNT>,online süresi <eval (<account.totalconnecttime> / 60)> saat.
src.sysmessage @0481,,1 Kayıt : <account.firstconnectdate>
src.sysmessage @0481,,1 Karakter : <eval (<age> / 86400)> gün önce doğmuş.
endif
On=@mount
targ.findid.i_rune_poison.remove
targ.findid.i_rune_poison_field.remove
targ.findid.i_bleeding.remov
On=@Death
if !(<isevent.e_qchar>)
if (<fame> > 9900) && (<memoryfindtype.memory_harmedby>) && (<act.ischar>) && (<act.uid> != <uid>)
serv.allclients sysmessage @0481,,1 <sex Lord/Lady> <name>, <act.name> tarafindan <region.name> civarlarında öldürüldü.
endif
endif
if (<src.findid.i_bleeding>)
findid.i_bleeding.remove
findid.i_bleeding2.remove
return 1
endif
if (<kills> > 5)
f_statloss
findid.i_mem_healing.remove
endif
endif
if (<src.findid.i_magerylvl>)
src.findid.i_magerylvl.remove
endif
if (<src.findid.i_evallvl>)
src.findid.i_evallvl.remove
endif
if (<src.findid.i_poisonlvl>)
src.findid.i_poisonlvl.remove
endif
if (<src.findid.i_spdelay_man>)
src.findid.i_spdelay_man.remove
elseif (<src.findid.i_spdelay_woman>)
src.findid.i_spdelay_woman.remove
elseif (<src.findid.i_spdelay_unisex>)
src.findid.i_spdelay_unisex.remove
endif
return 1
On=@GetHit
IF ( <FLAGS> & statf_reactive )
FLAGS=<FLAGS> & ~statf_reactive
SRC.FLAGS=<SRC.FLAGS> & ~statf_reactive
DAMAGE=<ARGN1> 01 <SRC.UID>
IF (<FINDID.i_rune_reactive_armor>)
FLAGS=<FLAGS> | statf_reactive
ENDIF
IF (<SRC.FINDID.i_rune_reactive_armor>)
SRC.FLAGS=<SRC.FLAGS> | statf_reactive
ENDIF
RETURN 1
ENDIF
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
On=@EnvironChange
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
if !(<memoryfindtype.memory_guild.link.align>)
if (<findlayer(2).baseid> == i_shield_chaos) || (<findlayer(2).baseid> == i_shield_order)
findlayer(2).unequip
endif
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
endif
endif
if ((<body> == c_man) || (<body> == c_woman)) // yimmeeah
if !((<isevent.e_jail>) || (<flags>&statf_stone) || (<isevent.e_qchar>))
if (<food> == 3)
say * acliktan basi doner *
elseif (<food> == 2)
say * acliktan basi doner *
elseif (<food> == 1)
say * acliktan olmek uzeredir *
elseif (<food> == 0)
//sayua 045f * acliktan olur *
newitem i_aclikcim
act.equip
endif
endif
endif
On=@SpellCast
if !((<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
return 1
endif
if (<kills> < 8) && (strmatch(&裟<targ.region.name>&裟,&裟Calimport&裟))
sysmessage @066d,,1 Calimport&裟un güçlü büyü duvarları sebebiyle büyünüz etki göstermedi.
go 5249 3918 28
f_fizzle
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 (<act.id> == c_steacher)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
//if (<act.id> == c_tuccar)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
if (<src.findid.i_mem_spellheall>)
sayua 020,6,6,0 * bandajlari yirtilir *
findid.i_mem_healing.remove
endif
// spell freeze time
if (<argn> == 1)// Clumsy
spell_say Uus Jux
mg1
elseif (<argn> == 2)
spell_say In Mani Ylem // Create food
foodverici
mg1
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
mg1
elseif (<argn> == 4) // Heal
spell_say In Mani
sd 1
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>)
sysmessage @066d,,1 Yaranızı iyileştirmelisiniz.
f_fizzle
return 1
return 1
endif
mg2
elseif (<argn> == 5) // Magic Arrow
spell_say In Por Ylem
mg1
elseif (<argn> == 6) // Night Sight
spell_say In Lor
mg1
elseif (<argn> == 7) // Reactive Armor
if (<act.serial>==<targ.serial>)
spell_say Flam Sanct
sd 1
mg1
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde 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
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
sd 1
mg2
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 16) // Strength
spell_say Uus Mani
sd 1
mg2
elseif (<argn> == 17) // Bless
if (<act.serial>==<targ.serial>)
spell_say Rel Sanct
sd 1
mg3
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 18) // Fireball
spell_say Vas Flam
sd 1
mg3
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
if !(<act.serial>==<targ.serial>)
spell_say In Nox
psg
sd 1
else
skill fail
sysmessage @066d,,1 Bu büyüyü kendinize atamazsınız.
return 1
endif
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
src.sysmessage @066d,,1 Bu büyünün kullanımı kapatılmıştır.
f_fizzle
return 1
elseif (<argn> == 22) // Teleport
spell_say Rel Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
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
endif
// spellfreeze 1
sd 1
mg3
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
elseif (<argn> == 25) // Arch Cure
spell_say Vas An Nox
sd 2
mg4
elseif (<argn> == 26) // Arch Protection
spell_say Vas Uus Sanct
sd 2
mg4
elseif (<argn> == 27) // Curse
spell_say Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg4
sd 2
elseif (<argn> == 29) // Greater Heal
spell_say In Vas Mani
sd 2
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>
sysmessage @066d,,1 Yaranizi iyilestirmelisiniz.
f_fizzle
return 1
return 1
endif
mg4
elseif (<argn> == 30) // Lightning
spell_say Por Ort Grav
sd 2
mg4
elseif (<argn> == 31) // Mana Drain
spell_say Ort Rel
f_fizzle
return 1
elseif (<argn> == 32) // Recall
spell_say Kal Ort Por
sd 2
mg4
if (0<src.tag.ticaret>==01)
if !(0<src.tag.ticaretk>==0<uid>
src.sysmessage @066d,,1 Ticaret yaparken bunu kullanamazsınız.
f_fizzle
return 1
endif
endif
elseif (<argn> == 33) // Blade Spirits
spell_say In Jux Hur Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 34) // Dispel Field
spell_say An Grav
if (<act.ischar>)
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
f_fizzle
return 1
elseif (<argn> == 36) // Magic Reflect
spell_say In Jux Sanct
sd 2
mg5
elseif (<argn> == 37) // Mind Blast
spell_say Por Corp Wis
sd 2
mg5
elseif (<argn> == 38) // Paralyze
spell_say An Ex Por
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 40) // Summon Creature
spell_say Kal Xen
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 41) // Dispel
spell_say An Ort
sd 2
mg6
elseif (<argn> == 42) // Energy Bolt
spell_say Corp Por
sd 2
mg6
elseif (<argn> == 43) // Explosion
spell_say Vas Ort Flam
sd 2
mg6
elseif (<argn> == 44) // Invisibility
spell_say An Lor Xen
sd 2
mg6
elseif (<argn> == 45) // Mark
spell_say Kal Por Ylem
sd 2
mg6
elseif (<argn> == 46) // Mass Curse
spell_say Vas Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg6
sd 2
elseif (<argn> == 48) // Reveal
spell_say Wis Quas
sd 2
mg6
elseif (<argn> == 49) // Chain Lightning
spell_say Vas Ort Grav
if (<act.uid> == <uid>)
f_fizzle
return 1
endif
sd 3
mg7
if (<src.region.guarded> == 1)
f_fizzle
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
return 1
endif
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 2
elseif (<argn> == 51) // Flame strike
spell_say Kal Vas Flam
sd 3
mg7
elseif (<argn> == 52) // Gate Travel
spell_say Vas Rel Por
sd 3
mg7
elseif (<argn> == 53) // Mana Vampire
spell_say Ort Sanct
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
spell_say Vas An Ort
sd 3
mg7
elseif (<argn> == 55) // Meteor Swarm
spell_say Flam Kal Des Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 3
elseif (<argn> == 56) // Polymorph
spell_say Vas Ylem Rel
sd 7
mg3
elseif (<argn> == 57) // Earthquake
spell_say In Vas Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 4
elseif (<argn> == 58) // Energy Vortex
spell_say Vas Corp Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 59) // Resurrect
spell_say An Corp
sd 3
mg8
elseif (<argn> == 60) // Air Elemental
spell_say Kal Vas Xen Hur
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 62) // Earth Elemental
spell_say Kal Vas Xen Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 64) // Water Elemental
spell_say Kal Vas Xen An Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
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> == 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 &褳10 15}
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.poisoning> == 120.0)
findid.i_rune_poison.morey += 50.0
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 3
if (<findid.i_pouch_trapped.more2> > 1)
findid.i_pouch_trapped.more2 <eval <findid.i_pouch_trapped.more2>-1>
return 1
else
findid.i_pouch_trapped.remove
return 1
endif
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 @03b2,,1, Faction uyelerini iyilestiremezsiniz.
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
src.sysmessage @03b2,,1, 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
if (<flags>&statf_onhorse)
On=@Click
if !(<findid.i_rune_incognito>) && (<memoryfindtype.memory_guild>)
if (strmatch(&裟<tag.gs_title>&裟,&裟&裟)
message @0481,,1 [<memoryfindtype.memory_guild.link.name>]
else
message @0481,,1 [<tag.gs_title>, <memoryfindtype.memory_guild.link.abbrev>]
endif
endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
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
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_bow)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
endif
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemUnEquip
//if (<act.type> == t_weapon_axe)
//events -e_axer
//endif
On=@ItemDClick
if (<targ.topobj.id> == c_player_v)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
On=@ItemClick
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
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 @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
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
[events e_atmalen]
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
//elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
//if (<act.price> > 0)
//act.price 0
//endif
//endif
On=@ItemTargOn_Item
if ((<targ.topobj.id> == c_player_v) && (<act.cont.uid> != <targ.topobj.uid>))
return 1
[events gmfix]
On=@Death
hits <str>
fame 0
return 1
On=@EnvironChange
food 999
karma 0
fame 0
ON=@UserQuestButton
src.sysmessage Quest sistemi askıdadır.İstendiği takdirde eklenecektir.
ON=@UserguildButton
guildonline
On=@mount
if !((<argo.id> == c_staff) || (<argo.id> == c_staff2) || (<argo.id> == c_staff3) || (<argo.id> == c_staff6) || (<argo.id> == c_staff4) || (<argo.id> == c_staff5))
src.sysmessage @066d,,1 Stafflar kendilerine özel binekten başka bineğe binemez.
return 1
endif
on=@itemcreate
if (<src.account.plevel> > 1)
try uid.<argo.uid>.tag.tarihisoylebab <serv.rtime>
try uid.<argo.uid>.tag.cikarankim <eval <src.uid>>
endif
On=@SpellCast
if ((<flags>&statf_freeze) || (<flags>&statf_stone))
f_fizzle
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 (<act.id> == c_player_v)
if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
f_fizzle
return 1
endif
endif
if (<src.findid.i_mem_spellheal>)
f_fizzle
src.sysmessage @066d,,1 Bandaj kullanırken büyü yapamazsınız.
return 1
endif
On=@Click
IF (<ACCOUNT.PLEVEL> = 2)
message @07a1 [ Counselor ]
message @07a1 <name>
return 1
elseif (strmatch(&裟<account.name>&裟,&裟qweqwewqewqeqwew&裟))
message @07a1 Player Master
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 3)
message @07a1 [ Seer ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 4)
message @07a1 [ Game Master ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 5)
message @07a1 [ Senior GM ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 6)
message @07a1 [ Administrator ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> > 6 )
message @07a1 [ Owner ]
message @07a1 <name>
return 1
endif
On=@DClick
if (<account.plevel> <8)
title <SERV.NAME> Yetkili Uyesi
endif
on=@ITEMPICKUP_PACK
if (<act.topobj.npc> == brain_monster) || (<act.topobj.npc> == brain_dragon)
return 1
endif
On=@GetHit
return 1
On=@ItemDClick
if (<act.type>=t_corpse)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Cesetleri açamazsınız.
return 1
endif
endif
if (<targ.baseid>=i_worldgem_bit)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Spawn taşları yenilenemez.
return 1
endif
endif
endif
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_bow) || (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemClick
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
endif
if (<act.type> == t_container)
if !(<act.baseid> == i_strong_box)
if (<act.attr>&attr_move_never) && !(strmatch(&裟<act.region.tag0.owner>,&裟&裟)) && (<act.region.uid> == <region.uid>)
act.message @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
endif
endif
endif
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
//if (<src.account.plevel> > 5)
//if !(<act.tag0.cikarankim>==0)
//act.message @0799,1,1 [Staff tarafından yapıldı]
//act.message @0783,,1 Çıkaran isim & Acc : [<serv.uid.<act.tag0.cikarankim>.name>] - [<serv.uid.<act.tag0.cikarankim>.account.name>]
//act.message @0783,,1 Tarih : [<act.tag0.tarihisoylebab>] | Eşya ismi : [<act.name>]
//return 1
//endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
endif
endif
[function foodverici]
IF (<magery> < 10.0) || !(<src.restest 1 i_reag_garlic>) || !(<src.restest 1 i_reag_ginseng>) || !(<src.restest 1 i_reag_mandrake_root>)
sysmessage @066d,,1 Malzeme eksik veya yetersiz yetenek.
return 1
elseif (<mana> < 4)
sysmessage @066d,,1 Yetersiz mana
return 1
else
mana <mana> + (-4)
foodver
endif
[function foodver]
dorand 5
tag.yemekci 1
tag.yemekci 2
tag.yemekci 3
tag.yemekci 4
tag.yemekci 5
enddo
if (<tag.yemekci> ==1)
newitem i_cake
act.bounce
elseif (<tag.yemekci> == 2)
newitem i_fish_cut_cooked
act.bounce
elseif (<tag.yemekci> == 3)
newitem i_bread_loaf
act.bounce
elseif (<tag.yemekci> == 4)
newitem i_bread_french
act.bounce
elseif (<tag.yemekci> == 5)
newitem i_ribs_cooked
act.bounce
endif
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
if (<act.price> > 0)
act.price 0
endif
endif
[EOF]
[typedef t_yereatildi]
ON=@timer
remove
[function spell_say]
if (<src.account.plevel> < 2)
sayua 07a1,eng <args>
endif
[events fix]
ON=@UserQuestButton
openquestlog
ON=@UserguildButton
guildonline
On=@Profile
if (<src.uid> == <uid>) || (0<src.account.plevel> > 2)
src.sysmessage @0481,,1 Hesap : <ACCOUNT>,online süresi <eval (<account.totalconnecttime> / 60)> saat.
src.sysmessage @0481,,1 Kayıt : <account.firstconnectdate>
src.sysmessage @0481,,1 Karakter : <eval (<age> / 86400)> gün önce doğmuş.
endif
On=@mount
targ.findid.i_rune_poison.remove
targ.findid.i_rune_poison_field.remove
targ.findid.i_bleeding.remov
On=@Death
if !(<isevent.e_qchar>)
if (<fame> > 9900) && (<memoryfindtype.memory_harmedby>) && (<act.ischar>) && (<act.uid> != <uid>)
serv.allclients sysmessage @0481,,1 <sex Lord/Lady> <name>, <act.name> tarafindan <region.name> civarlarında öldürüldü.
endif
endif
if (<src.findid.i_bleeding>)
findid.i_bleeding.remove
findid.i_bleeding2.remove
return 1
endif
if (<kills> > 5)
f_statloss
findid.i_mem_healing.remove
endif
endif
if (<src.findid.i_magerylvl>)
src.findid.i_magerylvl.remove
endif
if (<src.findid.i_evallvl>)
src.findid.i_evallvl.remove
endif
if (<src.findid.i_poisonlvl>)
src.findid.i_poisonlvl.remove
endif
if (<src.findid.i_spdelay_man>)
src.findid.i_spdelay_man.remove
elseif (<src.findid.i_spdelay_woman>)
src.findid.i_spdelay_woman.remove
elseif (<src.findid.i_spdelay_unisex>)
src.findid.i_spdelay_unisex.remove
endif
return 1
On=@GetHit
IF ( <FLAGS> & statf_reactive )
FLAGS=<FLAGS> & ~statf_reactive
SRC.FLAGS=<SRC.FLAGS> & ~statf_reactive
DAMAGE=<ARGN1> 01 <SRC.UID>
IF (<FINDID.i_rune_reactive_armor>)
FLAGS=<FLAGS> | statf_reactive
ENDIF
IF (<SRC.FINDID.i_rune_reactive_armor>)
SRC.FLAGS=<SRC.FLAGS> | statf_reactive
ENDIF
RETURN 1
ENDIF
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
On=@EnvironChange
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
if !(<memoryfindtype.memory_guild.link.align>)
if (<findlayer(2).baseid> == i_shield_chaos) || (<findlayer(2).baseid> == i_shield_order)
findlayer(2).unequip
endif
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
endif
endif
if ((<body> == c_man) || (<body> == c_woman)) // yimmeeah
if !((<isevent.e_jail>) || (<flags>&statf_stone) || (<isevent.e_qchar>))
if (<food> == 3)
say * acliktan basi doner *
elseif (<food> == 2)
say * acliktan basi doner *
elseif (<food> == 1)
say * acliktan olmek uzeredir *
elseif (<food> == 0)
//sayua 045f * acliktan olur *
newitem i_aclikcim
act.equip
endif
endif
endif
On=@SpellCast
if !((<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
return 1
endif
if (<kills> < 8) && (strmatch(&裟<targ.region.name>&裟,&裟Calimport&裟))
sysmessage @066d,,1 Calimport&裟un güçlü büyü duvarları sebebiyle büyünüz etki göstermedi.
go 5249 3918 28
f_fizzle
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 (<act.id> == c_steacher)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
//if (<act.id> == c_tuccar)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
if (<src.findid.i_mem_spellheall>)
sayua 020,6,6,0 * bandajlari yirtilir *
findid.i_mem_healing.remove
endif
// spell freeze time
if (<argn> == 1)// Clumsy
spell_say Uus Jux
mg1
elseif (<argn> == 2)
spell_say In Mani Ylem // Create food
foodverici
mg1
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
mg1
elseif (<argn> == 4) // Heal
spell_say In Mani
sd 1
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>)
sysmessage @066d,,1 Yaranızı iyileştirmelisiniz.
f_fizzle
return 1
return 1
endif
mg2
elseif (<argn> == 5) // Magic Arrow
spell_say In Por Ylem
mg1
elseif (<argn> == 6) // Night Sight
spell_say In Lor
mg1
elseif (<argn> == 7) // Reactive Armor
if (<act.serial>==<targ.serial>)
spell_say Flam Sanct
sd 1
mg1
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde 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
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
sd 1
mg2
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 16) // Strength
spell_say Uus Mani
sd 1
mg2
elseif (<argn> == 17) // Bless
if (<act.serial>==<targ.serial>)
spell_say Rel Sanct
sd 1
mg3
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 18) // Fireball
spell_say Vas Flam
sd 1
mg3
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
if !(<act.serial>==<targ.serial>)
spell_say In Nox
psg
sd 1
else
skill fail
sysmessage @066d,,1 Bu büyüyü kendinize atamazsınız.
return 1
endif
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
src.sysmessage @066d,,1 Bu büyünün kullanımı kapatılmıştır.
f_fizzle
return 1
elseif (<argn> == 22) // Teleport
spell_say Rel Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
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
endif
// spellfreeze 1
sd 1
mg3
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
elseif (<argn> == 25) // Arch Cure
spell_say Vas An Nox
sd 2
mg4
elseif (<argn> == 26) // Arch Protection
spell_say Vas Uus Sanct
sd 2
mg4
elseif (<argn> == 27) // Curse
spell_say Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg4
sd 2
elseif (<argn> == 29) // Greater Heal
spell_say In Vas Mani
sd 2
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>
sysmessage @066d,,1 Yaranizi iyilestirmelisiniz.
f_fizzle
return 1
return 1
endif
mg4
elseif (<argn> == 30) // Lightning
spell_say Por Ort Grav
sd 2
mg4
elseif (<argn> == 31) // Mana Drain
spell_say Ort Rel
f_fizzle
return 1
elseif (<argn> == 32) // Recall
spell_say Kal Ort Por
sd 2
mg4
if (0<src.tag.ticaret>==01)
if !(0<src.tag.ticaretk>==0<uid>
src.sysmessage @066d,,1 Ticaret yaparken bunu kullanamazsınız.
f_fizzle
return 1
endif
endif
elseif (<argn> == 33) // Blade Spirits
spell_say In Jux Hur Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 34) // Dispel Field
spell_say An Grav
if (<act.ischar>)
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
f_fizzle
return 1
elseif (<argn> == 36) // Magic Reflect
spell_say In Jux Sanct
sd 2
mg5
elseif (<argn> == 37) // Mind Blast
spell_say Por Corp Wis
sd 2
mg5
elseif (<argn> == 38) // Paralyze
spell_say An Ex Por
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 40) // Summon Creature
spell_say Kal Xen
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 41) // Dispel
spell_say An Ort
sd 2
mg6
elseif (<argn> == 42) // Energy Bolt
spell_say Corp Por
sd 2
mg6
elseif (<argn> == 43) // Explosion
spell_say Vas Ort Flam
sd 2
mg6
elseif (<argn> == 44) // Invisibility
spell_say An Lor Xen
sd 2
mg6
elseif (<argn> == 45) // Mark
spell_say Kal Por Ylem
sd 2
mg6
elseif (<argn> == 46) // Mass Curse
spell_say Vas Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg6
sd 2
elseif (<argn> == 48) // Reveal
spell_say Wis Quas
sd 2
mg6
elseif (<argn> == 49) // Chain Lightning
spell_say Vas Ort Grav
if (<act.uid> == <uid>)
f_fizzle
return 1
endif
sd 3
mg7
if (<src.region.guarded> == 1)
f_fizzle
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
return 1
endif
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 2
elseif (<argn> == 51) // Flame strike
spell_say Kal Vas Flam
sd 3
mg7
elseif (<argn> == 52) // Gate Travel
spell_say Vas Rel Por
sd 3
mg7
elseif (<argn> == 53) // Mana Vampire
spell_say Ort Sanct
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
spell_say Vas An Ort
sd 3
mg7
elseif (<argn> == 55) // Meteor Swarm
spell_say Flam Kal Des Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 3
elseif (<argn> == 56) // Polymorph
spell_say Vas Ylem Rel
sd 7
mg3
elseif (<argn> == 57) // Earthquake
spell_say In Vas Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 4
elseif (<argn> == 58) // Energy Vortex
spell_say Vas Corp Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 59) // Resurrect
spell_say An Corp
sd 3
mg8
elseif (<argn> == 60) // Air Elemental
spell_say Kal Vas Xen Hur
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 62) // Earth Elemental
spell_say Kal Vas Xen Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 64) // Water Elemental
spell_say Kal Vas Xen An Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
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> == 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 &褳10 15}
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.poisoning> == 120.0)
findid.i_rune_poison.morey += 50.0
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 3
if (<findid.i_pouch_trapped.more2> > 1)
findid.i_pouch_trapped.more2 <eval <findid.i_pouch_trapped.more2>-1>
return 1
else
findid.i_pouch_trapped.remove
return 1
endif
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 @03b2,,1, Faction uyelerini iyilestiremezsiniz.
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
src.sysmessage @03b2,,1, 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
if (<flags>&statf_onhorse)
On=@Click
if !(<findid.i_rune_incognito>) && (<memoryfindtype.memory_guild>)
if (strmatch(&裟<tag.gs_title>&裟,&裟&裟)
message @0481,,1 [<memoryfindtype.memory_guild.link.name>]
else
message @0481,,1 [<tag.gs_title>, <memoryfindtype.memory_guild.link.abbrev>]
endif
endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
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
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_bow)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
endif
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemUnEquip
//if (<act.type> == t_weapon_axe)
//events -e_axer
//endif
On=@ItemDClick
if (<targ.topobj.id> == c_player_v)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
On=@ItemClick
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
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 @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
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
[events e_atmalen]
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
//elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
//if (<act.price> > 0)
//act.price 0
//endif
//endif
On=@ItemTargOn_Item
if ((<targ.topobj.id> == c_player_v) && (<act.cont.uid> != <targ.topobj.uid>))
return 1
[events gmfix]
On=@Death
hits <str>
fame 0
return 1
On=@EnvironChange
food 999
karma 0
fame 0
ON=@UserQuestButton
src.sysmessage Quest sistemi askıdadır.İstendiği takdirde eklenecektir.
ON=@UserguildButton
guildonline
On=@mount
if !((<argo.id> == c_staff) || (<argo.id> == c_staff2) || (<argo.id> == c_staff3) || (<argo.id> == c_staff6) || (<argo.id> == c_staff4) || (<argo.id> == c_staff5))
src.sysmessage @066d,,1 Stafflar kendilerine özel binekten başka bineğe binemez.
return 1
endif
on=@itemcreate
if (<src.account.plevel> > 1)
try uid.<argo.uid>.tag.tarihisoylebab <serv.rtime>
try uid.<argo.uid>.tag.cikarankim <eval <src.uid>>
endif
On=@SpellCast
if ((<flags>&statf_freeze) || (<flags>&statf_stone))
f_fizzle
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 (<act.id> == c_player_v)
if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
f_fizzle
return 1
endif
endif
if (<src.findid.i_mem_spellheal>)
f_fizzle
src.sysmessage @066d,,1 Bandaj kullanırken büyü yapamazsınız.
return 1
endif
On=@Click
IF (<ACCOUNT.PLEVEL> = 2)
message @07a1 [ Counselor ]
message @07a1 <name>
return 1
elseif (strmatch(&裟<account.name>&裟,&裟qweqwewqewqeqwew&裟))
message @07a1 Player Master
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 3)
message @07a1 [ Seer ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 4)
message @07a1 [ Game Master ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 5)
message @07a1 [ Senior GM ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 6)
message @07a1 [ Administrator ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> > 6 )
message @07a1 [ Owner ]
message @07a1 <name>
return 1
endif
On=@DClick
if (<account.plevel> <8)
title <SERV.NAME> Yetkili Uyesi
endif
on=@ITEMPICKUP_PACK
if (<act.topobj.npc> == brain_monster) || (<act.topobj.npc> == brain_dragon)
return 1
endif
On=@GetHit
return 1
On=@ItemDClick
if (<act.type>=t_corpse)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Cesetleri açamazsınız.
return 1
endif
endif
if (<targ.baseid>=i_worldgem_bit)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Spawn taşları yenilenemez.
return 1
endif
endif
endif
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_bow) || (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemClick
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
endif
if (<act.type> == t_container)
if !(<act.baseid> == i_strong_box)
if (<act.attr>&attr_move_never) && !(strmatch(&裟<act.region.tag0.owner>,&裟&裟)) && (<act.region.uid> == <region.uid>)
act.message @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
endif
endif
endif
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
//if (<src.account.plevel> > 5)
//if !(<act.tag0.cikarankim>==0)
//act.message @0799,1,1 [Staff tarafından yapıldı]
//act.message @0783,,1 Çıkaran isim & Acc : [<serv.uid.<act.tag0.cikarankim>.name>] - [<serv.uid.<act.tag0.cikarankim>.account.name>]
//act.message @0783,,1 Tarih : [<act.tag0.tarihisoylebab>] | Eşya ismi : [<act.name>]
//return 1
//endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
endif
endif
[function foodverici]
IF (<magery> < 10.0) || !(<src.restest 1 i_reag_garlic>) || !(<src.restest 1 i_reag_ginseng>) || !(<src.restest 1 i_reag_mandrake_root>)
sysmessage @066d,,1 Malzeme eksik veya yetersiz yetenek.
return 1
elseif (<mana> < 4)
sysmessage @066d,,1 Yetersiz mana
return 1
else
mana <mana> + (-4)
foodver
endif
[function foodver]
dorand 5
tag.yemekci 1
tag.yemekci 2
tag.yemekci 3
tag.yemekci 4
tag.yemekci 5
enddo
if (<tag.yemekci> ==1)
newitem i_cake
act.bounce
elseif (<tag.yemekci> == 2)
newitem i_fish_cut_cooked
act.bounce
elseif (<tag.yemekci> == 3)
newitem i_bread_loaf
act.bounce
elseif (<tag.yemekci> == 4)
newitem i_bread_french
act.bounce
elseif (<tag.yemekci> == 5)
newitem i_ribs_cooked
act.bounce
endif
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
if (<act.price> > 0)
act.price 0
endif
endif
[EOF]
[typedef t_yereatildi]
ON=@timer
remove
[function spell_say]
if (<src.account.plevel> < 2)
sayua 07a1,enu <args>
endif
[events fix]
ON=@UserQuestButton
openquestlog
ON=@UserguildButton
guildonline
On=@Profile
if (<src.uid> == <uid>) || (0<src.account.plevel> > 2)
src.sysmessage @0481,,1 Hesap : <ACCOUNT>,online süresi <eval (<account.totalconnecttime> / 60)> saat.
src.sysmessage @0481,,1 Kayıt : <account.firstconnectdate>
src.sysmessage @0481,,1 Karakter : <eval (<age> / 86400)> gün önce doğmuş.
endif
On=@mount
targ.findid.i_rune_poison.remove
targ.findid.i_rune_poison_field.remove
targ.findid.i_bleeding.remov
On=@Death
if !(<isevent.e_qchar>)
if (<fame> > 9900) && (<memoryfindtype.memory_harmedby>) && (<act.ischar>) && (<act.uid> != <uid>)
serv.allclients sysmessage @0481,,1 <sex Lord/Lady> <name>, <act.name> tarafindan <region.name> civarlarında öldürüldü.
endif
endif
if (<src.findid.i_bleeding>)
findid.i_bleeding.remove
findid.i_bleeding2.remove
return 1
endif
if (<kills> > 5)
f_statloss
findid.i_mem_healing.remove
endif
endif
if (<src.findid.i_magerylvl>)
src.findid.i_magerylvl.remove
endif
if (<src.findid.i_evallvl>)
src.findid.i_evallvl.remove
endif
if (<src.findid.i_poisonlvl>)
src.findid.i_poisonlvl.remove
endif
if (<src.findid.i_spdelay_man>)
src.findid.i_spdelay_man.remove
elseif (<src.findid.i_spdelay_woman>)
src.findid.i_spdelay_woman.remove
elseif (<src.findid.i_spdelay_unisex>)
src.findid.i_spdelay_unisex.remove
endif
return 1
On=@GetHit
IF ( <FLAGS> & statf_reactive )
FLAGS=<FLAGS> & ~statf_reactive
SRC.FLAGS=<SRC.FLAGS> & ~statf_reactive
DAMAGE=<ARGN1> 01 <SRC.UID>
IF (<FINDID.i_rune_reactive_armor>)
FLAGS=<FLAGS> | statf_reactive
ENDIF
IF (<SRC.FINDID.i_rune_reactive_armor>)
SRC.FLAGS=<SRC.FLAGS> | statf_reactive
ENDIF
RETURN 1
ENDIF
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
On=@EnvironChange
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
if !(<memoryfindtype.memory_guild.link.align>)
if (<findlayer(2).baseid> == i_shield_chaos) || (<findlayer(2).baseid> == i_shield_order)
findlayer(2).unequip
endif
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
endif
endif
if ((<body> == c_man) || (<body> == c_woman)) // yimmeeah
if !((<isevent.e_jail>) || (<flags>&statf_stone) || (<isevent.e_qchar>))
if (<food> == 3)
say * acliktan basi doner *
elseif (<food> == 2)
say * acliktan basi doner *
elseif (<food> == 1)
say * acliktan olmek uzeredir *
elseif (<food> == 0)
//sayua 045f * acliktan olur *
newitem i_aclikcim
act.equip
endif
endif
endif
On=@SpellCast
if !((<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
return 1
endif
if (<kills> < 8) && (strmatch(&裟<targ.region.name>&裟,&裟Calimport&裟))
sysmessage @066d,,1 Calimport&裟un güçlü büyü duvarları sebebiyle büyünüz etki göstermedi.
go 5249 3918 28
f_fizzle
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 (<act.id> == c_steacher)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
//if (<act.id> == c_tuccar)
//if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
//f_fizzle
//return 1
//endif
//endif
if (<src.findid.i_mem_spellheall>)
sayua 020,6,6,0 * bandajlari yirtilir *
findid.i_mem_healing.remove
endif
// spell freeze time
if (<argn> == 1)// Clumsy
spell_say Uus Jux
mg1
elseif (<argn> == 2)
spell_say In Mani Ylem // Create food
foodverici
mg1
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
mg1
elseif (<argn> == 4) // Heal
spell_say In Mani
sd 1
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>)
sysmessage @066d,,1 Yaranızı iyileştirmelisiniz.
f_fizzle
return 1
return 1
endif
mg2
elseif (<argn> == 5) // Magic Arrow
spell_say In Por Ylem
mg1
elseif (<argn> == 6) // Night Sight
spell_say In Lor
mg1
elseif (<argn> == 7) // Reactive Armor
if (<act.serial>==<targ.serial>)
spell_say Flam Sanct
sd 1
mg1
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde 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
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
sd 1
mg2
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 16) // Strength
spell_say Uus Mani
sd 1
mg2
elseif (<argn> == 17) // Bless
if (<act.serial>==<targ.serial>)
spell_say Rel Sanct
sd 1
mg3
else
skill fail
sysmessage @066d,,1 Bu büyüyü sadece kendinizde kullanabilirsiniz.
return 1
endif
elseif (<argn> == 18) // Fireball
spell_say Vas Flam
sd 1
mg3
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
if !(<act.serial>==<targ.serial>)
spell_say In Nox
psg
sd 1
else
skill fail
sysmessage @066d,,1 Bu büyüyü kendinize atamazsınız.
return 1
endif
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
src.sysmessage @066d,,1 Bu büyünün kullanımı kapatılmıştır.
f_fizzle
return 1
elseif (<argn> == 22) // Teleport
spell_say Rel Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
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
endif
// spellfreeze 1
sd 1
mg3
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg3
sd 2
elseif (<argn> == 25) // Arch Cure
spell_say Vas An Nox
sd 2
mg4
elseif (<argn> == 26) // Arch Protection
spell_say Vas Uus Sanct
sd 2
mg4
elseif (<argn> == 27) // Curse
spell_say Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg4
sd 2
elseif (<argn> == 29) // Greater Heal
spell_say In Vas Mani
sd 2
if (<src.findid.i_bleeding> || (<src.findid.i_bleeding2>
sysmessage @066d,,1 Yaranizi iyilestirmelisiniz.
f_fizzle
return 1
return 1
endif
mg4
elseif (<argn> == 30) // Lightning
spell_say Por Ort Grav
sd 2
mg4
elseif (<argn> == 31) // Mana Drain
spell_say Ort Rel
f_fizzle
return 1
elseif (<argn> == 32) // Recall
spell_say Kal Ort Por
sd 2
mg4
if (0<src.tag.ticaret>==01)
if !(0<src.tag.ticaretk>==0<uid>
src.sysmessage @066d,,1 Ticaret yaparken bunu kullanamazsınız.
f_fizzle
return 1
endif
endif
elseif (<argn> == 33) // Blade Spirits
spell_say In Jux Hur Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 34) // Dispel Field
spell_say An Grav
if (<act.ischar>)
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
f_fizzle
return 1
elseif (<argn> == 36) // Magic Reflect
spell_say In Jux Sanct
sd 2
mg5
elseif (<argn> == 37) // Mind Blast
spell_say Por Corp Wis
sd 2
mg5
elseif (<argn> == 38) // Paralyze
spell_say An Ex Por
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
sd 2
mg5
elseif (<argn> == 40) // Summon Creature
spell_say Kal Xen
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg5
sd 2
elseif (<argn> == 41) // Dispel
spell_say An Ort
sd 2
mg6
elseif (<argn> == 42) // Energy Bolt
spell_say Corp Por
sd 2
mg6
elseif (<argn> == 43) // Explosion
spell_say Vas Ort Flam
sd 2
mg6
elseif (<argn> == 44) // Invisibility
spell_say An Lor Xen
sd 2
mg6
elseif (<argn> == 45) // Mark
spell_say Kal Por Ylem
sd 2
mg6
elseif (<argn> == 46) // Mass Curse
spell_say Vas Des Sanct
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)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg6
sd 2
elseif (<argn> == 48) // Reveal
spell_say Wis Quas
sd 2
mg6
elseif (<argn> == 49) // Chain Lightning
spell_say Vas Ort Grav
if (<act.uid> == <uid>)
f_fizzle
return 1
endif
sd 3
mg7
if (<src.region.guarded> == 1)
f_fizzle
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
return 1
endif
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 2
elseif (<argn> == 51) // Flame strike
spell_say Kal Vas Flam
sd 3
mg7
elseif (<argn> == 52) // Gate Travel
spell_say Vas Rel Por
sd 3
mg7
elseif (<argn> == 53) // Mana Vampire
spell_say Ort Sanct
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
spell_say Vas An Ort
sd 3
mg7
elseif (<argn> == 55) // Meteor Swarm
spell_say Flam Kal Des Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg7
sd 3
elseif (<argn> == 56) // Polymorph
spell_say Vas Ylem Rel
sd 7
mg3
elseif (<argn> == 57) // Earthquake
spell_say In Vas Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 4
elseif (<argn> == 58) // Energy Vortex
spell_say Vas Corp Por
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 59) // Resurrect
spell_say An Corp
sd 3
mg8
elseif (<argn> == 60) // Air Elemental
spell_say Kal Vas Xen Hur
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 62) // Earth Elemental
spell_say Kal Vas Xen Ylem
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
elseif (<argn> == 64) // Water Elemental
spell_say Kal Vas Xen An Flam
if (<src.region.guarded> == 1)
src.sysmessage @066d,,1 Bu büyüyü korunaklı bir şehirde yapamazsınız.
f_fizzle
return 1
endif
mg8
sd 3
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> == 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 &褳10 15}
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.poisoning> == 120.0)
findid.i_rune_poison.morey += 50.0
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 3
if (<findid.i_pouch_trapped.more2> > 1)
findid.i_pouch_trapped.more2 <eval <findid.i_pouch_trapped.more2>-1>
return 1
else
findid.i_pouch_trapped.remove
return 1
endif
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 @03b2,,1, Faction uyelerini iyilestiremezsiniz.
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
src.sysmessage @03b2,,1, 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
if (<flags>&statf_onhorse)
On=@Click
if !(<findid.i_rune_incognito>) && (<memoryfindtype.memory_guild>)
if (strmatch(&裟<tag.gs_title>&裟,&裟&裟)
message @0481,,1 [<memoryfindtype.memory_guild.link.name>]
else
message @0481,,1 [<tag.gs_title>, <memoryfindtype.memory_guild.link.abbrev>]
endif
endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
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
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_bow)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
endif
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemUnEquip
//if (<act.type> == t_weapon_axe)
//events -e_axer
//endif
On=@ItemDClick
if (<targ.topobj.id> == c_player_v)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
On=@ItemClick
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
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 @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
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
[events e_atmalen]
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
//elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
//if (<act.price> > 0)
//act.price 0
//endif
//endif
On=@ItemTargOn_Item
if ((<targ.topobj.id> == c_player_v) && (<act.cont.uid> != <targ.topobj.uid>))
return 1
[events gmfix]
On=@Death
hits <str>
fame 0
return 1
On=@EnvironChange
food 999
karma 0
fame 0
ON=@UserQuestButton
src.sysmessage Quest sistemi askıdadır.İstendiği takdirde eklenecektir.
ON=@UserguildButton
guildonline
On=@mount
if !((<argo.id> == c_staff) || (<argo.id> == c_staff2) || (<argo.id> == c_staff3) || (<argo.id> == c_staff6) || (<argo.id> == c_staff4) || (<argo.id> == c_staff5))
src.sysmessage @066d,,1 Stafflar kendilerine özel binekten başka bineğe binemez.
return 1
endif
on=@itemcreate
if (<src.account.plevel> > 1)
try uid.<argo.uid>.tag.tarihisoylebab <serv.rtime>
try uid.<argo.uid>.tag.cikarankim <eval <src.uid>>
endif
On=@SpellCast
if ((<flags>&statf_freeze) || (<flags>&statf_stone))
f_fizzle
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 (<act.id> == c_player_v)
if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
f_fizzle
return 1
endif
endif
if (<src.findid.i_mem_spellheal>)
f_fizzle
src.sysmessage @066d,,1 Bandaj kullanırken büyü yapamazsınız.
return 1
endif
On=@Click
IF (<ACCOUNT.PLEVEL> = 2)
message @07a1 [ Counselor ]
message @07a1 <name>
return 1
elseif (strmatch(&裟<account.name>&裟,&裟qweqwewqewqeqwew&裟))
message @07a1 Player Master
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 3)
message @07a1 [ Seer ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 4)
message @07a1 [ Game Master ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 5)
message @07a1 [ Senior GM ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> = 6)
message @07a1 [ Administrator ]
message @07a1 <name>
return 1
elseIF (<ACCOUNT.PLEVEL> > 6 )
message @07a1 [ Owner ]
message @07a1 <name>
return 1
endif
On=@DClick
if (<account.plevel> <8)
title <SERV.NAME> Yetkili Uyesi
endif
on=@ITEMPICKUP_PACK
if (<act.topobj.npc> == brain_monster) || (<act.topobj.npc> == brain_dragon)
return 1
endif
On=@GetHit
return 1
On=@ItemDClick
if (<act.type>=t_corpse)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Cesetleri açamazsınız.
return 1
endif
endif
if (<targ.baseid>=i_worldgem_bit)
if (<src.account.plevel><6)
src.sysmessage @066d,,1 Hata : Spawn taşları yenilenemez.
return 1
endif
endif
endif
On=@ItemEquip
if (<action> == id(skill_fishing)) || (<action> == skill_fishing)
if !(<targ.type> == t_fish_pole)
src.sysmessage @066d,,1 Oltanızı düşürdüğünüz için balık tutamadınız.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_lumberjack)) || (<action> == skill_lumberjack)
if !(<targ.type> == t_weapon_axe)
src.sysmessage @066d,,1 Baltanızı düşürdüğünüz için odun kesemediniz.
skill fail
action -1
return 1
endif
endif
if (<action> == id(skill_mining)) || (<action> == skill_mining)
if !(<targ.id> == i_pickaxe)
src.sysmessage @066d,,1 Kazmanızı düşürdüğünüz için maden çıkartamadınız.
skill fail
action -1
return 1
endif
endif
if (<act.type> == t_weapon_bow) || (<act.type> == t_weapon_axe) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_fence) || (<act.type> == t_weapon_sword) || (<act.type> == t_weapon_mace_pick) || (<act.type> == t_weapon_mace_smith)|| (<act.type> == t_weapon_mace_sharp) || (<act.type> == t_weapon_mace_staff)
if (<src.act.morez> > 0)
if (<src.magery> > 400)
src.sysmessage @066d,,1 Zehirli silahı magery skilliniz 40 üstünde iken kullanamazsınız.Lütfen oil cloth ile zehri temizleyiniz.
src.act.unequip
endif
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=@itemdropon_ground
if !((<weight> + <act.weight>) > <maxweight>)
if ((<action> == id(skill_fishing)) || (<action> == skill_fishing))
if (<act.type> == t_fish) // tutulan baliklari
src.act.bounce // at cantaya
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food) // yapilan yemekleri
act.bounce // at cantaya
endif
endif
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
On=@ItemClick
IF (<act.attr>&04)
act.tag.attr_04 = 1
else
act.tag.attr_04 = 0
ENDIF
if (strmatch(&裟&裟,&裟t_eq_trade_window&裟))
act.message @066d,,1 [ secure ]
endif
if (<act.topobj.id> == c_player_v)
if (strmatch(&裟<act.price>&裟,&裟&裟))
act.message @066d,,1 [ satilamaz ]
elseif (<act.price> <= 0)
act.message @066d,,1 [ 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 @0790,,1 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @0790,,1 [<act.price> gp]
endif
else
act.message @0790,,1 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @0790,,1,,1 Inventory
return 1
else
if (<act.attr>&attr_newbie)
act.message @0481,,1 Newbified
endif
if (<act.type> == t_container)
if !(<act.baseid> == i_strong_box)
if (<act.attr>&attr_move_never) && !(strmatch(&裟<act.region.tag0.owner>,&裟&裟)) && (<act.region.uid> == <region.uid>)
act.message @150,,1 [ sabit ]
endif
if (<act.baseid> == i_bones)
act.message @0809 [loot: <act.rescount> esya]
act.message <act.name>
elseif (<src.act.rescount> > 0)
act.message @0 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0 <act.typedef.name>
endif
return 1
endif
endif
endif
if ((<act.topobj.uid> == <uid>)
if (<act.type> == t_weapon_xbow)
act.message @150,,1 [bolts: <eval <rescount <act.tdata3>>>]
elseif (<act.type> == t_weapon_bow)
act.message @150,,1 [arrows: <eval <rescount <act.tdata3>>>]
endif
endif
//if (<src.account.plevel> > 5)
//if !(<act.tag0.cikarankim>==0)
//act.message @0799,1,1 [Staff tarafından yapıldı]
//act.message @0783,,1 Çıkaran isim & Acc : [<serv.uid.<act.tag0.cikarankim>.name>] - [<serv.uid.<act.tag0.cikarankim>.account.name>]
//act.message @0783,,1 Tarih : [<act.tag0.tarihisoylebab>] | Eşya ismi : [<act.name>]
//return 1
//endif
On=@SkillStart
if (<action> == id(skill_poisoning)) || (<action> == skill_poisoning)
if (<src.targ.uid> == <src.findlayer(1).uid>) || (<src.targ.uid> == <src.findlayer(2).uid>) || (<targ.layer> == 2) || !(<src.targ.topobj.uid> == <src.uid>)
src.sysmessage @066d,,1 Bunu zehirleyemezsiniz.Çantanızda ve tek elli bir silah olmalı.
skill fail
return 1
endif
endif
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @066d,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
elseif (<flags>&statf_onhorse)
sysmessage @066d,,1 Binek üzerindesiniz.
skill fail
return 1
endif
endif
if (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<flags>&statf_onhorse)
sysmessage @066d,,1 At üzerinde gizlenemezsiniz.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @066d,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
endif
if ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_player_v)
skill fail
return 1
endif
endif
if ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_player_v)
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
elseif !(<targ.isitem>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
// elseif (<targ.layer> == layer_hand1) || (<targ.layer> == layer_hand2)
// sysmessage @066d,,1 Adamın elinden calamazsiniz.
// skill fail
// return 1
// elseif (0<uid.<targ.uid>.cont>)
elseif (<uid.<uid.<targ.uid>.cont.uid>.ischar>)
sysmessage @066d,,1 Sadece çantaların içlerinden çalabilirsiniz.
return 1
//endif
if !(<uid.<uid.<targ.uid>.cont.uid>.type> == t_container)
sysmessage @066d,,1 Sadece cantalarin icinden calabilirsiniz.
return 1
endif
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
src.sysmessage @066d,,1 Bunu calamazsiniz.
return 1
endif
endif
endif
endif
[function foodverici]
IF (<magery> < 10.0) || !(<src.restest 1 i_reag_garlic>) || !(<src.restest 1 i_reag_ginseng>) || !(<src.restest 1 i_reag_mandrake_root>)
sysmessage @066d,,1 Malzeme eksik veya yetersiz yetenek.
return 1
elseif (<mana> < 4)
sysmessage @066d,,1 Yetersiz mana
return 1
else
mana <mana> + (-4)
foodver
endif
[function foodver]
dorand 5
tag.yemekci 1
tag.yemekci 2
tag.yemekci 3
tag.yemekci 4
tag.yemekci 5
enddo
if (<tag.yemekci> ==1)
newitem i_cake
act.bounce
elseif (<tag.yemekci> == 2)
newitem i_fish_cut_cooked
act.bounce
elseif (<tag.yemekci> == 3)
newitem i_bread_loaf
act.bounce
elseif (<tag.yemekci> == 4)
newitem i_bread_french
act.bounce
elseif (<tag.yemekci> == 5)
newitem i_ribs_cooked
act.bounce
endif
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_player_v)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
elseif !(strmatch(&裟<act.price>&裟,&裟&裟))
if (<act.price> > 0)
act.price 0
endif
endif
[EOF]
İlk scriptim.Bazı hatalar olabilir.
[itemdef i_startgate]
ID=i_moongate_black
NAME=Starter Gate
TYPE=t_startergate
ON=@CREATE
ATTR=010
COLOR=0480
ON=@Click
message @0481 Baslangic Gate
return 1
[typedef t_startergate]
ID=i_monngate_black
ON=@CREATE
ATTR=010
COLOR=0455
ON=@dclick
src.dialog d_weapstone
[DIALOG d_weapstone] //SPECIAL PLACES
0, 0 // this is always the size.
nomove
resizepic 0 0 3500 340 249
resizepic 25 29 3000 291 189
page 0
text 110 9 <eval 0481> 0
text 65 45 049 1
button 35 43 55 56 1 0 1
[DIALOG d_weapstone TEXT]
Alaves PvP Starter Gate
Baslicakmisin??
[DIALOG d_weapstone BUTTON]
onbutton=0
sysmessage= @080a Mecbur Baslayacan:)
onbutton=1
if !(<src.allskills 100.0>)
src.allskills 100.0
src.str 100
src.int 100
src.dex 100
src.hits 100
src.mana 100
src.stam 100
src.go 1952,2087
endif
[EOF]
İlk scriptim.Bazı hatalar olabilir.
[itemdef i_startgate]
ID=i_moongate_black
NAME=Starter Gate
TYPE=t_startergate
ON=@CREATE
ATTR=010
COLOR=0480
ON=@Click
message @0481 Baslangic Gate
return 1
[typedef t_startergate]
ID=i_monngate_black
ON=@CREATE
ATTR=010
COLOR=0455
ON=@dclick
src.dialog d_weapstone
[DIALOG d_weapstone] //SPECIAL PLACES
0, 0 // this is always the size.
nomove
resizepic 0 0 3500 340 249
resizepic 25 29 3000 291 189
page 0
text 110 9 <eval 0481> 0
text 65 45 049 1
button 35 43 55 56 1 0 1
[DIALOG d_weapstone TEXT]
Alaves PvP Starter Gate
Baslicakmisin??
[DIALOG d_weapstone BUTTON]
onbutton=0
sysmessage=@080a Mecbur Baslayacan:)
onbutton=1
if !(<src.allskills 100.0>)
src.allskills 100.0
src.events +fix
src.str 100
src.int 100
src.dex 100
src.hits 100
src.mana 100
src.stam 100
src.go 1952,2087
endif
[EOF]