Imfreezing
Krossa Kapitalismen
Hey otland I got this script, it is suppose to remove a stone when i kill a boss, well it doesn't
here is the script
and yep, i have it registred in the monster and in the creatureevent.xml
Error
:
and
0.4 3777
thank you
here is the script
Code:
local function moveStone(p)
if isPlayer(getThingfromPos(p.stonePosition).uid) == TRUE then
doMoveCreature(cid, 2)
end
doSendMagicEffect(p.stonePosition, 13)
doCreateItem(p.stoneid, 1, p.stonePosition)
end
function onKill(cid, target)
local timeLimit = 1000 * 60 * 2 -- Minutes
local stonePosition = {x=1384, y=1806, z=9, stackpos=1}
local stoneid = 7825
local stone = getTileItemById(stonepos, stoneid)
if stone.uid ~= 0 then
doRemoveItem(stone.uid, 1)
doSendMagicEffect(stonePosition, 13)
addEvent(moveStone, timeLimit, {stonePosition = stonePosition, stoneid = stoneid})
end
return TRUE
end
Error
:
and
0.4 3777
thank you