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

Solved Bug with super pally rune

vvglex

New Member
Joined
Jan 2, 2015
Messages
162
Reaction score
2
hey i added this rune to my /spells/healing/

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

function onCastSpell(cid, var)
doCreatureAddHealth(cid, 1483, 1505))
doCreatureAddMana(cid, 922, 1023))
doCreatureSay(cid, "DONATE PALLY", TALKTYPE_ORANGE_1)
return doCombat(cid, combat, var)
end
but when i start i get this error
Code:
[Error - LuaInterface::loadFile] data/spells/scripts/healing/spally.lua:7: unexpected symbol near ')'
[Warning - Event::loadScript] Cannot load script (data/spells/scripts/healing/spally.lua)
data/spells/scripts/healing/spally.lua:7: unexpected symbol near ')'

@Limos
tfs 0.4
 
You have too many parentheses at these lines:
Code:
doCreatureAddHealth(cid, 1483, 1505))
doCreatureAddMana(cid, 922, 1023))

Change it to:
Code:
doCreatureAddHealth(cid, 1483, 1505)
doCreatureAddMana(cid, 922, 1023)
 
You need o do what Elime stated above me. But also you need to register the spell rune in spells.XML and if is necessary, edit it in ítems.XML

Loney
 
Back
Top