tmm işte fix scpm
[EVENTS E_USING_TEOT]
On=@click
message @1153 [Using Bug]
[FUNCTION FIXACTION]
return (<ACTION>|0d2000000)
[function olumsuz]
sayua 38,6,0,enu <args>
[function kotu]
src.sysmessage @38,1,1 <args>
[function olumlu]
sayua 68,6,0,enu <args>
[function dx]
src.sysmessage @68 <args>
[function rap]
sayua 0481,6,0,enu <args>
//say @01153 <args>
[function spell_say]
sayua 07a1,6,0,enu <args>
[events e_death_announce]
On=@Death
if (<fame> > 4000) && (<memoryfindtype.memory_harmedby>) && (<act.ischar>) && (<act.uid> != <uid>) && (<act.npc> == 0)
serv.allclients sysmessage @07a1,1,1 <sex Lord/Lady> <name>, <act.name> tarafindan <region.name> civarlarinda olduruldu.
[events fix]
On=@Profile
if (<src.uid> == <uid>) || (0<src.account.plevel> > 2)
src.sysmessage @0481,,1 Kullanici Adi: <account>,
src.sysmessage @0481,,1 Online Sureniz: <eval (<account.totalconnecttime> / 60)>s
src.sysmessage @0481,,1 Kayit Tarihi: <account.firstconnectdate>
if (strmatch('<src.uid.04009a3fa.tag.<account>_vet>','01'))
src.sysmessage Veteran: odul verilmis.
endif
src.sysmessage @0481,,1 Karakter: <eval (<age> / 86400)> gun once dogmus.
endif
On=@Death
//serv.newitem i_frozenkaldir
//new.timer 4
//new.cont <uid>
if (<obody> == 064)
src.obody <src.tag0.bodysine>
endif
src.dialogclose d_runebook
src.smg Daha Once <deaths> Defa Oldunuz...
skill fail
action -1
src.findid.i_rune_incognito.remove
src.findid.i_bleeding.remove
if (<findid.i_spdelay_man>) || (<findid.i_spdelay_woman>) || (<findid.i_spdelay_unisex>)
src.skill fail
endif
hits 0
if (<findid.i_bleeding>)
findid.i_bleeding.remove
endif
hits 0
On=@GetHit
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
ON=@HITTRY
IF (<SRC.UID>==<UID>)
SRC.ACTION=-1
SRC.FLAGS=<SRC.FLAGS> & ~statf_war
return 1
ENDIF
IF ( <SRC.REGION.FLAGS> & region_flag_safe ) || ( <REGION.FLAGS> & region_flag_safe )
return 1
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 !((<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
endif
if !((<isevent.e_str>) || (<isevent.e_dex>) || (<isevent.e_int>) || (<isevent.e_spr>))
var.stats <eval (<str> + <int> + <dex>)> // stat cap fix
if (<eval <var.stats>> > 225)
statcapdex
endif
endif
endif
On=@SpellCast
if !((<argn> == 32)) || (<argn> == 52))
DIALOGCLOSE d_runebook
endif
if ((<argn> == 4) || (<argn> == 29))
if (<src.act.findid.i_rune_poison>)
f_fizzle
return 1
endif
endif
if (<argn> == 15)
if (<act.uid> == <uid>)
else
src.sysmessage @0481,,1 Bu buyuyu sadece kendinize atabilirsiniz!
return 1
endif
endif
if (<argn> == 17)
if (<act.uid> == <uid>)
else
src.sysmessage @0481,,1 Bu buyuyu sadece kendinize atabilirsiniz!
return 1
endif
endif
if (<argn> == 35)
if (<act.uid> == <uid>)
else
src.sysmessage @0481,,1 Bu buyuyu sadece kendinize atabilirsiniz!
return 1
endif
endif
if (<argn> == 36)
if (<act.uid> == <uid>)
else
src.sysmessage @0481,,1 Bu buyuyu sadece kendinize atabilirsiniz!
return 1
endif
endif
if (<argn> == 7)
if (<act.uid> == <uid>)
else
src.sysmessage @0481,,1 Bu buyuyu sadece kendinize atabilirsiniz!
return 1
endif
endif
if (<act.ischar>)
if (<act.flags>&statf_stone) || (<act.region.safe>)
act.action -1
sysmessage @39 Safe zonedaki kisilere buyu atamazsiniz!
return 1
endif
endif
IF (<eval <SRC.REGION.FLAGS>> & 04000) ///////////Sehirde Summon buyulerini yapamama
IF (<SRC.ISGM>)
RETURN 0
ELSEIF (<ARGN>==33) || (<ARGN>==40) || (<ARGN>==58) || (<ARGN>==60) || (<ARGN>==61) || (<ARGN>==62) || (<ARGN>==62) || (<ARGN>==63) || (<ARGN>==64) || (<ARGN>==65) || (<ARGN>==66)
SRC.ACTION -1
SRC.sysmessage @54 Bu alanda summon buyulerini kullanamazsiniz.
RETURN 1
ENDIF
ENDIF
IF (<eval <SRC.REGION.FLAGS>> & 04000) ///////////Sehirde Field buyusu atamama
IF (<SRC.ISGM>)
RETURN 0
ELSEIF (<ARGN>==24) || (<ARGN>==28) || (<ARGN>==39) || (<ARGN>==47) || (<ARGN>==50)
SRC.ACTION -1
SRC.sysmessage @54 Bu alanda field veya wall buyulerini kullanamazsiniz.
RETURN 1
ENDIF
ENDIF
if (<findlayer(1).type> == t_spellbook)
findlayer(2).unequip
elseif !(<findlayer(2).type> == t_weapon_mace_staff)
findlayer(1).unequip
findlayer(2).unequip
endif
if ((<flags>&statf_freeze) || (<flags>&statf_stone) || (<findtype.t_armor.cont.uid> == <uid>)) // dur bakim nolyo
f_fizzle
return 1
endif
if (<argn> == 1) // Clumsy
spell_say Uus Jux
mg1
elseif (<argn> == 2) // Create food
spell_say In Mani Ylem
mg1
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
mg1
elseif (<argn> == 4) // Heal
spell_say In Mani
// spellfreeze 1
sd 1
mg1
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
// spellfreeze 1
sd 1
mg8
else
skill fail
ekranitemizle
sysmessage @1153 Bu buyuyu sadece kendi uzerinizde kullanabilirsiniz...
return 1
endif
elseif (<argn> == 8) // Weaken
spell_say Des Mani
mg1
elseif (<argn> == 9) // Agility
spell_say Ex Uus
mg2
elseif (<argn> == 10) // Cunning
spell_say Uus Wis
mg2
elseif (<argn> == 11) // Cure
spell_say An Nox
// 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
if (<src.findid.i_spdelay_man>) || (<src.findid.i_spdelay_woman>) || (<src.findid.i_spdelay_unisex>)
skill fail
else
spell_say An Mani
sd 1
mg2
endif
elseif (<argn> == 13) // Trap
spell_say In Jux
f_fizzle
return 1
elseif (<argn> == 14) // Untrap
spell_say An Jux
f_fizzle
return 1
elseif (<argn> == 15) // Protection
if (<act.serial>==<targ.serial>)
spell_say Uus Sanct
// spellfreeze 1
sd 1
mg7
else
skill fail
ekranitemizle
sysmessage @1153 Bu buyuyu sadece kendi uzerinizde kullanabilirsiniz...
return 1
endif
elseif (<argn> == 16) // Strength
spell_say Uus Mani
// spellfreeze 1
sd 1
mg2
elseif (<argn> == 17) // Bless
if (<act.serial>==<targ.serial>)
spell_say Rel Sanct
// spellfreeze 1
sd 1
mg3
else
skill fail
ekranitemizle
sysmessage @1153 Bu buyuyu sadece kendi uzerinizde kullanabilirsiniz...
return 1
endif
elseif (<argn> == 18) // Fireball
spell_say Vas Flam
// spellfreeze 1
sd 1
mg3
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
if (<src.region.safe> == 1)
src.sysmessage @0481,,1 Bu buyuyu safe zone icinde yapamazsiniz.
f_fizzle
return 1
elseif (<act.hits> == 0)
f_fizzle
src.sysmessage @0481,,1 Olulere poison atamazsiniz.
skill fail
return 1
elseif (<src.targ.findid.i_rune_summon_creature>
f_fizzle
src.sysmessage @0481,,1 Buyu ile yaratilmis cisimlere poison atamazsiniz.
skill fail
return 1
elseif (<src.act.topobj.stone> == 1)
src.sysmessage @0481,,1 Bu buyuyu stone haldeki ki$ilere atamazsiniz.
f_fizzle
return 1
elseif (<act.uid> == <src.uid>)
src.sysmessage @1100 Kendinize atamazsiniz!
f_fizzle
return 1
else
spell_say In Nox
// spellfreeze 1
psg
sd 1
endif
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
// spellfreeze 1
sd 1
if (<act.isitem>)
if (<act.cont.isitem>)
if ((<act.cont.type> == t_corpse) || (<act.topobj.id> ==))
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
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
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
endif
// spellfreeze 1
mg4
sd 2
elseif (<argn> == 29) // Greater Heal
spell_say In Vas Mani
// spellfreeze 1
sd 2
mg4
elseif (<argn> == 30) // Lightning
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
endif
if (<act.ischar>)
f_fizzle
return 1
endif
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
// spellfreeze 2
sd 2
mg5
elseif (<argn> == 36) // Magic Reflect
if (<act.serial>==<targ.serial>)
spell_say In Jux Sanct
// spellfreeze 2
sd 1
mg8
else
skill fail
ekranitemizle
sysmessage @1153 Bu buyuyu sadece kendi uzerinizde kullanabilirsiniz...
return 1
endif
elseif (<argn> == 37) // Mind Blast
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
else
spell_say An Ex Por
sd 2
mg5
endif
elseif (<argn> == 39) // Poison Field
spell_say In Nox Grav
if (<act.topobj.ischar>)
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
if (<act.topobj.ischar>)
return 1
endif
// spellfreeze 2
mg5
sd 2
elseif (<argn> == 41) // Dispel
spell_say An Ort
if (<act.topobj.ischar>)
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
else
spell_say Corp Por
sd 2
mg6
endif
elseif (<argn> == 43) // Explosion
spell_say Vas Ort Flam
// spellfreeze 2
sd 2
mg6
elseif (<argn> == 44) // Invisibility
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
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
endif
// spellfreeze 3
sd 3
mg7
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
if (<act.topobj.ischar>)
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
else
spell_say Kal Vas Flam
sd 3
mg7
endif
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
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
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
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
endif
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
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
endif
// spellfreeze 3
sd 3
mg8
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
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
endif
// spellfreeze 3
sd 3
mg8
endif
if (<act.id> ==)
if !((<argn> == 25) || (<argn> == 26) || (<argn> == 46) || (<argn> == 48) || (<argn> == 49) || (<argn> == 54) || (<argn> == 55) || (<argn> == 57))
f_fizzle
return 1
endif
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
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>> > 30)
var.mb 30
endif
damage <eval <var.mb>>
else
damage {5 10}
endif
sfx snd_spell_mind_blast
effect 3,0374a,1,15,1
// Poison // Start
elseif ((<argn> == 20) || (<argn> == 39)) // poison, poison field
findid.i_rune_poison.remove
findid.i_rune_POISON_FIELD.remove
if !(<findid.i_rune_poison>) && (<flags>&statf_poisoned)
flags <flags>&~statf_poisoned
endif
if (<src.poisoning> < 0.1)
//src.sysmessage @68 bug buradaydi dimii
poison 149
elseif (<src.poisoning> > 0.1) && (<src.poisoning> < 29.9)
//src.sysmessage @68 30 ve alti
poison 249
elseif (<src.poisoning> > 29.9) && (<src.poisoning> < 40.0)
//src.sysmessage @68 30 ve uzeri
poison 349
elseif (<src.poisoning> > 39.9) && (<src.poisoning> < 50.0)
//src.sysmessage @68 40 ve uzeri
poison 449
elseif (<src.poisoning> > 49.9) && (<src.poisoning> < 60.0)
//src.sysmessage @68 50 ve uzeri
poison 499
elseif (<src.poisoning> > 59.9) && (<src.poisoning> < 70.0)
//src.sysmessage @68 60 ve uzeri
poison 549
elseif (<src.poisoning> > 69.9) && (<src.poisoning> < 80.0)
//src.sysmessage @68 70 ve uzeri
poison 599
elseif (<src.poisoning> > 79.9) && (<src.poisoning> < 90.0)
//src.sysmessage @68 80 ve uzeri
poison 649
elseif (<src.poisoning> > 89.9) && (<src.poisoning> < 94.9)
//src.sysmessage @68 90 ve 95 arasi
poison 849
elseif (<src.poisoning> > 94.9) && (<src.poisoning> < 100.1)
if !(<distance> < 3)
//src.sysmessage @68 uzak mesafe
poison 899
else
//src.sysmessage @68 yakin mesafe
poison 999
endif
endif
// Poison // End
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> == 41) || (<argn> == 54)) // dispel & mass dispel
if (<findid.i_morpher>)
if !(<findid.i_pre_morph>)
findid.i_morpher.remove
findid.i_pre_morph.remove
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 (<memoryfindtype.memory_guild.link.align> > 0) &&
!(<src.memoryfindtype.memory_guild.link.align>)
src.sysmessage @38,1,1 Order/Chaos uyelerini iyilestiremezsiniz.
return 1
endif
IF (<ARGN> == id(s_telekinesis))
IF (strmatch('<ACT.TOPOBJ.TYPE>','t_corpse'))
SRC.sysmessage @033 Cesede Telekinesis yapamazsiniz.
RETURN 1
ENDIF
ENDIF
IF (<eval <SRC.REGION.FLAGS>> & 04000) ///////////Sehirde Field buyusu atamama
IF (<ARGN>==24) || (<ARGN>==28) || (<ARGN>==39) || (<ARGN>==47) || (<ARGN>==50)
SRC.ACTION -1
SRC.sysmessage @033 Bu alanda Field yada Wall buyulerini kullanamazsiniz..
return 1
endif
endif
On=@SkillStart
if (<action> == id(skill_stealth)) || (<action> == skill_stealth)
if (<hiding> < 80.0)
src.sysmessage @38,1,1 Stealth yapabilmek icin 80 hiding skilline ihtiyaciniz var.
skill fail
return 1
elseif (<eval (<ac> * 100)> > <eval (<stealth> + 200)>)
src.sysmessage @38,1,1 Zirhinizin verdigi agirlik gizlenmenizi engelliyor
skill fail
return 1
elseif (<flags>&statf_onhorse)
src.sysmessage @38,1,1 Binek uzerinde gizlenemezsiniz.
skill fail
return 1
endif
elseif (<action> == id(skill_hiding)) || (<action> == skill_hiding)
if (<eval (<ac> * 100)> > <eval (<hiding> + 200)>)
src.sysmessage @38,1,1 Zirhinizin verdigi agirlik gizlenmenizi engelliyor
skill fail
return 1
elseif (<flags>&statf_onhorse)
src.sysmessage @38,1,1 Binek uzerinde gizlenemezsiniz.
skill fail
return 1
endif
elseif ((<action> == id(skill_herding)) || (<action> == skill_herding))
if (<targ.id> ==)
skill fail
return 1
endif
elseif ((<action> == id(skill_stealing)) || (<action> == skill_stealing)) // stealing fiks
if (<targ.topobj.id> ==)
skill fail
return 1
elseif !(<targ.cont.layer> == 21)
src.sysmessage @38,1,1 Bu durumda hirsizlik yapamazsiniz.
skill fail
return 1
elseif !(<targ.topobj.ischar>)
src.sysmessage @38,1,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
On=@Click
if !(<findid.i_rune_incognito>) && (<memoryfindtype.memory_guild>)
if (strmatch('<tag.gs_title>','')
message @0825 [<memoryfindtype.memory_guild.link.name>]
else
message @1946 [<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)) // no enchant
skill fail
return 1
endif
//henuz zamani de?il
//On=@ItemEquip
//if (<act.type> == t_weapon_axe)
// events +e_axer
//endif
if (<act.attr>&attr_magic) && !(<act.type> == t_armor) && !(<act.type> == t_shield) && !(<act.type> == t_armor_leather)
if (<act.color> == 02bcasd) || (<act.color> == 0373asda) || (<act.color> == 070dasda) || (<act.color> == 075fadsa) || (<act.color> == 045aasd4)
act.color 0
act.name
endif
endif
//On=@ItemUnEquip
//if (<act.type> == t_weapon_axe)
// events -e_axer
//endif
On=@ItemDClick
if (<targ.topobj.id> ==)
if (<targ.type> == t_container)
targ.open
endif
return 1
endif
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
on=@ItemClick
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 Bu silah zehirli.
endif
if !(<eval ((<act.more1l> * 100) / <act.more1h>)> == 100)
src.sysmessage @38,1,1 Bu silah %<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> hasar almis.
return 0
else
src.sysmessage @68,1,1 Bu silah saglam.
endif
endif
if (<act.topobj.id> ==)
if (strmatch('<act.price>',''))
act.message [satilamaz]
elseif (<act.price> <= 0)
act.message [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 @65 [<act.price> gp] [%<eval (100 - ((<act.more1l> * 100) / <act.more1h>))> eski]
else
act.message @65 [<act.price> gp]
endif
else
act.message @65 [<act.price> gp]
endif
endif
endif
if (<act.layer> == 21) && (<act.cont.ischar>)
act.message @1993 Canta
return 1
else
if ((<act.attr>&attr_newbie)) // blessed itemlari belirt
act.message @0846,1,1 (kaybolmaz)
endif
if ((<act.attr>&attr_static)) // statiq itemlari belirt
act.message @54,1,1 [Sabit]
act.message @0846 <act.name>
return 1
endif
if ((<act.topobj.uid> == <uid>)
if ((<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 (<act.morey> = 20.0)
act.message @50 [Damage:<act.dam>]
act.message @50 [Hitpoints:<act.hitpoints>]
act.message @65 a <act.name>
return 1
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<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 (<act.morey> = 40.0)
act.message @50 [Damage:<act.dam>]
act.message @50 [Hitpoints:<act.hitpoints>]
act.message @65 a <act.name>
return 1
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<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 (<act.morey> = 60.0)
act.message @50 [Damage:<act.dam>]
act.message @50 [Hitpoints:<act.hitpoints>]
act.message @65 a <act.name>
return 1
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<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 (<act.morey> = 80.0)
act.message @50 [Damage:<act.dam>]
act.message @50 [Hitpoints:<act.hitpoints>]
act.message @65 a <act.name>
return 1
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<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 (<act.morey> = 100.0)
act.message @50 [Damage:<act.dam>]
act.message @50 [Hitpoints:<act.hitpoints>]
act.message @65 a <act.name>
return 1
endif
endif
on=@itemcreate
if ((<argo.type> == t_weapon_sword) || (<argo.type> == t_weapon_fence) || (<argo.type> == t_weapon_mace_staff) || (<argo.type> == t_weapon_mace_smith) || (<argo.type> == t_weapon_mace_pick) || (<argo.type> == t_weapon_bow) || (<argo.type> == t_weapon_xbow))
if (<argo.morey> = 20.0)
argo.color 051f
endif
endif
if ((<argo.type> == t_weapon_sword) || (<argo.type> == t_weapon_fence) || (<argo.type> == t_weapon_mace_staff) || (<argo.type> == t_weapon_mace_smith) || (<argo.type> == t_weapon_mace_pick) || (<argo.type> == t_weapon_bow) || (<argo.type> == t_weapon_xbow))
if (<argo.morey> = 40.0)
argo.color 0641
endif
endif
if ((<argo.type> == t_weapon_sword) || (<argo.type> == t_weapon_fence) || (<argo.type> == t_weapon_mace_staff) || (<argo.type> == t_weapon_mace_smith) || (<argo.type> == t_weapon_mace_pick) || (<argo.type> == t_weapon_bow) || (<argo.type> == t_weapon_xbow))
if (<argo.morey> = 60.0)
argo.color 04c2
endif
endif
if ((<argo.type> == t_weapon_sword) || (<argo.type> == t_weapon_fence) || (<argo.type> == t_weapon_mace_staff) || (<argo.type> == t_weapon_mace_smith) || (<argo.type> == t_weapon_mace_pick) || (<argo.type> == t_weapon_bow) || (<argo.type> == t_weapon_xbow))
if (<argo.morey> = 80.0)
argo.color 0400
endif
endif
if ((<argo.type> == t_weapon_sword) || (<argo.type> == t_weapon_fence) || (<argo.type> == t_weapon_mace_staff) || (<argo.type> == t_weapon_mace_smith) || (<argo.type> == t_weapon_mace_pick) || (<argo.type> == t_weapon_bow) || (<argo.type> == t_weapon_xbow))
if (<argo.morey> = 100.0)
argo.color 0455
return 1
endif
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.type> == <region.type>)
act.message [sabit]
endif
if (<act.baseid> == i_bones)
act.message [loot: <act.rescount> esya]
act.message <act.name>
elseif (<act.rescount> > 0)
act.message <act.typedef.name> [<act.rescount>,<eval ((<act.weight> / 10) - <act.typedef.weight>)>]
else
act.message <act.typedef.name>
endif
return 1
endif
endif
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<act.type> == t_rune)
act.message @38,1,1 <act.name>
return 1
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<act.type> == t_rune)
act.message @38,1,1 <act.name>
return 1
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<act.type> == t_stone_guild)
act.message @0481 <name> <guild.name>
return 1
endif
endif
if ((<act.topobj.uid> == <uid>)
if ((<act.type> == t_armor) || (<act.type> == t_armor_leather) || (<act.type> == t_shield) || (<act.type> == t_clothing))
act.message <act.name>
return 1
endif
endif
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)) || (<act.type> == t_rune))
sysmessage @68 Elinizde veya cantanizda iken detayli bilgi alabilirsiniz.
act.message @07a1,1,1 a <act.name>
return 1
On=@ItemPickUp_Pack
if !(0<act.value> == 0)
if !(0<act.price>)
return 0
endif
if (<act.topobj.id> ==)
if !(<uid> == <act.topobj.tag.owner>)
return 1
endif
elseif !(strmatch('<act.price>',''))
act.price 0
endif
endif
On=@ItemTargOn_Item
if (<targ.more> == s_explosion)
return 1
endif
if ((<targ.topobj.id> ==) && (<act.cont.uid> != <targ.topobj.uid>))
return 1
endif
[events e_buyu_cast]
ON=@SpellCast
src.events +e_fix_anim
If (<argn>=s_bless)
If (<argn>=s_protection)
If (<argn>=s_reactive_armor)
If (<argn>=s_magic_reflection)
If (<src.act.npc>=brain_animal)
src.sysmessage @38,1,1 Bu büyüyü hayvanlar üzerinde kullanamazsiniz.
endif
endif
endif
endif
endif
//[ITEMDEF i_starver]
//NAME=da starver
//ID=i_handr_1
//TYPE=T_EQ_SCRIPT
//WEIGHT=0
//LAYER=layer_special
//On=@Equip
//src.food 2
//timer 2
//On=@Timer
//cont.hits 0
//remove
//return 1
[itemdef i_spdelay_woman] // bunnar adamda kaliodu (timer -1) fixlendi uzulmeyin
name=magery delay (woman)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_woman_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_woman
cont.obody c_woman
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_man]
name=magery delay (man)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_man_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_man
cont.obody c_man
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_man_fst]
name=magery delay (fst_man)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
src.body c_man_fst_nomove
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.body c_man_fst
cont.obody c_man_fst
endif
On=@Timer
remove
return 1
[itemdef i_spdelay_unisex] // unicornlarla seks anlaminda
name=magery delay (unisex)
id=i_gold
type=t_eq_script
weight=0
layer=layer_special
On=@Equip
cont.flags <cont.flags>|04 // paralarim lan adami uniseksmi$
if (<more1>)
timer <more1>
endif
On=@UnEquip
if !(<cont.flags>&statf_dead)
cont.flags <cont.flags>&~04
endif
On=@Timer
remove
return 1
//------------------
// 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_fst_nomove]
id c_man
can mt_usehands // newly added
foodtype 15 t_food, t_fruit
On=@GetHit
body c_man_fst
obody c_man_fst
[chardef c_woman_nomove]
id c_woman
can mt_usehands|mt_female
foodtype 15 t_food, t_fruit
On=@GetHit
body c_woman
obody c_woman
//------------------
// freezetime control functionz
//------------------
[function sd]
if !((<findid.i_spdelay_man>) || (<findid.i_spdelay_woman>) || (<findid.i_spdelay_unisex>))
if (strmatch('<account>','Blaxoul'))
var.m <act.uid>
newitem i_spdelay_man_fst
act.more1 <args>
act.equip
act <var.m>
elseif (<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
[EOF]