bury
Active Member
- Joined
- Jul 27, 2008
- Messages
- 421
- Solutions
- 7
- Reaction score
- 25
Hello, I haven't found anything like this in the forum. I'm testing a very powerful monster in my server but it makes a very strong curse.
EDITED: I'm using this script that actually works but makes the character that has casted it (druid or elder druid) with skull and I dont know why:
spells.xml:
EDITED: I'm using this script that actually works but makes the character that has casted it (druid or elder druid) with skull and I dont know why:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_CURSED)
local area = createCombatArea(AREA_CIRCLE3X3)
setCombatArea(combat, area)
function onCastSpell(cid, var)
local storage = 23004
local spellname = "Cure Curse"
local time = 20
if exhaustion.check(cid, storage) == false then
exhaustion.set(cid, storage, time)
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "You are exhausted in " .. spellname .. " for: " ..exhaustion.get(cid, storage).." seconds.")
end
end
spells.xml:
LUA:
<instant name="Cure Curse" words="exana gran mort res" lvl="50" mana="200" aggressive="0" exhaustion="500" needlearn="0" script="healing/masscurecurse.lua">
<vocation id="2"/>
<vocation id="6"/>
</instant>
Last edited: