Look, I tried to create a Spell, that stuns(freeze) Enemy for a while...
But the problem is... The script dont found the Player.cid or .uid
I'm so so on scripts![Frown :( :(](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Here's the Script !
The problem is... I use the spell, but the player Still moves...
It means that the players was not found! ='[
Help me, please ?![Confused :confused: :confused:](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
It's possible do this spell, cause I play an OT with it, so help me!
The Spell is so good, u will like it!![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Thank's
Sorry if is wrong section!![Frown :( :(](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
But the problem is... The script dont found the Player.cid or .uid
I'm so so on scripts
Here's the Script !
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 31)
local area = createCombatArea(AREA_BEAM1)
setCombatArea(combat, area)
function onTargetTile(cid, pos)
local position = pos
position.stackpos = 65535
local player = getThingfromPos(position)
if player.itemid > 0 and isPlayer(cid) then
doCreatureSetNoMove(player.uid, 1)
end
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
local function onCastSpell1(parameters)
doCombat(parameters.cid, parameters.combat, parameters.var)
end
function onCastSpell(cid, var)
local parameters = { cid = cid, var = var, combat = combat }
addEvent(onCastSpell1, 100, parameters)
addEvent(onCastSpell1, 1000, parameters)
addEvent(onCastSpell1, 2000, parameters)
end
The problem is... I use the spell, but the player Still moves...
It means that the players was not found! ='[
Help me, please ?
It's possible do this spell, cause I play an OT with it, so help me!
The Spell is so good, u will like it!
Thank's
Sorry if is wrong section!