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

Wand for druid + paral

Kubus93

New Member
Joined
Oct 14, 2014
Messages
29
Reaction score
1
Hello I need wand for only druids and elder druids from 125 lvl hits from ice (dmg 500-600) with 15% chance to paralize target. Anybody can help?
 
Go to data\weapons\scripts and make a file named paralyze rod.lua, open it and paste this into:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)

local condition = Condition(CONDITION_PARALYZE)
condition:setParameter(CONDITION_PARAM_TICKS, 5000)
condition:setFormula(-0.8, 0, -0.9, 0)


function onGetFormulaValues(cid, level, maglevel)
min = -500
max = -600
return min, max
end

combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
local chance = math.random(1,100)
local creature = Creature(cid)
local target = creature:getTarget()
if chance <= 15 then
target:addCondition(condition)
end
return combat:execute(creature, var)
end
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICEATTACK)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5000)
setConditionFormula(condition, -0.8, 0, -0.9, 0)


function onGetFormulaValues(cid, level, maglevel)
min = -500
max = -600
return min, max
end

setCombatCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")

function onUseWeapon(cid, var)
local chance = math.random(1,100)
local target = getCreatureTarget(cid)
if chance <= 15 then
doAddCondition(target, condition)
end
return doCombat(cid, combat, var)
end
Open weapons.xml and paste this:
Code:
<wand id="YOUR ROD ID HERE" level="125" mana="40" script="paralyze rod.lua">
        <vocation name="Druid"/>
    </wand>
If you dont want it to consume your mana then add this instead.
Code:
<wand id="YOUR ROD ID HERE" level="125" script="paralyze rod.lua">
        <vocation name="Druid"/>
    </wand>
Note: it has ice damage of 500-600 and chance of paralyzing of 15% for 5 seconds.

Both should work, so enjoy.
 
Last edited:
Back
Top