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

Problem With Paralyze. Read This Post.

mike

Banned User
Joined
Jun 12, 2008
Messages
150
Reaction score
0
Location
Caracas Venezuela
Hi, i have one problem.

It turns out that all the professions in order to have thrown the 18 ml paralyze and I need to just be the Druid that throw someone can help me? I have the following:

<rune name="Paralyze" id="2278" allowfaruse="1" charges="1" lvl="54" maglv="18" exhaustion="2000" mana="1400" needtarget="1" blocktype="solid" script="support/paralyze rune.lua"/>
 
Instead of that line paste in this line:

Code:
	<rune name="Paralyze" id="2278" allowfaruse="1" charges="1" lvl="54" maglv="18" exhaustion="2000" mana="1400" needtarget="1" blocktype="solid" script="support/paralyze rune.lua">
        <vocation name="Druid"/>
        <vocation name="Elder Druid"/>
    </rune>
 
paralyze rune.lua:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -200)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	if isInArray({2, 6}, getPlayerVocation(cid)) == TRUE then
		return doCombat(cid, combat, var)
	else
		doPlayerSendCancel(cid, "Only druids may use this rune.")
		return doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
	end
end
 
23l7ac.jpg


Is the error help me? :]
 
paralyze rune.lua:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)

local condition = createConditionObject(CONDITION_PARALYZE)
setConditionParam(condition, CONDITION_PARAM_TICKS, 20000)
--setConditionParam(condition, CONDITION_PARAM_SPEED, -200)
setConditionFormula(condition, -0.9, 0, -0.9, 0)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
    if isInArray({2, 6}, getPlayerVocation(cid)) == TRUE then
        return doCombat(cid, combat, var)
    else
        doPlayerSendCancel(cid, "Only druids may use this rune.")
        return doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
    end
end

This works, but it costs mana when you try to use it..
 
Back
Top