Code:
[function guild]
if (!<src.memoryfindtype.memory_guild>)
SRC.SYSMESSAGE @,3,1 You are not in a guild.
else
if (<src.guild.align>==1)
src.tag.guildalign Order
elseif (<src.guild.align>==2)
src.tag.guildalign Chaos
else
src.tag.guildalign Neutral
endif
src.dialog d_guildinfo
endif
[function spell_say]
say @0b17 <args>
[EVENTS e_expnpc]
ON=@CLICK
if (<flags>&statf_conjured)
message @,3,1 [Summon]
endif
if (<tag0.timer>>1)
if (<tag0.timer><3)
tag0.timer 0
NEWITEM i_fx_smoke
new.ATTR=attr_decay|attr_move_never
new.TIMER=01
new.p=<p>
remove
return 1
endif
if (<tag0.timer>>3)
message @,3,1 [Summon]
tag.timer = <tag.timer> - 1
else
tag0.timer 0
NEWITEM i_fx_smoke
new.ATTR=attr_decay|attr_move_never
new.TIMER=01
new.p=<p>
remove
return 1
endif
else
endif
ON=@DEATH
if (<tag0.timer>>0)
tag0.timer 0
NEWITEM i_fx_smoke
new.ATTR=attr_decay|attr_move_never
new.TIMER=01
new.p=<p>
remove
return 1
endif
ON=@SPELLCAST
if ((<flags>&statf_freeze) || (<flags>&statf_stone)
action -1
return 1
endif
if (<argn> == 1) // Clumsy
spell_say Uus Jux
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
elseif (<argn> == 4) // Heal
spell_say In Mani
elseif (<argn> == 5) // Magic Arrow
spell_say In Por Ylem
elseif (<argn> == 6) // Night Sight
spell_say In Lor
elseif (<argn> == 7) // Reactive Armor
spell_say Flam Sanct
elseif (<argn> == 8) // Weaken
spell_say Des Mani
elseif (<argn> == 9) // Agility
spell_say Ex Uus
elseif (<argn> == 10) // Cunning
spell_say Uus Wis
elseif (<argn> == 11) // Cure
spell_say An Nox
// 20
elseif (<argn> == 12) // Harm
spell_say An Mani
elseif (<argn> == 13) // Trap
spell_say In Jux
f_fizzle
return 1
elseif (<argn> == 14) // Untrap
spell_say An Jux
f_fizzle
return 1
// 20
elseif (<argn> == 15) // Protection
spell_say Uus Sanct
// sd1
// 20
elseif (<argn> == 16) // Strength
spell_say Uus Mani
// sd1
// 20
elseif (<argn> == 17) // Bless
spell_say Rel Sanct
// sd1
elseif (<argn> == 18) // Fireball
spell_say Vas Flam
// sd1
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
spell_say In Nox
// sd1
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
// sd1
elseif (<argn> == 22) // Teleport
spell_say Rel Por
elseif (<argn> == 23) // Unlock
spell_say Ex Por
f_fizzle
return 1
elseif (<argn> == 24) // Wall
spell_say In Sanct Ylem
// sd1
elseif (<argn> == 25) // Arch Cure
spell_say Vas An Nox
// sd2
// 20
elseif (<argn> == 26) // Arch Protection
spell_say Vas Uus Sanct
// sd2
// 20
elseif (<argn> == 27) // Curse
spell_say Des Sanct
// sd2
// 20
elseif (<argn> == 28) // Fire Field
spell_say In Flam Grav
// sd2
// 20
elseif (<argn> == 29) // Greater Heal
spell_say In Vas Mani
// sd2
// 20
elseif (<argn> == 30) // Lightning
spell_say Por Ort Grav
// sd2
// 20
elseif (<argn> == 31) // Mana Drain
spell_say Ort Rel
f_fizzle
return 1
// 20
elseif (<argn> == 32) // Recall
spell_say Kal Ort Por
// sd2
// 20
elseif (<argn> == 33) // Blade Spirits
spell_say In Jux Hur Ylem
// sd2
// 50
elseif (<argn> == 34) // Dispel Field
spell_say An Grav
// sd2
// 50
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
// sd2
// 50
elseif (<argn> == 36) // Magic Reflect
spell_say In Jux Sanct
// sd2
// 50
elseif (<argn> == 37) // Mind Blast
spell_say Por Corp Wis
// sd2
// 50
elseif (<argn> == 38) // Paralyze
spell_say An Ex Por
// sd2
// 50
elseif (<argn> == 39) // Poison Field
spell_say In Nox Grav
// sd2
// 50
elseif (<argn> == 40) // Summon Creature
spell_say Kal Xen
// sd2
// 50
elseif (<argn> == 41) // Dispel
spell_say An Ort
// sd2
// 50
elseif (<argn> == 42) // Energy Bolt
spell_say Corp Por
// sd2
// 50
elseif (<argn> == 43) // Explosion
spell_say Vas Ort Flam
// sd2
// 50
elseif (<argn> == 44) // invisibility
spell_say An Lor Xen
// sd2
// 50
elseif (<argn> == 45) // Mark
spell_say Kal Por Ylem
// sd2
// 50
elseif (<argn> == 46) // Mass Curse
spell_say Vas Des Sanct
// sd2
// 50
elseif (<argn> == 47) // Paralyze Field
spell_say In Ex Grav
// sd3
// 50
elseif (<argn> == 48) // Reveal
spell_say Wis Quas
// sd2
// 50
elseif (<argn> == 49) // Chain Lightning
spell_say Vas Ort Grav
// sd3
// 50
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
// sd3
// 50
elseif (<argn> == 51) // Flme strike
spell_say Kal Vas Flam
// sd3
// 50
elseif (<argn> == 52) // Gate Travel
spell_say Vas Rel Por
// sd3
// 50
elseif (<argn> == 53) // Mana Vampire
spell_say Ort Sanct
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
spell_say Vas An Ort
// sd3
// 50
elseif (<argn> == 55) // Meteor Swarm
spell_say Flam Kal Des Ylem
// sd3
// 50
elseif (<argn> == 56) // Polymorph
spell_say Vas Ylem Rel
// sd3
// 50
elseif (<argn> == 57) // Earthquake
spell_say In Vas Por
// sd3
// 50
elseif (<argn> == 58) // Energy Vortex
spell_say Vas Corp Por
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 59) // Resurrect
spell_say An Corp
// sd3
// 50
elseif (<argn> == 60) // Air Elemental
spell_say Kal Vas Xen Hur
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 62) // Earth Elemental
spell_say Kal Vas Xen Ylem
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 64) // Water Elemental
spell_say Kal Vas Xen An Flam
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
endif
ON=@SPELLEFFECT
IF (<SERV.SPELL.<ARGN1>.FLAGS>&spellflag_resist)
IF (<EVAL <MAGICRESISTANCE>-((<SRC.EVALUATINGINTEL>*<SpellCircle <ARGN1>>)/15)>
IF rand(8)=1
SYSMESSAGE You feel yourself resisting the spell.
EMOTE resists the spell.
SKILLGAIN MAGICRESISTANCE 60
EFFECT 3 i_fx_bless_effect, 16, 16
SRC.SYSMESSAGE @,3,1 <name> resist the spell.
ARGN3 -= RAND(<MAGICRESISTANCE>/6,<MAGICRESISTANCE>/4)
RETURN 1
ENDIF
ELSE
ARGN3 -= RAND(0,<MAGICRESISTANCE>/7)
SKILLGAIN MAGICRESISTANCE 60
ENDIF
ENDIF
ON=@HIT
if (<src.parrying>>500)
if rand(48)=1
SRC.SYSMESSAGE @,3,1 You parry the blow and you heal to yourself.
src.hits += (<src.parrying>/20)
if (<src.hits>><src.str>)
src.hits=<src.str>
endif
endif
endif
if !(<R64>) //chance to use this attack on players. 1 in 10 chance.
if (<eval <src.tag.nomovetill>>) >=1 //if the character is already stunned, only move them back
src.moveback
SRC.SYSMESSAGE @21,3,1 You have been knocked backwards by the creatures blow.
elseif (<eval <src.tag.nomovetill>>)==0 // the character isnt stunned. apply the full effect
src.moveback
SRC.SYSMESSAGE @21,3,1 You have been stunned & knocked backwards by the creatures blow.
src.sound 022b
serv.newitem i_stunhit_timer
new.equip <src.uid>
src.tag.nomovetill = <EVAL <Serv.Time>+4>//adjust this as you like. 40=4 seconds.
if <src.stamina> > 5 //check for stamina damage
src.stamina -= 5
endif
endif
endif
[TYPEDEF T_AOS_WEAPON]
[EVENTS e_player]
ON=@ITEMCLICK
if (<act.attr>&04)
act.message @,3,1 [newbified]
endif
if (<act.attr>&attr_magic)
act.message @,3,1 [magic]
endif
if !(<act.type>=t_corpse)
if (<act.amount>>1)
act.message @,3,1 <act.amount> <act.name>
else
act.message @,3,1 <act.name>
endif
if !(<act.maxhits>>10000)
IF (<act.maxhits>>0)
act.message @,3,1 [Durability : <ACT.HITS>/<ACT.MAXHITS>]
endif
endif
return 1
ON=@UserSpecialMove
SRC.f_UseSkillBook <ARGN1>
ON=@DAMAGE
ON=@HITTRY
ON=@LOGIN
if <eval <src.account.TOTALCONNECTTIME>/60><2
src.title the New Player
elseif <eval <src.account.TOTALCONNECTTIME>/60><10
src.title the Young Player
elseif <eval <src.account.TOTALCONNECTTIME>/60><24
src.title the Normal Player
elseif <eval <src.account.TOTALCONNECTTIME>/60><100
src.title the Classic Player
elseif <eval <src.account.TOTALCONNECTTIME>/60><200
src.title the Old Player
elseif <eval <src.account.TOTALCONNECTTIME>/60>>300
src.title the Older Player
elseif <eval <src.account.TOTALCONNECTTIME>/60>>400
src.title the Oldest Player
endif
On=@Death
if (<src.account.plevel>>1)
src.resurrect
src.hits = <src.str>
return 1
endif
On=@GetHit
if !(<serial>=<src.serial>)
IF (<EVAL <TAG.DAMAGERETURN>>>0)
src.damage = <EVAL <TAG.DAMAGERETURN>>/3
endif
flags &= ~statf_freeze
if (<findlayer.2.type>=t_shield)
if (<parrying><300)
if rand(64)=1
return 1
endif
elseif (<parrying><400)
if rand(48)=1
return 1
endif
elseif (<parrying><500)
if rand(42)=1
return 1
endif
elseif (<parrying><600)
if rand(36)=1
return 1
endif
elseif (<parrying><700)
if rand(32)=1
return 1
endif
elseif (<parrying><800)
if rand(28)=1
return 1
endif
elseif (<parrying><900)
if rand(24)=1
return 1
endif
elseif (<parrying><1000)
if rand(20)=1
return 1
endif
elseif (<parrying>=1000)
if rand(16)=1
return 1
endif
endif
endif
if (<findtype.t_eq_trade_window>)
findtype.t_eq_trade_window.remove
endif
endif
on=@ITEMCLIENTTOOLTIP
VAR.TOOLTIP=
OBJ=<ARGO.UID>
OBJ.TRIGGER @Tooltip
IF !<ISEMPTY <VAR.TOOLTIP>>
addcliloc 1042971,<VAR.TOOLTIP>
ENDIF
VAR.TOOLTIP=
ON=@itemContextMenuSelect
On=@EnvironChange
On=@SpellCast
if (<src.hits><1)
SRC.SYSMESSAGE @,3,1 You can't cast when died.
return 1
endif
if ((<flags>&statf_freeze) || (<flags>&statf_stone)
src.action -1
SRC.MESSAGE @,3,1 You can't cast when you are freeze.
return 1
endif
if (<argn> == 1) // Clumsy
spell_say Uus Jux
elseif (<argn> == 3) // Feeblemind
spell_say Rel Wis
elseif (<argn> == 4) // Heal
spell_say In Mani
elseif (<argn> == 5) // Magic Arrow
spell_say In Por Ylem
elseif (<argn> == 6) // Night Sight
spell_say In Lor
elseif (<argn> == 7) // Reactive Armor
spell_say Flam Sanct
elseif (<argn> == 8) // Weaken
spell_say Des Mani
elseif (<argn> == 9) // Agility
spell_say Ex Uus
elseif (<argn> == 10) // Cunning
spell_say Uus Wis
elseif (<argn> == 11) // Cure
spell_say An Nox
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
// 20
elseif (<argn> == 12) // Harm
spell_say An Mani
elseif (<argn> == 13) // Trap
spell_say In Jux
f_fizzle
return 1
elseif (<argn> == 14) // Untrap
spell_say An Jux
f_fizzle
return 1
// 20
elseif (<argn> == 15) // Protection
spell_say Uus Sanct
// sd1
// 20
elseif (<argn> == 16) // Strength
spell_say Uus Mani
// sd1
// 20
elseif (<argn> == 17) // Bless
spell_say Rel Sanct
// sd1
elseif (<argn> == 18) // Fireball
spell_say Vas Flam
// sd1
elseif (<argn> == 19) // Lock
spell_say An Por
f_fizzle
return 1
elseif (<argn> == 20) // Poison
spell_say In Nox
// sd1
elseif (<argn> == 21) // Telekinesis
spell_say Ort Por Ylem
// sd1
elseif (<argn> == 22) // Teleport
spell_say Rel Por
elseif (<argn> == 23) // Unlock
spell_say Ex Por
f_fizzle
return 1
elseif (<argn> == 24) // Wall
spell_say In Sanct Ylem
// sd1
elseif (<argn> == 25) // Arch Cure
spell_say Vas An Nox
// sd2
// 20
elseif (<argn> == 26) // Arch Protection
spell_say Vas Uus Sanct
// sd2
// 20
elseif (<argn> == 27) // Curse
spell_say Des Sanct
// sd2
// 20
elseif (<argn> == 28) // Fire Field
spell_say In Flam Grav
// sd2
// 20
elseif (<argn> == 29) // Greater Heal
spell_say In Vas Mani
// sd2
// 20
elseif (<argn> == 30) // Lightning
spell_say Por Ort Grav
// sd2
// 20
elseif (<argn> == 31) // Mana Drain
spell_say Ort Rel
f_fizzle
return 1
// 20
elseif (<argn> == 32) // Recall
spell_say Kal Ort Por
// sd2
// 20
elseif (<argn> == 33) // Blade Spirits
spell_say In Jux Hur Ylem
// sd2
// 50
elseif (<argn> == 34) // Dispel Field
spell_say An Grav
// sd2
// 50
elseif (<argn> == 35) // Incognito
spell_say Kal In Ex
// sd2
// 50
elseif (<argn> == 36) // Magic Reflect
spell_say In Jux Sanct
// sd2
// 50
elseif (<argn> == 37) // Mind Blast
spell_say Por Corp Wis
// sd2
// 50
elseif (<argn> == 38) // Paralyze
spell_say An Ex Por
// sd2
// 50
elseif (<argn> == 39) // Poison Field
spell_say In Nox Grav
// sd2
// 50
elseif (<argn> == 40) // Summon Creature
spell_say Kal Xen
// sd2
// 50
elseif (<argn> == 41) // Dispel
spell_say An Ort
// sd2
// 50
elseif (<argn> == 42) // Energy Bolt
spell_say Corp Por
// sd2
// 50
elseif (<argn> == 43) // Explosion
spell_say Vas Ort Flam
// sd2
// 50
elseif (<argn> == 44) // invisibility
spell_say An Lor Xen
// sd2
// 50
elseif (<argn> == 45) // Mark
spell_say Kal Por Ylem
// sd2
// 50
elseif (<argn> == 46) // Mass Curse
spell_say Vas Des Sanct
// sd2
// 50
elseif (<argn> == 47) // Paralyze Field
spell_say In Ex Grav
// sd3
// 50
elseif (<argn> == 48) // Reveal
spell_say Wis Quas
// sd2
// 50
elseif (<argn> == 49) // Chain Lightning
spell_say Vas Ort Grav
// sd3
// 50
elseif (<argn> == 50) // Energy Field
spell_say In Sanct Grav
// sd3
// 50
elseif (<argn> == 51) // Flme strike
spell_say Kal Vas Flam
// sd3
// 50
elseif (<argn> == 52) // Gate Travel
spell_say Vas Rel Por
// sd3
// 50
elseif (<argn> == 53) // Mana Vampire
spell_say Ort Sanct
f_fizzle
return 1
elseif (<argn> == 54) // Mass Dispel
spell_say Vas An Ort
// sd3
// 50
elseif (<argn> == 55) // Meteor Swarm
spell_say Flam Kal Des Ylem
// sd3
// 50
elseif (<argn> == 56) // Polymorph
spell_say Vas Ylem Rel
// sd3
// 50
elseif (<argn> == 57) // Earthquake
spell_say In Vas Por
// sd3
// 50
elseif (<argn> == 58) // Energy Vortex
spell_say Vas Corp Por
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 59) // Resurrect
spell_say An Corp
// sd3
// 50
elseif (<argn> == 60) // Air Elemental
spell_say Kal Vas Xen Hur
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 61) // Summon Deamon
spell_say Kal Vas Xen Corp
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 62) // Earth Elemental
spell_say Kal Vas Xen Ylem
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 63) // Fire Elemental
spell_say Kal Vas Xen Flam
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
elseif (<argn> == 64) // Water Elemental
spell_say Kal Vas Xen An Flam
if (<region.guarded>)
criminal 1
endif
// sd3
// 50
endif
On=@SpellEffect
if (<IsInParty>) && (<src.IsInParty>) && (<def.party_attack>)
for 0 <eval <src.party.members>>
obj=<src.party.member.<local._for>.uid>
if (<uid>==<obj>)
SRC.SYSMESSAGE @,3,1 You cannot attack your party members.
return 1
endif
endfor
endif
IF (<SERV.SPELL.<ARGN1>.FLAGS>&spellflag_resist)
IF (<EVAL <MAGICRESISTANCE>-((<SRC.EVALUATINGINTEL>*<SpellCircle <ARGN1>>)/15)>
IF rand(8)=1
SYSMESSAGE You feel yourself resisting the spell.
EMOTE resists the spell.
SKILLGAIN MAGICRESISTANCE 60
EFFECT 3 i_fx_bless_effect, 16, 16
SRC.SYSMESSAGE @,3,1 <name> resist the spell.
ARGN3 -= RAND(<MAGICRESISTANCE>/6,<MAGICRESISTANCE>/4)
RETURN 1
ENDIF
ELSE
ARGN3 -= RAND(0,<MAGICRESISTANCE>/7)
SKILLGAIN MAGICRESISTANCE 60
ENDIF
ENDIF
RETURN 2
On=@ItemPickUp_Pack
// act - item
// src - dropper
if (<act.cont.uid> == <src.findlayer(layer_pack).uid>) && (<act.baseid> == i_gold) && (<src.IsInParty>) && (<def.party_gold_all>)
SRC.SYSMESSAGE @,3,1 You cannot pick up gold from your pack while you are in the party.
return 1
endif
On=@ItemDropOn_Self
if (<argo.baseid> == i_gold) && (<src.IsInParty>) && (<def.party_gold_all>)
FOR 0 <EVAL <SRC.PARTY.MEMBERS>-1>
OBJ=<SRC.PARTY.MEMBER.<LOCAL._FOR>.UID>
local.q = <eval <argo.amount>>
local.x = <eval <argo.amount>/<src.party.members>>
serv.newitem i_gold
new.amount <eval <local.x>>
new.cont = <obj>
endfor
src.consume <local.q> i_gold
endif
endif
On=@ItemTargOn_Item
On=@ItemDropOn_Ground
ON=@ITEMDROPON_ITEM
ON=@UserChatButton
src.dialog d_chatoption
return 1
ON=@UserGuildButton
if (!<src.memoryfindtype.memory_guild>)
SRC.SYSMESSAGE @,3,1 You are not in a guild.
else
if (<src.guild.align>==1)
src.tag.guildalign Order
elseif (<src.guild.align>==2)
src.tag.guildalign Chaos
else
src.tag.guildalign Neutral
endif
src.dialog d_guildinfo
endif
ON=@HIT
if (<eval <findlayer.1.tag0.stun>>0)
if !<R<eval 120-<eval <findlayer.1.tag0.stun>>>>
if (<tactics>>980)
if (<eval <src.tag.nomovetill>>) >=1 //if the character is already stunned, only move them back
src.moveback
SRC.SYSMESSAGE @,3,1 You have been knocked backwards by the creatures blow.
elseif (<eval <src.tag.nomovetill>>)==0 // the character isnt stunned. apply the full effect
src.moveback
SRC.SYSMESSAGE @,3,1 You have been stunned & knocked backwards by the creatures blow.
src.sound 022b
serv.newitem i_stunhit_timer
new.equip <src.uid>
src.tag.nomovetill = 40//adjust this as you like. 40=4 seconds.
if <src.stamina> > 5 //check for stamina damage
src.stamina -= 5
endif
endif
endif
endif
endif
if (<eval <findlayer.2.tag0.stun>>0)
if !<R<eval 105-<eval <findlayer.2.tag0.stun>>>>
if (<tactics>>980)
if (<eval <src.tag.nomovetill>>) >=1 //if the character is already stunned, only move them back
src.moveback
SRC.SYSMESSAGE @,3,1 You have been knocked backwards by the creatures blow.
elseif (<eval <src.tag.nomovetill>>)==0 // the character isnt stunned. apply the full effect
src.moveback
SRC.SYSMESSAGE @,3,1 You have been stunned & knocked backwards by the creatures blow.
src.sound 022b
serv.newitem i_stunhit_timer
new.equip <src.uid>
src.tag.nomovetill = 60//adjust this as you like. 40=4 seconds.
if <src.stamina> > 5 //check for stamina damage
src.stamina -= 5
endif
endif
endif
endif
endif
IF (<luck>><src.luck>)
IF (<luck><5)
if rand(128)=1
src.damage = <str>/10
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><10)
if rand(118)=1
src.damage = <str>/9
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><15)
if rand(108)=1
src.damage = <str>/8
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><20)
if rand(98)=1
src.damage = <str>/7
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><25)
if rand(88)=1
src.damage = <str>/6
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><30)
if rand(78)=1
src.damage = <str>/5
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><35)
if rand(68)=1
src.damage = <str>/4
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><55)
if rand(58)=1
src.damage = <str>/3
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><80)
if rand(48)=1
src.damage = <str>/2
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><100)
if rand(38)=1
src.damage = <str>/2
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><125)
if rand(28)=1
src.damage = <str>/2
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><150)
if rand(27)=1
src.damage = <str>/2
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><200)
if rand(26)=1
src.damage = <str>/2
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><265)
if rand(25)=1
src.damage = <str>/2
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><320)
if rand(24)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck><400)
if rand(23)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck>>400)
if rand(22)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck>>450)
if rand(21)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck>>500)
if rand(20)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck>>550)
if rand(19)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck>>600)
if rand(18)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck>>650)
if rand(17)=1
src.damage = <str>
sysmessage @045 Lucking Bonus Damage.
endif
elseif (<luck>>700)
if rand(16)=1
src.damage = <str>*2
sysmessage @045 Lucking Bonus Damage.
endif
endif
endif
IF (<wrestling>>500)
IF rand(64)=1
src.damage = {25 50}
DORAND 3
SRC.SYSMESSAGE @,3,1 You damage <src.name>'s heart.
SRC.SYSMESSAGE @,3,1 You damage <src.name> with upperguard.
SRC.SYSMESSAGE @,3,1 You damage <src.name> with knockout.
ENDDO
ENDIF
ENDIF
if (<src.parrying>>500)
if rand(48)=1
sysmessage <src.name> parries the blow and heal to self.
SRC.SYSMESSAGE @,3,1 You parry the blow and you heal to yourself.
src.hits += (<src.parrying>/20)
if (<src.hits>><src.str>)
src.hits=<src.str>
endif
return 1
endif
endif
if (<findlayer.1.type>=t_weapon_fence)
src.damage = (<fencing>/100)
endif
if (<findlayer.1.type>=t_weapon_sword)
src.damage = (<swordsmanship>/100)
endif
if (<findlayer.1.type>=t_weapon_mace_sharp)
src.damage = (<macefighting>/100)
endif
if (<findlayer.2.type>=t_weapon_fence)
src.damage = (<fencing>/100)
endif
if (<findlayer.2.type>=t_weapon_sword)
src.damage = (<swordsmanship>/100)
endif
if (<findlayer.2.type>=t_weapon_mace_sharp)
src.damage = (<macefighting>/100)
endif
if (<findlayer.2.type>=t_weapon_bow)
src.damage = (<archery>/100)
endif
if (<findlayer.1.type>=t_weapon_sword)
src.damage = (<lumberjacking>/100)
endif
endif
if (<anatomy>><src.anatomy>)
if rand(16)=1
src.damage = (<anatomy>/100)
endif
endif
if (<findlayer.1.type>=t_weapon_sword) & !(<findlayer.1.type>=t_weapon_fence) & !(<findlayer.1.type>=t_weapon_mace_smith) & !(<findlayer.1.type>=t_weapon_mace_staff) & !(<findlayer.1.type>=t_weapon_mace_sharp)
if (<armslore>><src.armslore>)
if rand(16)=1
src.damage = (<armslore>/100)
endif
endif
endif
if (<findlayer.2.type>=t_weapon_sword) & !(<findlayer.2.type>=t_weapon_fence) & !(<findlayer.2.type>=t_weapon_axe) & !(<findlayer.2.type>=t_weapon_mace_smith) & !(<findlayer.2.type>=t_weapon_mace_staff) & !(<findlayer.2.type>=t_weapon_bow) & !(<findlayer.2.type>=t_weapon_xbow) & !(<findlayer.2.type>=t_weapon_mace_sharp)
if (<armslore>><src.armslore>)
if rand(12)=1
src.damage = (<arsmlore>/100)
endif
endif
endif
if (<findlayer(1).attr>==020)
if rand(32)=1
src.damage = 48
sysmessage @0b30,3,1 Weapon Bonus 48 Damage Point.
elseif rand(26)=1
src.damage = 32
sysmessage @0b30,3,1 Weapon Bonus 32 Damage Point.
elseif rand(22)=1
src.damage = 16
sysmessage @0b30,3,1 Weapon Bonus 16 Damage Point.
elseif rand(16)=1
src.damage = 8
sysmessage @0b30,3,1 Weapon Bonus 8 Damage Point.
endif
endif
if (<findlayer(2).attr>==020)
if rand(35)=1
src.damage = 64
sysmessage @0b30,3,1 Weapon Bonus 64 Damage Point.
elseif rand(30)=1
src.damage = 48
sysmessage @0b30,3,1 Weapon Bonus 48 Damage Point.
elseif rand(25)=1
src.damage = 32
sysmessage @0b30,3,1 Weapon Bonus 32 Damage Point.
elseif rand(20)=1
src.damage = 16
sysmessage @0b30,3,1 Weapon Bonus 16 Damage Point.
endif
endif
if (<findlayer(1).attr>==024)
if rand(32)=1
src.damage = 48
sysmessage @0b30,3,1 Weapon Bonus 48 Damage Point.
elseif rand(26)=1
src.damage = 32
sysmessage @0b30,3,1 Weapon Bonus 32 Damage Point.
elseif rand(22)=1
src.damage = 16
sysmessage @0b30,3,1 Weapon Bonus 16 Damage Point.
elseif rand(16)=1
src.damage = 8
sysmessage @0b30 Weapon Bonus 8 Damage Point.
endif
endif
if (<findlayer(2).attr>==024)
if rand(35)=1
src.damage = 64
sysmessage @0b30,3,1 Weapon Bonus 64 Damage Point.
elseif rand(30)=1
src.damage = 48
sysmessage @0b30,3,1 Weapon Bonus 48 Damage Point.
elseif rand(25)=1
src.damage = 32
sysmessage @0b30,3,1 Weapon Bonus 32 Damage Point.
elseif rand(20)=1
src.damage = 16
sysmessage @0b30,3,1 Weapon Bonus 16 Damage Point.
endif
endif
///////MAGICAL DAMAGES/////////
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==1)
SRC.EFFECT=3,03709,6,15,1
SRC.DAMAGE {40 60}
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==2)
SRC.EFFECT=1,03728,35,35,0
SRC.DAMAGE {22 40}
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==3)
SRC.HARM
SRC.DAMAGE {12 24}
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==4)
SRC.EXPLOSION
SRC.DAMAGE {22 36}
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==5)
FORCHARS 7
EFFECT=1,03728,35,35,0
DAMAGE {40 60}
ENDFOR
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==6)
FORCHARS 7
EFFECT=3,03709,6,15,1
DAMAGE {40 60}
ENDFOR
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==7)
MAGIC
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.MAGICSPELL>>==8)
src.damage = <SRC.MANA>
SRC.MANA 0
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==1)
SRC.EFFECT=3,03709,6,15,1
SRC.DAMAGE {44 64}
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==2)
SRC.EFFECT=1,03728,35,35,0
SRC.DAMAGE {26 44}
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==3)
SRC.HARM
SRC.DAMAGE {16 28}
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==4)
SRC.EXPLOSION
SRC.DAMAGE {26 40}
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==5)
FORCHARS 7
EFFECT=1,03728,35,35,0
DAMAGE {44 66}
ENDFOR
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==6)
FORCHARS 7
EFFECT=3,03709,6,15,1
DAMAGE {44 66}
ENDFOR
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==7)
MAGIC
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.MAGICSPELL>>==8)
src.damage = <SRC.MANA>
src.damage = {4 8}
SRC.MANA 0
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.COLDDAMAGE>> > <src.rescold>)
src.damage = ((<EVAL <FINDLAYER.1.TAG.COLDDAMAGE>> - <src.rescold>)/7)
endif
IF (<EVAL <FINDLAYER.1.TAG.FIREDAMAGE>> > <src.resfire>)
src.damage = ((<EVAL <FINDLAYER.1.TAG.FIREDAMAGE>> - <src.resfire>)/7)
endif
IF (<EVAL <FINDLAYER.1.TAG.ENERGYDAMAGE>> > <src.resenergy>)
src.damage = ((<EVAL <FINDLAYER.1.TAG.ENERGYDAMAGE>> - <src.resenergy>)/7)
endif
IF (<EVAL <FINDLAYER.1.TAG.POISONDAMAGE>> > <src.respoison>)
if (<src.restest 1 i_rune_poison>
src.damage = ((<eval <findlayer.1.tag.poisondamage>>-<src.respoison>)/7)
endif
endif
IF (<EVAL <FINDLAYER.1.TAG.DAMAGEINCREASE>>>=1)
src.damage ((<EVAL <FINDLAYER.1.TAG.DAMAGEINCREASE>/5>))
endif
IF (<EVAL <FINDLAYER.1.TAG.BONUSDAMAGE>>>=1)
IF rand(36)=1
src.damage=((<EVAL <FINDLAYER.1.TAG.BONUSDAMAGE>>))*2
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>*2>
ELSEIF rand(24)=1
src.damage=((<EVAL <FINDLAYER.1.TAG.BONUSDAMAGE>>))
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>>
ELSEIF rand(16)=1
src.damage=((<EVAL <FINDLAYER.1.TAG.BONUSDAMAGE>>))/2
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>/2>
ELSEIF rand(8)=1
src.damage=((<EVAL <FINDLAYER.1.TAG.BONUSDAMAGE>>))/3
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>/3>
ENDIF
endif
IF (<EVAL <FINDLAYER.1.TAG.HitChanceIncrease>>>=1)
src.damage ((<EVAL <FINDLAYER.1.TAG.HitChanceIncrease>/5>))
endif
IF (<EVAL <FINDLAYER.1.TAG.SwingSpeedIncrease>>>=1)
src.damage ((<EVAL <FINDLAYER.1.TAG.SwingSpeedIncrease>/5>))
endif
IF <EVAL <FINDLAYER.1.TAG.STAMLEECH>> >= 1
src.stam -= <EVAL <FINDLAYER.1.TAG.STAMLEECH>>
ENDIF
IF <EVAL <FINDLAYER.1.TAG.MANALEECH>> >= 1
src.mana -= <EVAL <FINDLAYER.1.TAG.MANALEECH>>
ENDIF
IF <EVAL <FINDLAYER.1.TAG.LIFELEECH>> >= 1
src.damage = ((<EVAL <FINDLAYER.1.TAG.LIFELEECH>>)/5)
ENDIF
IF (<EVAL <FINDLAYER.1.TAG.PHYSICALDAMAGE>> > <src.modar>)
IF (<src.npc>==1)
src.damage = (<eval (<EVAL <FINDLAYER.1.TAG.PHYSICALDAMAGE>>)-(<src.modar>)>)/16
else
src.damage = (<eval (<EVAL <FINDLAYER.1.TAG.PHYSICALDAMAGE>>)-(<src.modar>)>)/5
endif
endif
////////////////////////////// TWO HANDEDS ///////////////////////
IF (<EVAL <FINDLAYER.2.TAG.COLDDAMAGE>> > <src.rescold>)
src.damage = ((<EVAL <FINDLAYER.2.TAG.COLDDAMAGE>> - <src.rescold>)/2)
endif
IF (<EVAL <FINDLAYER.2.TAG.FIREDAMAGE>> > <src.resfire>)
src.damage = ((<EVAL <FINDLAYER.2.TAG.FIREDAMAGE>> - <src.resfire>)/2)
endif
IF (<EVAL <FINDLAYER.2.TAG.ENERGYDAMAGE>> > <src.resenergy>)
src.damage = ((<EVAL <FINDLAYER.2.TAG.ENERGYDAMAGE>> - <src.resenergy>)/2)
endif
IF (<EVAL <FINDLAYER.2.TAG.POISONDAMAGE>> > <src.respoison>)
if (<src.restest 1 i_rune_poison>
src.damage = (<eval <findlayer.2.tag.poisondamage>>-<src.respoison>)
endif
endif
IF (<EVAL <FINDLAYER.2.TAG.DAMAGEINCREASE>>>=1)
src.damage ((<EVAL <FINDLAYER.2.TAG.DAMAGEINCREASE>/2>))
endif
IF (<EVAL <FINDLAYER.2.TAG.HitChanceIncrease>>>=1)
src.damage ((<EVAL <FINDLAYER.2.TAG.HitChanceIncrease>/2>))
endif
IF (<EVAL <FINDLAYER.2.TAG.SwingSpeedIncrease>>>=1)
src.damage ((<EVAL <FINDLAYER.2.TAG.SwingSpeedIncrease>/2>))
endif
IF <EVAL <FINDLAYER.1.TAG.STAMLEECH>> >= 1
src.stam -= <EVAL <FINDLAYER.1.TAG.STAMLEECH>>
ENDIF
IF <EVAL <FINDLAYER.1.TAG.MANALEECH>> >= 1
src.mana -= <EVAL <FINDLAYER.1.TAG.MANALEECH>>
ENDIF
IF <EVAL <FINDLAYER.1.TAG.LIFELEECH>> >= 1
src.damage = ((<EVAL <FINDLAYER.1.TAG.LIFELEECH>>)/2)
ENDIF
IF (<EVAL <FINDLAYER.2.TAG.BONUSDAMAGE>>>=1)
IF rand(20)=1
src.damage=((<EVAL <FINDLAYER.2.TAG.BONUSDAMAGE>>))*2
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>*3>
ELSEIF rand(16)=1
src.damage=((<EVAL <FINDLAYER.2.TAG.BONUSDAMAGE>>))
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>*2>
ELSEIF rand(12)=1
src.damage=((<EVAL <FINDLAYER.2.TAG.BONUSDAMAGE>>))/2
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>>
ELSEIF rand(8)=1
src.damage=((<EVAL <FINDLAYER.2.TAG.BONUSDAMAGE>>))/3
sysmessage @,3,1 Bonus Damage : <eval <findlayer.1.tag0.bonusdamage>/2>
ENDIF
endif
IF (<EVAL <FINDLAYER.2.TAG.PHYSICALDAMAGE>> > <src.modar>)
IF (<src.npc>==1)
src.damage = (<eval (<EVAL <FINDLAYER.1.TAG.PHYSICALDAMAGE>>)-(<src.modar>)>)/4
else
src.damage = (<eval (<EVAL <FINDLAYER.1.TAG.PHYSICALDAMAGE>>)-(<src.modar>)>)
endif
endif
IF <EVAL <FINDLAYER.1.MOREM>>==01
SYSMESSAGE The enchantment upon your weapon does +1 electricity.
SRC.DAMAGE = 6
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==02
SYSMESSAGE The enchantment upon your weapon does +1 flame.
SRC.DAMAGE = 6
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==03
SYSMESSAGE The enchantment upon your weapon does +1 vortex.
SRC.DAMAGE = 6
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==05
SYSMESSAGE The enchantment upon your weapon does +2 flame.
SRC.DAMAGE = 12
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==06
SYSMESSAGE The enchantment upon your weapon does +2 vortex.
SRC.DAMAGE = 12
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==07
SYSMESSAGE The enchantment upon your weapon does +4 electricity.
SRC.DAMAGE = 18
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==08
SYSMESSAGE The enchantment upon your weapon does +4 flame.
SRC.DAMAGE = 18
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==09
SYSMESSAGE The enchantment upon your weapon does +4 vortex.
SRC.DAMAGE = 18
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==10
SYSMESSAGE The enchantment upon your weapon does +8 electricity.
SRC.DAMAGE = 30
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==11
SYSMESSAGE The enchantment upon your weapon does +8 flame.
SRC.DAMAGE = 30
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==12
SYSMESSAGE The enchantment upon your weapon does +8 vortex.
SRC.DAMAGE = 30
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==13
SYSMESSAGE The enchantment upon your weapon does +1 stormblast.
SRC.DAMAGE = 6
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==14
SYSMESSAGE The enchantment upon your weapon does +2 stormblast.
SRC.DAMAGE = 12
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==15
SYSMESSAGE The enchantment upon your weapon does +4 stormblast.
SRC.DAMAGE = 18
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==16
SYSMESSAGE The enchantment upon your weapon does +8 stormblast.
SRC.DAMAGE = 30
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==17
SYSMESSAGE The enchantment upon your weapon does +10 electricity.
SRC.DAMAGE = 45
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==18
SYSMESSAGE The enchantment upon your weapon does +10 flame.
SRC.DAMAGE = 45
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==19
SYSMESSAGE The enchantment upon your weapon does +10 vortex.
SRC.DAMAGE = 45
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==20
SYSMESSAGE The enchantment upon your weapon does +10 stormblast.
SRC.DAMAGE = 45
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==21 //RESERVED FOR CURSED ENCHANTMENTS
SYSMESSAGE The enchantment upon your weapon is cursed.
SRC.DAMAGE = 2
EFFECT = 3,i_fx_curse,6,15,1
SOUND = snd_SPELL_POISON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==22
SYSMESSAGE The enchantment upon your weapon does +1 frost.
SRC.DAMAGE = 6
SRC.FROST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==23
SYSMESSAGE The enchantment upon your weapon does +2 frost.
SRC.DAMAGE = 12
SRC.FROST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==24
SYSMESSAGE The enchantment upon your weapon does +4 frost.
SRC.DAMAGE = 18
SRC.FROST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==25
SYSMESSAGE The enchantment upon your weapon does +8 frost.
SRC.DAMAGE = 30
SRC.FROST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==26
SYSMESSAGE The enchantment upon your weapon does +10 frost.
SRC.DAMAGE = 45
SRC.FROST
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==27
SYSMESSAGE The enchantment upon your weapon does +1 green house effect.
SRC.DAMAGE = 6
SRC.GHE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==28
SYSMESSAGE The enchantment upon your weapon does +2 green house effect.
SRC.DAMAGE = 12
SRC.GHE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==29
SYSMESSAGE The enchantment upon your weapon does +4 green house effect.
SRC.DAMAGE = 18
SRC.GHE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==30
SYSMESSAGE The enchantment upon your weapon does +8 green house effect.
SRC.DAMAGE = 30
SRC.GHE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==31
SYSMESSAGE The enchantment upon your weapon does +10 green house effect.
SRC.DAMAGE = 45
SRC.GHE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==32
SYSMESSAGE The enchantment upon your weapon does +1 inferno.
SRC.DAMAGE = 6
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==33
SYSMESSAGE The enchantment upon your weapon does +2 inferno.
SRC.DAMAGE = 12
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==34
SYSMESSAGE The enchantment upon your weapon does +4 inferno.
SRC.DAMAGE = 18
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==35
SYSMESSAGE The enchantment upon your weapon does +8 inferno.
SRC.DAMAGE = 30
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==36
SYSMESSAGE The enchantment upon your weapon does +10 inferno.
SRC.DAMAGE = 45
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==37
SYSMESSAGE The enchantment upon your weapon does +1 unholy cloud.
SRC.DAMAGE = 6
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==38
SYSMESSAGE The enchantment upon your weapon does +2 unholy cloud.
SRC.DAMAGE = 12
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==39
SYSMESSAGE The enchantment upon your weapon does +4 unholy cloud.
SRC.DAMAGE = 18
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==40
SYSMESSAGE The enchantment upon your weapon does +8 unholy cloud.
SRC.DAMAGE = 30
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==41
SYSMESSAGE The enchantment upon your weapon does +10 unholy cloud.
SRC.DAMAGE = 45
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==42
SYSMESSAGE The enchantment upon your weapon does +1 lemonzest.
SRC.DAMAGE = 6
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==43
SYSMESSAGE The enchantment upon your weapon does +2 lemonzest.
SRC.DAMAGE = 12
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==44
SYSMESSAGE The enchantment upon your weapon does +4 lemonzest.
SRC.DAMAGE = 18
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==45
SYSMESSAGE The enchantment upon your weapon does +8 lemonzest.
SRC.DAMAGE = 30
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==46
SYSMESSAGE The enchantment upon your weapon does +10 lemonzest.
SRC.DAMAGE = 45
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==47
SYSMESSAGE The enchantment upon your weapon does +1 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 8
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==48
SYSMESSAGE The enchantment upon your weapon does +2 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 14
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==49
SYSMESSAGE The enchantment upon your weapon does +4 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 20
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==50
SYSMESSAGE The enchantment upon your weapon does +8 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 26
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==51
SYSMESSAGE The enchantment upon your weapon does +10 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 30
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==52
SYSMESSAGE The enchantment upon your weapon does +1 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==53
SYSMESSAGE The enchantment upon your weapon does +2 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==54
SYSMESSAGE The enchantment upon your weapon does +4 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==55
SYSMESSAGE The enchantment upon your weapon does +8 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==56
SYSMESSAGE The enchantment upon your weapon does +10 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==57
SYSMESSAGE The enchantment upon your weapon does +1 daemon breath.
SRC.DAMAGE = 15
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==58
SYSMESSAGE The enchantment upon your weapon does +2 daemon breath.
SRC.DAMAGE = 21
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==59
SYSMESSAGE The enchantment upon your weapon does +4 daemon breath.
SRC.DAMAGE = 27
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==60
SYSMESSAGE The enchantment upon your weapon does +8 daemon breath.
SRC.DAMAGE = 39
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==61
SYSMESSAGE The enchantment upon your weapon does +10 daemon breath.
SRC.DAMAGE = 54
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==62
SYSMESSAGE The enchantment upon your weapon does +1 devils magic.
SRC.DAMAGE = 15
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==63
SYSMESSAGE The enchantment upon your weapon does +2 devils magic.
SRC.DAMAGE = 21
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==64
SYSMESSAGE The enchantment upon your weapon does +4 devils magic.
SRC.DAMAGE = 27
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==65
SYSMESSAGE The enchantment upon your weapon does +8 devils magic.
SRC.DAMAGE = 39
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==66
SYSMESSAGE The enchantment upon your weapon does +10 devils magic.
SRC.DAMAGE = 54
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==67
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +1 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==68
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +2 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==69
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +4 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==70
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +8 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==71
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +10 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==72
SYSMESSAGE The enchantment upon your weapon does +1 dragoon blade.
SRC.DAMAGE = 3
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==73
SYSMESSAGE The enchantment upon your weapon does +2 dragoon blade.
SRC.DAMAGE = 6
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==74
SYSMESSAGE The enchantment upon your weapon does +4 dragoon blade.
SRC.DAMAGE = 12
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==75
SYSMESSAGE The enchantment upon your weapon does +8 dragoon blade.
SRC.DAMAGE = 24
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==76
SYSMESSAGE The enchantment upon your weapon does +10 dragoon blade.
SRC.DAMAGE = 30
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==77
SYSMESSAGE The enchantment upon your weapon does +1 althalus.
SRC.DAMAGE = 3
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==78
SYSMESSAGE The enchantment upon your weapon does +2 althalus.
SRC.DAMAGE = 6
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==79
SYSMESSAGE The enchantment upon your weapon does +4 althalus.
SRC.DAMAGE = 12
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==80
SYSMESSAGE The enchantment upon your weapon does +8 althalus.
SRC.DAMAGE = 24
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==81
SYSMESSAGE The enchantment upon your weapon does +10 althalus.
SRC.DAMAGE = 30
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==82
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==83
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==84
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==85
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 8.
SRC.DAMAGE = 24
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==86
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==87
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==88
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==89
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==90
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 8.
SRC.DAMAGE = 24
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==91
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==92
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==93
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==94
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==95
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 8.
SRC.DAMAGE = 24
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==96
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==97
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==98
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==99
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==100
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 8.
SRC.DAMAGE = 16
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==101
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.1.MOREM>>==102
SRC.DAMAGE = 40
SRC.RUNE_LIGHT
DORAND 10
SRC.EMOTE get struck by an element bursting from <NAME>'s weapon.
SRC.EMOTE block the elements attack
SRC.SYSMESSAGE @,3,1 <NAME> is hitting you with a weapon enchanted not of this world
SAY Spirit of the world! Come from thyne entrapment and strike my enemy down!
SAY Thou shall not win!
EMOTE become possessed with the magic of the spirit.
SYSMESSAGE Your element begins to tire of <SRC.NAME>'s weekness
VAR.CHECKHITS=1
SRC.EMOTE have blackened eye from the pain.
SAY Never before have a faced such a week enemy!
ENDDO
SRC.DAMAGE = 100
DORAND 4
SRC.RUNE_LIGHT
SRC.RUNE_FIRE
SRC.RUNE_WATER
SRC.RUNE_ICE
ENDDO
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==01
SYSMESSAGE The enchantment upon your weapon does +1 electricity.
SRC.DAMAGE = 6
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==02
SYSMESSAGE The enchantment upon your weapon does +1 flame.
SRC.DAMAGE = 6
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==03
SYSMESSAGE The enchantment upon your weapon does +1 vortex.
SRC.DAMAGE = 6
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==05
SYSMESSAGE The enchantment upon your weapon does +2 flame.
SRC.DAMAGE = 12
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==06
SYSMESSAGE The enchantment upon your weapon does +2 vortex.
SRC.DAMAGE = 12
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==07
SYSMESSAGE The enchantment upon your weapon does +4 electricity.
SRC.DAMAGE = 18
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==08
SYSMESSAGE The enchantment upon your weapon does +4 flame.
SRC.DAMAGE = 18
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==09
SYSMESSAGE The enchantment upon your weapon does +4 vortex.
SRC.DAMAGE = 18
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==10
SYSMESSAGE The enchantment upon your weapon does +8 electricity.
SRC.DAMAGE = 30
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==11
SYSMESSAGE The enchantment upon your weapon does +8 flame.
SRC.DAMAGE = 30
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==12
SYSMESSAGE The enchantment upon your weapon does +8 vortex.
SRC.DAMAGE = 30
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==13
SYSMESSAGE The enchantment upon your weapon does +1 stormblast.
SRC.DAMAGE = 6
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==14
SYSMESSAGE The enchantment upon your weapon does +2 stormblast.
SRC.DAMAGE = 12
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==15
SYSMESSAGE The enchantment upon your weapon does +4 stormblast.
SRC.DAMAGE = 18
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==16
SYSMESSAGE The enchantment upon your weapon does +8 stormblast.
SRC.DAMAGE = 30
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==17
SYSMESSAGE The enchantment upon your weapon does +10 electricity.
SRC.DAMAGE = 45
SRC.ELECTRICITY
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==18
SYSMESSAGE The enchantment upon your weapon does +10 flame.
SRC.DAMAGE = 45
SRC.FLAME
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==19
SYSMESSAGE The enchantment upon your weapon does +10 vortex.
SRC.DAMAGE = 45
SRC.VORTEX
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==20
SYSMESSAGE The enchantment upon your weapon does +10 stormblast.
SRC.DAMAGE = 45
SRC.STORMBLAST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==21 //RESERVED FOR CURSED ENCHANTMENTS
SYSMESSAGE The enchantment upon your weapon is cursed.
DAMAGE = 6
EFFECT = 3,i_fx_curse,6,15,1
SOUND = snd_SPELL_POISON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==22
SYSMESSAGE The enchantment upon your weapon does +1 frost.
SRC.DAMAGE = 2
SRC.FROST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==23
SYSMESSAGE The enchantment upon your weapon does +2 frost.
SRC.DAMAGE = 12
SRC.FROST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==24
SYSMESSAGE The enchantment upon your weapon does +4 frost.
SRC.DAMAGE = 18
SRC.FROST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==25
SYSMESSAGE The enchantment upon your weapon does +8 frost.
SRC.DAMAGE = 30
SRC.FROST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==26
SYSMESSAGE The enchantment upon your weapon does +10 frost.
SRC.DAMAGE = 45
SRC.FROST
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==27
SYSMESSAGE The enchantment upon your weapon does +1 green house effect.
SRC.DAMAGE = 6
SRC.GHE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==28
SYSMESSAGE The enchantment upon your weapon does +2 green house effect.
SRC.DAMAGE = 12
SRC.GHE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==29
SYSMESSAGE The enchantment upon your weapon does +4 green house effect.
SRC.DAMAGE = 18
SRC.GHE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==30
SYSMESSAGE The enchantment upon your weapon does +8 green house effect.
SRC.DAMAGE = 30
SRC.GHE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==31
SYSMESSAGE The enchantment upon your weapon does +10 green house effect.
SRC.DAMAGE = 45
SRC.GHE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==32
SYSMESSAGE The enchantment upon your weapon does +1 inferno.
SRC.DAMAGE = 6
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==33
SYSMESSAGE The enchantment upon your weapon does +2 inferno.
SRC.DAMAGE = 12
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==34
SYSMESSAGE The enchantment upon your weapon does +4 inferno.
SRC.DAMAGE = 18
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==35
SYSMESSAGE The enchantment upon your weapon does +8 inferno.
SRC.DAMAGE = 30
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==36
SYSMESSAGE The enchantment upon your weapon does +10 inferno.
SRC.DAMAGE = 45
SRC.INFERNO
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==37
SYSMESSAGE The enchantment upon your weapon does +1 unholy cloud.
SRC.DAMAGE = 6
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==38
SYSMESSAGE The enchantment upon your weapon does +2 unholy cloud.
SRC.DAMAGE = 12
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==39
SYSMESSAGE The enchantment upon your weapon does +4 unholy cloud.
SRC.DAMAGE = 18
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==40
SYSMESSAGE The enchantment upon your weapon does +8 unholy cloud.
SRC.DAMAGE = 30
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==41
SYSMESSAGE The enchantment upon your weapon does +10 unholy cloud.
SRC.DAMAGE = 45
SRC.CLOUD
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==42
SYSMESSAGE The enchantment upon your weapon does +1 lemonzest.
SRC.DAMAGE = 6
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==43
SYSMESSAGE The enchantment upon your weapon does +2 lemonzest.
SRC.DAMAGE = 12
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==44
SYSMESSAGE The enchantment upon your weapon does +4 lemonzest.
SRC.DAMAGE = 18
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==45
SYSMESSAGE The enchantment upon your weapon does +8 lemonzest.
SRC.DAMAGE = 30
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==46
SYSMESSAGE The enchantment upon your weapon does +10 lemonzest.
SRC.DAMAGE = 15
SRC.LEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==47
SYSMESSAGE The enchantment upon your weapon does +1 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 12
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==48
SYSMESSAGE The enchantment upon your weapon does +2 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 16
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==49
SYSMESSAGE The enchantment upon your weapon does +4 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 20
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==50
SYSMESSAGE The enchantment upon your weapon does +8 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 24
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==51
SYSMESSAGE The enchantment upon your weapon does +10 poisoned cocktail.
SRC.POISON,5000
SRC.DAMAGE = 30
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==52
SYSMESSAGE The enchantment upon your weapon does +1 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==53
SYSMESSAGE The enchantment upon your weapon does +2 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==54
SYSMESSAGE The enchantment upon your weapon does +4 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==55
SYSMESSAGE The enchantment upon your weapon does +8 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==56
SYSMESSAGE The enchantment upon your weapon does +10 egyptian magic.
MAGIC
SRC.EGYPT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==57
SYSMESSAGE The enchantment upon your weapon does +1 daemon breath.
SRC.DAMAGE = 15
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==58
SYSMESSAGE The enchantment upon your weapon does +2 daemon breath.
SRC.DAMAGE = 21
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==59
SYSMESSAGE The enchantment upon your weapon does +4 daemon breath.
SRC.DAMAGE = 27
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==60
SYSMESSAGE The enchantment upon your weapon does +8 daemon breath.
SRC.DAMAGE = 39
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==61
SYSMESSAGE The enchantment upon your weapon does +10 daemon breath.
SRC.DAMAGE = 54
SRC.DAEMON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==62
SYSMESSAGE The enchantment upon your weapon does +1 devils magic.
SRC.DAMAGE = 15
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==63
SYSMESSAGE The enchantment upon your weapon does +2 devils magic.
SRC.DAMAGE = 21
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==64
SYSMESSAGE The enchantment upon your weapon does +4 devils magic.
SRC.DAMAGE = 27
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==65
SYSMESSAGE The enchantment upon your weapon does +8 devils magic.
SRC.DAMAGE = 39
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==66
SYSMESSAGE The enchantment upon your weapon does +10 devils magic.
SRC.DAMAGE = 54
SRC.DEVIL
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==67
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +1 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==68
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +2 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==69
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +4 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==70
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +8 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==71
SYSMESSAGE The enchantment upon your weapon poisons <SRC.NAME> with +10 poison.
SRC.POISON 500
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==72
SYSMESSAGE The enchantment upon your weapon does +1 dragoon blade.
SRC.DAMAGE = 3
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==73
SYSMESSAGE The enchantment upon your weapon does +2 dragoon blade.
SRC.DAMAGE = 6
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==74
SYSMESSAGE The enchantment upon your weapon does +4 dragoon blade.
SRC.DAMAGE = 12
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==75
SYSMESSAGE The enchantment upon your weapon does +8 dragoon blade.
SRC.DAMAGE = 24
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==76
SYSMESSAGE The enchantment upon your weapon does +10 dragoon blade.
SRC.DAMAGE = 30
SRC.DRAGOON
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==77
SYSMESSAGE The enchantment upon your weapon does +1 althalus.
SRC.DAMAGE = 3
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==78
SYSMESSAGE The enchantment upon your weapon does +2 althalus.
SRC.DAMAGE = 6
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==79
SYSMESSAGE The enchantment upon your weapon does +4 althalus.
SRC.DAMAGE = 12
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==80
SYSMESSAGE The enchantment upon your weapon does +8 althalus.
SRC.DAMAGE = 24
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==81
SYSMESSAGE The enchantment upon your weapon does +10 althalus.
SRC.DAMAGE = 30
SRC.ALTHALUS
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==82
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==83
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==84
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==85
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 8.
SRC.DAMAGE = 24
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==86
SYSMESSAGE The weapon you hit with supports a tidal rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_WATER
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==87
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==88
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==89
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==90
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 8.
SRC.DAMAGE = 24
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==91
SYSMESSAGE The weapon you hit with supports a inferno rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_FIRE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==92
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==93
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==94
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==95
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 8.
SRC.DAMAGE = 24
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==96
SYSMESSAGE The weapon you hit with supports a blizzard rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_ICE
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==97
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 1.
SRC.DAMAGE = 3
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==98
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 2.
SRC.DAMAGE = 6
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==99
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 4.
SRC.DAMAGE = 12
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==100
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 8.
SRC.DAMAGE = 16
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==101
SYSMESSAGE The weapon you hit with supports a light rune enchantment at level 10.
SRC.DAMAGE = 30
SRC.RUNE_LIGHT
ELSEIF <EVAL <FINDLAYER.2.MOREM>>==102
DORAND 10
SRC.EMOTE get struck by an element bursting from <NAME>'s weapon.
SRC.EMOTE block the elements attack
SRC.SYSMESSAGE @,3,1 <NAME> is hitting you with a weapon enchanted not of this world
SAY Spirit of the world! Come from thyne entrapment and strike my enemy down!
SAY Thou shall not win!
EMOTE become possessed with the magic of the spirit.
SYSMESSAGE Your element begins to tire of <SRC.NAME>'s weekness
VAR.CHECKHITS=1
SRC.EMOTE have blackened eye from the pain.
SAY Never before have a faced such a week enemy!
ENDDO
IF <VAR.CHECKHITS>==1
IF <SRC.HITS><20
SRC.SAY Please stop. I am critically injured! I give to your mighty weapon!
ENDIF
ENDIF
SRC.DAMAGE = 100
DORAND 4
SRC.RUNE_LIGHT
SRC.RUNE_FIRE
SRC.RUNE_WATER
SRC.RUNE_ICE
ENDDO
ENDIF
[Function f_fizzle]
SRC.SYSMESSAGE @,3,1 You fizzle the spell.
return 1
[FUNCTION cancel_attack]
action = -1
memoryfindtype.memory_war_targ.remove
update
//////////////////////////////////////////////////// GUILD INFO ////////////////////////////////////////
[dialog d_guildinfo]
100,100
resizepic 0 0 3500 250 180
checkertrans 5 5 250 180
text 25 35 920 0
text 25 55 920 1
text 25 75 920 2
text 25 95 920 3
text 25 15 400 4
button 20 120 4018 4019 1 0 1
text 55 120 920 5
[Dialog d_guildinfo text]
Guild Name:
<guild.name>
Align:
<src.tag.guildalign>
Guild Information
Resign from the Guild.
[DIALOG d_guildinfo button]
ON=1
FORCHARS 11
FORCHARMEMORYTYPE memory_war_targ
IF <LINK.UID>==<SRC.UID>
IF <CONT.CANSEELOS <LINK.UID>>
SRC.FLAGS=<SRC.FLAGS>&~0800000
SRC.MESSAGE @,3,1 You can't leave your guild now.
Return 1
ENDIF
ENDIF
ENDFOR
ENDFOR
SRC.SYSMESSAGE @,3,1 You have been left <SRC.MemoryFindType.Memory_Guild.Link.name> guild.
SRC.MemoryFindType.Memory_Guild.remove
SRC.FIX
[EVENTS e_supriseattack]
ON=@HIT
src.damage = (<src.hits>/4)
events -e_supriseattack
SYSMESSAGE You hit <src.name> with suprise attack.
stam -= (<src.hits>/2)
[FUNCTION spellcircle] //argn1=spell number
IF (<ARGN1>>=1) && (<ARGN1><=64) //only with default (mage) spells
RETURN <EVAL ((<ARGN1>-1)/8)+1>
ELSE
RETURN 1
ENDIF
[EOF]