Hello, I got trouble adding runes to a special vocation on my new TFS server, im using 0.2.10.
What I would like is something like this:
Paralyze runes only work for druids and master sorcerers
SD runes only work for sorc/druid and paladins
(custom sd rune) only work for Summoners
Here is the paralyze rune:
Can anyone add so it only work for vocation id 2, 5 and 6?
In an older server I had, that was evolution based, i could easy add
But this don't work on TFS.
Ohh I posted in the donator board, please move this to public support board if I won't get any help here
It would be awesome x100 if anybody could give me the finished paralyze.lua script that got
or something like that, that actually work it would be great...
What I would like is something like this:
Paralyze runes only work for druids and master sorcerers
SD runes only work for sorc/druid and paladins
(custom sd rune) only work for Summoners
Here is the paralyze rune:
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)
return doCombat(cid, combat, var)
end
In an older server I had, that was evolution based, i could easy add
Code:
<vocation id="1" /><vocation id="5" /></rune>
Talaturen said:Hello.
If it doesn't work to add it inside the <rune> tag then I don't know how to do it inside the XML file, try using a vocation check inside the paralyze rune.lua script itself, something like:
if getPlayerVocation(cid) ~= 2 or getPlayerVocation(cid) ~= 6 then
return FALSE
end
Ohh I posted in the donator board, please move this to public support board if I won't get any help here
It would be awesome x100 if anybody could give me the finished paralyze.lua script that got
Code:
if getPlayerVocation(cid) ~= 2 or getPlayerVocation(cid) ~= 6 then or getPlayerVocation(cid) ~= 5 then