dont work too :/
[25/02/2008 16:14:03] Lua Script Error: [MoveEvents Interface]
[25/02/2008 16:14:03] data/movements/scripts/remove.luanStepIn
[25/02/2008 16:14:03] luaDoRemoveCreature(). Creature not found
They f*cked my script ¬¬
The Forgotten Server do not have the isMonster function.
Try my original script, that will work.
Code:function onStepIn(cid, item, position, fromPosition) creature = getThingfromPos(position) if isPlayer(creature.uid) == FALSE then doRemoveCreature(creature.uid) end return TRUE end
creature = getThingfromPos(position)
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == FALSE then
doRemoveCreature(cid)
end
return TRUE
end
function onStepIn(cid, item, position, fromPosition)
creature = getThingfromPos(position)
if isPlayer(creature.uid) == FALSE then
doRemoveCreature(creature)
end
return TRUE
end
function onStepIn(cid, item, position, fromPosition)
creature = getThingfromPos(position)
if isPlayer(creature.uid) == 0 then
doRemoveCreature(creature)
end
return TRUE
end
function onStepIn(cid, item, position, fromPosition)
creature = getThingfromPos(position)
if isPlayer(creature.uid) == 1 then
doRemoveCreature(creature)
end
return TRUE
end
this would work if:
@ knightmare: he used creature.uid on the Remove Creature function when it doesnt require a uid.Code:function onStepIn(cid, item, position, fromPosition) creature = getThingfromPos(position) if isPlayer(creature.uid) == FALSE then doRemoveCreature(creature) end return TRUE end
But colandus, yours is simpler.
If this script or Colandus' script doesnt work then ronaldino must be doing something wrong as these scripts are error free.
function onStepIn(cid, item, position, fromPosition)
if isPlayer(cid) == FALSE then
doRemoveCreature(cid)
end
return TRUE
end
<movevent event="StepIn" itemid="1505" script="remove.lua"/>