WiLDTuRTLE
Member
- Joined
- Feb 26, 2011
- Messages
- 478
- Reaction score
- 5
Lol.. yeah well im a noob at scripting, just looking at the script and im confused lol,
On console i get error every sec coz of the "doCreatureSay" , its magicwall btw, trying to add timer countdown on it.
may someone skilled could help me to fix this?
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatParam(combat, COMBAT_PARAM_CREATEITEM, 1497)
function onCastSpell(cid, var)
function MagicWallTime(pos, delay)
doCreatureSay(cid, TALKTYPE_ORANGE_1, pos, delay, 145)
if delay ~= 1 then addEvent(MagicWallTime, 1000, pos, delay -1) end
end
local pos,duration = variantToPosition(var),20
MagicWallTime(pos,duration)
return doCombat(cid, combat, var)
end
On console i get error every sec coz of the "doCreatureSay" , its magicwall btw, trying to add timer countdown on it.
may someone skilled could help me to fix this?