LoveSong
New Member
- Joined
- Dec 16, 2007
- Messages
- 185
- Reaction score
- 0
Hello...
All my Spells are working but exori con not...
Some one can give me a good script? :/
I'm using Aries 4.0 for 8.1
Please help me
This is my script now:
In Spells:
All my Spells are working but exori con not...
Some one can give me a good script? :/
I'm using Aries 4.0 for 8.1
Please help me
This is my script now:
PHP:
local storevalue = 2578 -- value where exhausted is saved
local exhausttime = 1 -- 1 second exhaustion
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_DRAWBLOOD)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 27)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 0, 0, 1.1, 0)
function onCastSpell(cid, var)
local pAccess = getPlayerAccess(cid) -- Returns the player's access
if (isPlayer(cid) == TRUE and pAccess < 0) then
if (exhaust(cid, storevalue, exhausttime) == 2) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted.")
end
else
return doCombat(cid, combat, var)
end
end
In Spells:
PHP:
<instant name="Ethereal Spear" words="exori con" needtarget="1" needWeapon="1" soul="0" mana="90" exhaustion="1" prem="0" enabled="1" script="etherealspear.lua"><vocation id="3"/><vocation id="7"/></instant>