• 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!

Dispel Energy [Working for 0.2.7]

Exmortis

Member
Joined
Jun 27, 2008
Messages
189
Reaction score
5
I'm probably the recordholder of posting requestthreads and I apologize if it bothers you.
I want a script that makes it possible to cure electricity.
To cure poison and fire is already possible on the server, only this missing! :p
Example:

In spells.xml:
Code:
     <instant name="Antidote" words="exana vis" lvl="10" mana="30" aggressive="0" selftarget="1" exhaustion="1000" needlearn="0" script="healing/antidote3.lua">
		<vocation name="Sorcerer"/>
		<vocation name="Druid"/>
		<vocation name="Paladin"/>
		<vocation name="Knight"/>
		<vocation name="Master Sorcerer"/>
		<vocation name="Elder Druid"/>
		<vocation name="Royal Paladin"/>
		<vocation name="Elite Knight"/>
	</instant>
In spells/scripts/healing/antidote3.lua
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_FIRE)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Last edited:
Try it menz :D
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_ENERGY)

function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 
Yeah I figured that much afterwards aswell.
But when I've been editing lately, a whole lot of problems have been stirring in my server, thats why i just didnt try this time.
 
Back
Top