• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Request] Spell that hits with a "condition"

Cornwallis

Member
Joined
Jan 3, 2010
Messages
480
Reaction score
16
I need a spell that hits 500 death damage like 20 times, the exhaustion between each would be 250. And, this is for 0.3.6pl1 so is there a way i can get it have that emblem and say You are cursed in server log and on top of the chat screen?

Edit; 100TH POST! <3
 
Last edited:
save as curse.lua

LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)

local condition = createConditionObject(CONDITION_CURSED) <!--check if correct condition -->
setConditionParam(condition, CONDITION_PARAM_DELAYED, 1)
addDamageCondition(condition, 20, 250, -500)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

LUA:
<rune name="Curse" id="XXXX" allowfaruse="1" charges="3" lvl="30" maglv="7" exhaustion="2000" needtarget="1" blocktype="solid" event="script" value="attack/curse.lua"/>
 

Similar threads

Back
Top