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

How to make Paralyze only for druids?

apockalyptik

New Member
Joined
Jun 17, 2007
Messages
47
Reaction score
0
Hello,

I just noticed every vocation is being able to cast paralyze on people and not only druids, like it should be. I tried to fix it in spells.xml but it didnt work.

I tried like this:

<rune name="Paralyze" id="2278" allowfaruse="1" charges="1" lvl="54" maglv="18" mana="1400" needtarget="1" blocktype="solid" script="support/paralyze rune.lua"/><vocation name="Druid"/> <vocation name="Elder Druid"/></rune>

This is the way most server do, I guess, but then I got "cant load spells" on console. How can o make it so that only druids can cast paralyze?
 
Code:
	<conjure name="Paralyze" words="adana ani" lvl="54" mana="1400" soul="3" prem="1" reagentId="2260" conjureId="2278" conjureCount="1" exhaustion="1000" needlearn="1" function="conjureRune">
		<vocation name="Druid"/>
		<vocation name="Elder Druid"/>
 
Code:
	<conjure name="Paralyze" words="adana ani" lvl="54" mana="1400" soul="3" prem="1" reagentId="2260" conjureId="2278" conjureCount="1" exhaustion="1000" needlearn="1" function="conjureRune">
		<vocation name="Druid"/>
		<vocation name="Elder Druid"/>

But inst this to make only druids create paralyze runes? I meant I want only druids to use paralyze runes on others.
 
Edit paralyze rune.lua then.

Not sure if this will work, you can try:
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
    	doPlayerSendTextMessage(cid,22,"Only druids can use this rune.")
    	doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
  end
  	return TRUE
end
 
Last edited:
Thanks, I will use this to make more attractive to play druids ;p
 
or <rune name="Paralyze" id="2278" charges="1" needtarget="1" maglv="25" mana="1000" exhaustion="1" enabled="1" allowfaruse="1" script="paralyze.lua"><vocation id="2"/><vocation id="6"/></rune>
 
If I want that it will take 1200 mana when I'm using the rune and also only possibly for druids to use it. What am I doing then?
 
Back
Top