Aşşağıda olan gibi bir fix scriptim var ve spherespells.scp var 2 si de doğrumu bilmiyorum yanlışsa acaba yardımcı edermisiniz büyü atıyorum koşarak büyü atıyor bide 07a1 In nox diye demıyor düz say 0 rengi gösteriyor ne yapmam gerek acaba yardımlarınızı bekliyorum..
Bir pvp shard olarak acaba bunlar doğrumu ?
Fix scripti;
[function trimle]
src.tag.namedb = <name>
src.tag.accdb = <account.name>
src.tag.regiondb = <region.name>
for 0 strlen(<src.tag.namedb>)
IF (strmatch(*'*,"<src.tag.name>"))
src.sysmessage @39 STRPOS 1 ' <src.tag.dbname>
return 1
else
src.sysmessage @39 <STRPOS( 1 ' <src.tag.dbname>)>
return 1
endif
[function rap]
sayua 0481,6,0,enu <args>
[function spell_say]
if (<isevent.e_ibranice>)
say @0790,8 <strtoupper <args>>//@0481,8
return 1
endif
sayua 077a,6,0,enu <args>
else
return 1
endif
[events fix]
On=@Profile
if (<src.uid> == <uid>) || (0<src.account.plevel> > 2)
src.sysmessage @0481,1,1 Char : <name>
src.sysmessage @0481,1,1 Online : <eval (<account.totalconnecttime> / 60)> saat.
src.sysmessage @0481,1,1 Kayit : <account.firstconnectdate>
endif
ON=@death
if (<act.isplayer>)
db.execute "insert into `death` (`olenkisi` ,`oldurenkisi` ,`yer` ,`tarih`) values ('<addslashes <name>>','<addslashes <act.name>>','<region.name>','<serv.rtime>');" // ölen öldüren ve saat bilgilerini kaydettik.
endif
serv.allclients sysmessage @50 <name>, <act.name> Tarafindan <region.name> Civarlarinda Olduruldu .
src.sysmessage @50 .Home Yazarak Hayata Donebilirsiniz.
endif
endif
On=@Login
if (<eval <src.tag.girdi>> = 1)
src.nightsight 1
src.food 99
src.invul 0
else
src.sysmessage @049,,1 Sunucumuza Hos Geldiniz..
SRC.GO 1923,2088
src.tag.girdi 1
src.nightsight 1
src.food 99
src.invul 0
src.events +e_olumsuzluk
//src.events +esyacikarmabe
src.saat
endif
on=@logout
db.connect
//db.execute "delete from online_players where playerUid='<uid>';"
src.tag0.code_is_safe 0
//src.dbloginsil
src.events +e_olumsuzluk
On=@GetHit
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
On=@EnvironChange
if !(<memoryfindtype.memory_guild.link.align>) || (<kills> > 5)
if (<findlayer(2).baseid> == i_shield_chaos) || (<findlayer(2).baseid> == i_shield_order)
findlayer(2).unequip
endif
endif
if ((<body> == c_man) || (<body> == c_woman)) // yimmeeah
if !((<findid.i_jailcik>) || (<flags>&statf_stone))
if (<food> == 2)
sayua 0845,6,6,0 *Acliktan Basi Doner*
src.food 999
src.sysmessage @0713,,1 Acliktan olme kapanmistir.Doyuruldunuz..
elseif (<food> == 1)
sayua 0845,6,6,0 *Acliktan Olmek Uzeredir*
src.food 999
src.sysmessage @0713,,1 Acliktan olme kapanmistir.Doyuruldunuz..
elseif (<food> == 0)
sayua 0845,6,6,0 *Acliktan Olur*
src.food 999
src.sysmessage @0713,,1 Acliktan Olme Kapanmistir.Doyuruldunuz..
endif
endif
endif
//|| (<src.findid.i_mem_healing>)// || (<src.findid.i_mem_healing>)
On=@SpellCast
if (<src.findid.i_rb_delay> || (<src.findid.i_rb_delay2>)
src.sysmessage @38,,1 Hata: Su Anda Buyu Atamazsiniz. Runebook Yada Bandaj Kullaniyorsunuz.
return 1
endif
if (<isgm>)
return 0
else
if (<region.flags> = 02082)
src.sysmessage @39 Safe Alanda Buyu Yapamazsiniz..
src.action -1
return 1
else
if (<act.ischar>)
if (<act.flags>&statf_stone) || (<act.region.safe>)
act.action -1
sysmessage @38,1,1 Safe Zonedaki Kisilere Buyu Atamazsiniz!
return 1
endif
endif
if (<findlayer(1).type> == t_spellbook)
findlayer(2).unequip
elseif !(<findlayer(2).type> == t_weapon_mace_staff)
findlayer(1).unequip
findlayer(2).unequip
endif
if ((<flags>&statf_freeze) || (<flags>&statf_stone) || (<findtype.t_armor.cont.uid> == <uid>)) // dur bakim nolyo
skill fail
return 1
endif
if (<kills> < 6) && (strmatch('<targ.region.name>','Calimport'))
sysmessage @049,,1 Calimport'un guclu buyu duvarlari sebebiyle buyunuz engellendi.
go 5249 3918 28
skill fail
return 1
endif
if (<act.ischar>)
if !(<act.flags>&statf_insubstantial) && (0<act.account.plevel> > 0<account.plevel>)
skill fail
return 1
elseif ((<argn> == 7) || (<argn> == 15)) // no prot. & reac. arm. over armor
if (<act.findtype.t_armor.cont.uid> == <act.uid>)
skill fail
return 1
endif
elseif (<argn> == 59) && !(<act.flags>&statf_dead)
skill fail
return 1
endif
endif
if (<act.id> == c_pv)
if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
skill fail
return 1
endif
endif
// spell freeze time
if (<argn> == 24) // wall of stone
if (<src.region.flags>®ion_flag_ship)
src.message @049,,1 Gemi Icerisinde Duvar Atamazsiniz.
return 1
endif
endif
if (<findlayer(1).type> == t_spellbook)
findlayer(2).unequip
elseif !(<findlayer(2).type> == t_weapon_mace_staff)
findlayer(1).unequip
findlayer(2).unequip
endif
if ((<flags>&statf_freeze) || (<flags>&statf_stone) || (<findtype.t_armor.cont.uid> == <uid>)) // dur bakim nolyo
f_fizzle
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_pv)
if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
f_fizzle
return 1
endif
endif
if (<argn> == 1) // Clumsy
spell_say Uus Jux
elseif (<argn> == 2) // Create food
spell_say In Mani Ylem
//mg1
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
//mg1
elseif (<argn> == 4) // Heal
if (<act.findid.i_rune_poison>) || (<act.findid.i_rune_poison_field>)
src.sysmessage @0790 Zehirliyken Bunu Kullanamazsiniz.
anim 4
return 1
else
spell_say In Mani
sd 1
//mg1
endif
elseif (<argn> == 5) // Magic Arrow
spell_say In Por Ylem
//mg1
elseif (<argn> == 6) // Night Sight
if (<src.restest i_spdelay_man>) || (<src.restest i_spdelay_woman>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say In Lor
//mg1
elseif (<argn> == 7) // Reactive Armor
if (<act.serial>==<targ.serial>)
spell_say Flam Sanct
// spellfreeze 1
sd 1
//mg8
else
skill fail
sysmessage @049,,1 Bu Buyuyu Sadece Kendi Uzerinizde Kullanabilirsiniz...
return 1
endif
elseif (<argn> == 8) // Weaken
spell_say Des Mani
//mg1
elseif (<argn> == 9) // Agility
spell_say Ex Uus
//mg2
elseif (<argn> == 10) // Cunning
spell_say Uus Wis
//mg2
elseif (<argn> == 11) // Cure
spell_say An Nox
// spellfreeze 1
sd 1
if (<act.findid.i_rune_poison>)
if (<act.findid.i_rune_poison.morey> > <eval ((<magery> + 400) / 2)>)
if !(rand(8) == 1)
act.effect 3,0374a,1,15,1
act.sound snd_spell_poison
f_fizzle
return 1
endif
endif
endif
//mg2
elseif (<argn> == 12) // Harm
spell_say An Mani
// spellfreeze 1
sd 1
//mg2
elseif (<argn> == 13) // Trap
spell_say In Jux
f_fizzle
return 1
elseif (<argn> == 14) // Untrap
spell_say An Jux
f_fizzle
return 1
elseif (<argn> == 15) // Protection
if (<act.serial>==<targ.serial>)
spell_say Uus Sanct
// spellfreeze 1
sd 1
//mg7
else
skill fail
sysmessage @049,,1 Bu Buyuyu Sadece Kendi Uzerinizde Kullanabilirsiniz...
return 1
endif
elseif (<argn> == 16) // Strength
spell_say Uus Mani
// spellfreeze 1
sd 1
//mg2
elseif (<argn> == 17) // Bless
spell_say Rel Sanct
// spellfreeze 1
sd 1
//mg3
elseif (<argn> == 18) // Fireball
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say Vas Flam
// spellfreeze 1
sd 1
//mg3
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
if (<src.region.safe> == 1)
src.sysmessage @049,,1 Bu Buyuyu Safe Zone Icinde Yapamazsiniz.
f_fizzle
return 1
elseif (<act.hits> == 0)
f_fizzle
src.sysmessage @049,,1 Olulere Poison Atamazsiniz.
skill fail
return 1
elseif (<src.targ.findid.i_rune_summon_creature>
f_fizzle
src.sysmessage @049,,1 Buyu Ile Yaratilmis Cisimlere Poison Atamazsiniz.
skill fail
return 1
elseif (<src.act.topobj.stone> == 1)
src.sysmessage @049,,1 Bu Buyuyu Stone Haldeki Ki$ilere Atamazsiniz.
f_fizzle
return 1
else
spell_say In Nox
// spellfreeze 1
sd 1
endif
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
// spellfreeze 1
sd 1
if (<act.isitem>)
if (<act.cont.isitem>)
if ((<act.cont.type> == t_corpse) || (<act.topobj.id> == c_pv))
f_fizzle
return 1
endif
endif
else
f_fizzle
return 1
endif
//mg3
elseif (<argn> == 22) // Teleport
spell_say Rel Por
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 2
//mg3
elseif (<argn> == 23) // Unlock
spell_say Ex Por
f_fizzle
return 1
elseif (<argn> == 24) // Wall
spell_say In Sanct Ylem
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 1
sd 1
//mg3
elseif (<argn> == 25) // Arch Cure
spell_say Vas An Nox
// spellfreeze 2
sd 2
//mg4
elseif (<argn> == 26) // Arch Protection
spell_say Vas Uus Sanct
// spellfreeze 2
sd 2
//mg4
elseif (<argn> == 27) // Curse
spell_say Des Sanct
// spellfreeze 2
sd 2
//mg4
elseif (<argn> == 28) // Fire Field
spell_say In Flam Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 1
//mg4
sd 2
elseif (<argn> == 29) // Greater Heal
if (<act.findid.i_rune_poison>) || (<act.findid.i_rune_poison_field>)
src.sysmessage @049,,1 Zehirliyken Bunu Kullanamazsiniz.
anim 4
return 1
else
spell_say In Vas Mani
// spellfreeze 1
sd 2
//mg4
endif
elseif (<argn> == 30) // Lightning
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say Por Ort Grav
// spellfreeze 1
sd 2
//mg4
elseif (<argn> == 31) // Mana Drain
spell_say Ort Rel
// spellfreeze 1
return 1
elseif (<argn> == 32) // Recall
spell_say Kal Ort Por
// spellfreeze 2
sd 2
//mg4
elseif (<argn> == 33) // Blade Spirits
spell_say In Jux Hur Ylem
// spellfreeze 2
sd 2
//mg5
elseif (<argn> == 34) // Dispel Field
spell_say An Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
if (<act.ischar>)
f_fizzle
return 1
endif
// spellfreeze 2
sd 2
//mg5
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
// spellfreeze 2
sd 2
//mg5
elseif (<argn> == 36) // Magic Reflect
if (<act.serial>==<targ.serial>)
spell_say In Jux Sanct
// spellfreeze 2
sd 1
//mg8
else
skill fail
sysmessage @049,,1 Bu Buyuyu Sadece Kendi Uzerinizde Kullanabilirsiniz...
return 1
endif
elseif (<argn> == 37) // Mind Blast
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say Por Corp Wis
// spellfreeze 2
sd 2
//mg5
elseif (<argn> == 38) // Paralyze
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say An Ex Por
// spellfreeze 2
sd 2
//mg5
elseif (<argn> == 39) // Poison Field
spell_say In Nox Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
if (<act.topobj.ischar>)
f_fizzle
return 1
endif
// spellfreeze 2
sd 2
//mg5
elseif (<argn> == 40) // Summon Creature
spell_say Kal Xen
sd 2
//mg6
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 2
//mg5
sd 2
elseif (<argn> == 41) // Dispel
spell_say An Ort
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 2
sd 2
//mg6
elseif (<argn> == 42) // Energy Bolt
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say Corp Por
// spellfreeze 2
sd 2
//mg6
elseif (<argn> == 43) // Explosion
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say Vas Ort Flam
// spellfreeze 2
sd 2
//mg6
elseif (<argn> == 44) // Invisibility
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say An Lor Xen
// spellfreeze 2
sd 2
//mg6
elseif (<argn> == 45) // Mark
spell_say Kal Por Ylem
// spellfreeze 2
sd 2
//mg6
elseif (<argn> == 46) // Mass Curse
spell_say Vas Des Sanct
// spellfreeze 2
sd 2
//mg6
elseif (<argn> == 47) // Paralyze Field
spell_say In Ex Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
if (<act.topobj.ischar>)
f_fizzle
return 1
endif
// spellfreeze 2
sd 3
//mg6
elseif (<argn> == 48) // Reveal
spell_say Wis Quas
// spellfreeze 2
sd 2
//mg6
elseif (<argn> == 49) // Chain Lightning
spell_say Vas Ort Grav
if (<act.uid> == <uid>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg7
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
if (<act.topobj.ischar>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
if (<act.topobj.ischar>)
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg7
elseif (<argn> == 51) // Flame strike
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
f_fizzle
src.sysmessage @049,,1 Su Anda Baska Bir Buyu Yapmaktasiniz.
return 1
endif
spell_say Kal Vas Flam
// spellfreeze 3
sd 3
//mg7
elseif (<argn> == 52) // Gate Travel
spell_say Vas Rel Por
// spellfreeze 3
sd 3
//mg7
elseif (<argn> == 53) // Mana Vampire
spell_say Ort Sanct
// spellfreeze 3
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
spell_say Vas An Ort
//if (<act.topobj.ischar>)
//f_fizzle
//return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg7
elseif (<argn> == 55) // Meteor Swarm
spell_say Flam Kal Des Ylem
if (<act.uid> == <uid>)
f_fizzle
return 1
elseif (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 2
sd 3
//mg7
elseif (<argn> == 56) // Polymorph
src.skill fail
sd 3
//mg3
elseif (<argn> == 57) // Earthquake
spell_say In Vas Por
// spellfreeze 3
sd 3
//mg8
elseif (<argn> == 58) // Energy Vortex
spell_say Vas Corp Por
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg8
elseif (<argn> == 59) // Resurrect
spell_say An Corp
// spellfreeze 3
sd 3
//mg8
elseif (<argn> == 60) // Air Elemental
spell_say Kal Vas Xen Hur
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg8
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg8
elseif (<argn> == 62) // Earth Elemental
spell_say Kal Vas Xen Ylem
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg8
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg8
elseif (<argn> == 64) // Water Elemental
spell_say Kal Vas Xen An Flam
f_fizzle
return 1
if (<src.region.guarded> == 1) && !(<isgm>)
src.sysmessage @049,,1 Bu Buyuyu Guard Zone Icinde Yapamazsiniz.
f_fizzle
return 1
endif
// spellfreeze 3
sd 3
//mg8
endif
on=@spelleffect
if ((<argn> == 20) || (<argn> == 39)) // Ghost Poison Fix
if <flags>&statf_dead
return 1
endif
endif
if ((<argn> == 9) || (<argn> == 10) || (<argn> == 16) || (<argn> == 17))
findlayer(32).remove // spell
findlayer(44).remove // potion
elseif (<argn> == 37)// mindblast
if (<argn> == 20)
if !(<findid.i_rune_poison>)
if (<src.poisoning> >= 0) && (<src.poisoning> < 400)
poison 300
if (<src.action> == id(skill_magery)) || (<src.action> == skill_magery)
skill fail
endif
elseif (<src.poisoning> > 399) && (<src.poisoning> < 550)
poison 500
if (<src.action> == id(skill_magery)) || (<src.action> == skill_magery)
skill fail
endif
elseif (<src.poisoning> > 549) && (<src.poisoning> < 700)
poison 600
if (<src.action> == id(skill_magery)) || (<src.action> == skill_magery)
skill fail
endif
elseif (<src.poisoning> > 699) && (<src.poisoning> < 850)
poison 700
if (<src.action> == id(skill_magery)) || (<src.action> == skill_magery)
skill fail
endif
elseif (<src.poisoning> > 849) && (<src.poisoning> < 940)
poison 800
if (<src.action> == id(skill_magery)) || (<src.action> == skill_magery)
skill fail
endif
elseif (<src.poisoning> > 939) && (<src.poisoning> <= 1000)
poison 1100
if (<src.action> == id(skill_magery)) || (<src.action> == skill_magery)
skill fail
endif
endif
sfx snd_spell_poison
effect 3,0374a,1,15,1
return 1
endif
endif
IF ((!<isgm>) && ((<SRC.REGION.FLAGS> & region_flag_safe) || (<REGION.FLAGS> & region_flag_safe)))
SRC.sysMESSAGE @049,,1 Bu Bolgede Buyuler Etkili Olmaz!
EFFECT 3, i_fx_glow, 3, 20, 1
RETURN 1
ENDIF
if (<flags>&statf_dead) // oluye dokunulmaz, ayiptir
if (<argn> == 59)
sfx snd_spell_resurrection
findlayer(22).remove
color <oskin>
update
effect 3,0376a,2,20,1
else
return 1
endif
elseif ((<argn> == 9) || (<argn> == 10) || (<argn> == 16) || (<argn> == 17)) // stat fix
findlayer(32).remove // spell
findlayer(44).remove // potion
elseif ((<argn> == 49) || (<argn> == 55)) // eve disardan chain atsalar bile icerdeki yemez
if !(<src.region.type> == <region.type>)
return 1
endif
//elseif (<argn> == 37) // mindblast
//if (<src.int> > <int>)
//var.mb (<src.int> - <int>)
//var.mb <eval (<var.mb> / 2)>
//if (<eval <var.mb>> > 40)
//var.mb 40
//endif
//damage <eval (<var.mb> + {-5 5)>
//else
//damage {5 10}
//endif
//sfx snd_spell_mind_blast
//effect 3,0374a,1,15,1
elseif ((<argn> == 41) || (<argn> == 54)) // dispel & mass dispel
if (<findid.i_morpher>)
if !(<findid.i_pre_morph>)
findid.i_morpher.remove
endif
endif
elseif ((<argn> == 20) || (<argn> == 39)) // poison, poison field
if !(<findid.i_rune_poison>) && (<flags>&statf_poisoned)
flags <flags>&~statf_poisoned
endif
if !(<src.uid> == <uid>)
skill fail
endif
if (<eval (<src.poisoning> + 100)> > <eval <findid.i_rune_poison.morey>>)
findid.i_rune_paralyze.remove
findid.i_rune_paralyze_field.remove
findid.i_rune_poison.remove
if (<distance> > 3) && (<eval (<src.poisoning> + 100)> > 700)
poison (600 + {-100 100})
else
poison (<src.poisoning> + {-100 100})
endif
endif
sfx snd_spell_poison
effect 3,0374a,1,15,1
return 1
elseif ((<argn> == 38) || (<argn> == 47)) // paralyze & paralyze field
if (<findid.i_pouch_trapped>)
effect 3,i_fx_explode,3,25,1
sound snd_spell_explosion
damage 20
findid.i_pouch_trapped.remove
return 1
elseif !(<src.uid> == <uid>)
findid.i_rune_poison.remove
endif
elseif (<argn> == 26) // no arch prot. over armor
if (<findtype.t_armor.cont.uid> == <uid>)
return 1
endif
elseif (<argn> == 25) // arch cure
if (<memoryfindtype.memory_town>) && !(<src.memoryfindtype.memory_town>)
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
return 1
endif
if (<findid.i_rune_poison>)
if (<findid.i_rune_poison.morey> > <eval ((<src.magery> + 400) / 2)>)
if !(rand(8) == 1)
effect 3,0374a,1,15,1
sound snd_spell_poison
return 1
endif
endif
endif
elseif (<argn> == 4) || (<argn> == 29) || (<argn> == 11)
if (<memoryfindtype.memory_town>) && !(<src.memoryfindtype.memory_town>)
src.sysmessage @049,,1 Faction Uyelerini Iyilestiremezsiniz.
return 1
elseif (<memoryfindtype.memory_guild.link.align> > 0) && !(<src.memoryfindtype.memory_guild.link.align>)
src.sysmessage @049,,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
On=@SkillStart
if (<isgm>)
return 0
else
if (<region.flags> = 02082)
src.sysmessage @049,,1 Safe Alanda Skill Kullanamazsiniz
src.action -1
return 1
else
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
sysmessage @0713,,1 Yetersiz hiding.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
sysmessage @0713,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
elseif (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<eval (<ac> * 100)> > <eval (<hiding> + 200)>)
sysmessage @0713,,1 Asiri zirhlisiniz.
skill fail
return 1
endif
elseif ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> == c_pv)
skill fail
return 1
endif
elseif ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> == c_pv)
skill fail
return 1
elseif ((<action> == id(skill_snooping)) || (<action> == skill_snooping))
if (<src.distance> > 3 )
src.sysmessage @0713,,1 cantaya ulasamiyorsunuz.
src.action -1
return 1
elseif ((<action> == id(skill_stealing)) || (<action> == skill_stealing))
if (<src.distance> > 3 )
src.sysmessage @0713,,1 Esya'ya ulasamiyorsunuz.
src.action -1
return 1
elseif !(<targ.topobj.ischar>)
sysmessage @0713,,1 Sadece canli varliklardan calabilirsiniz.
skill fail
return 1
elseif (<targ.isitem>)
if (<targ.cont>)
if (<targ.cont.type> == t_eq_trade_window)
skill fail
return 1
endif
endif
endif
endif
// bronx's famous lame-buster 1.2a
if (<findid.i_jail>) || !(strmatch('<tag.mt>',''))
return 0 // jailde veya tespit edilmis.
elseif (strmatch('<serv.name>',<serv.name>'))
if (strmatch('<uid.04018c20d.rescount>','20'))
return 0
endif
elseif (strmatch('<tag.mn>',''))
tag.mn 0 // sayim tagi yoksa, ver
endif
if (strmatch('<tag.ms>','<action>'))
tag.mn <eval (<tag.mn> + 1)>
elseif ((strmatch('<tag.ms>','Skill_Magery')) && (strmatch('Skill_Meditation','<action>')))
tag.mn <eval (<tag.mn> + 1)>
elseif ((strmatch('<tag.ms>','Skill_Meditation')) && (strmatch('Skill_Magery','<action>')))
tag.mn <eval (<tag.mn> + 1)>
else
tag.mn 0
endif
if (<eval <tag.mn>> > 2500) // bu sayi ile oynamayin, sicar.
var.act <act>
newitem i_macro_detect
tag.mt <act.uid>
act.link <uid>
act.name <act.link.name> [<serv.time>]
act.more1 <serv.time>
if (strmatch('<serv.name>','<serv.name>'))
act.cont 04018c20d
try var.mts <uid.04018c20d.rescount>
endif
var.smsgx 0251
serv.allclients macrodetect <eval <var.mts>>: <name>
act <var.act>
tag.mn 0
else
tag.ms <action>
endif
On=@Click
if !(<findid.i_rune_incognito>) && (<memoryfindtype.memory_guild>)
if (strmatch('<tag.gs_title>','')
message @07a1 [<memoryfindtype.memory_guild.link.name>]
else
message @07a1 [<tag.gs_title> [<memoryfindtype.memory_guild.link.abbrev>]
endif
endif
On=@ItemSpell
if !((<argn> == 2) || (<argn> == 13) || (<argn> == 14) || (<argn> == 19)|| (<argn> == 21) || (<argn> == 23) || (<argn> == 24) || (<argn> == 28) || (<argn> == 32) || (<argn> == 34) || (<argn> == 39) || (<argn> == 45) || (<argn> == 46) || (<argn> == 47) || (<argn> == 48) || (<argn> == 50) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57)) // no enchant
f_fizzle
return 1
endif
On=@ItemEquip
//if (<act.type> == t_weapon_axe)
//events +e_axer
//endif
On=@ItemUnEquip
//if (<act.type> == t_weapon_axe)
//events -e_axer
//endif
On=@ItemClick
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message Inventory
if (<act.cont>==<uid>)
act.message @0481,,1 [<eval <rescount i_tp>> Tp] [<eval <rescount i_bandage>> bandaj]
act.message @0481,,1 [<eval <rescount i_potion_HealGreat>+<rescount i_potion_Heal>> heal] [<eval <rescount i_potion_cureGreat>+<rescount i_potion_cure>> cure]
endif
return 1
else//bitis
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_bow) || (<act.type> == t_weapon_mace_staff) || (<act.type> == t_weapon_axe)
if (<src.act.morez> > 0)
src.sysmessage @54,1,1 Silahda Poison Var.
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @07a1 [Esya : <act.rescount>]
act.message @07a1 canta
return 1
else
if ((<act.attr>&attr_newbie)) // blessed itemlari belirt
src.sysmessage @50 <act.name> Isimli Obje Kaybolmaz Durumda.
endif
if ((<act.attr>&attr_static)) // statiq itemlari belirt
src.sysmessage @50 <act.name> Isimli Obje Sabit Durumda
endif
if ((<act.attr>&attr_invis)) // invisiple itemlari belirt
src.sysmessage @50 <act.name> Isimli Obje Gorunmez Durumda
endif
if (<act.type> == t_container)
if !(<act.baseid> == i_strong_box)
if (<act.attr>&attr_move_never)
act.message @39 [Sabit]
endif
if (<act.baseid> == i_bones)
act.message @39 [Loot: <act.rescount> Esya]
act.message @07a1 <act.name>
elseif (<act.rescount> > 0)
act.message @0713,,1 <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message @0713,,1 <act.typedef.name>
endif
return 1
endif
endif
endif
On=@ItemDClick
if (<targ.topobj.id> == c_pv)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
On=@ItemPickUp_Pack
if (<act.topobj.id> == c_pv)
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_pv) && (<act.cont.uid> != <targ.topobj.uid>))
return 1
//elseif (<targ.baseid> == i_corpse) // human cesetleri bicememe
//if ((<targ.amount> == 400) || (<targ.amount> == 401))
//return 1
//endif
//endif
if (<act.attr> == 04008)
act.attr 0
endif
if (<act.type> == t_fish)
src.act.bounce
endif
elseif ((<action> == id(skill_magery)) || (<action> == skill_magery))
if (<act.type> == t_food)
act.bounce
endif
endif
endif
// end of main fixes
return 1
[events e_staff]
on=@death
hitpoints=<str>
return 1
endif
On=@GetHit
return 1
[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
[EOF]