CheatsBCN
New Member
- Joined
- Mar 6, 2012
- Messages
- 131
- Reaction score
- 1
this is the script im using for making a tp after killing demodras, but when it tryes to remove te tp it says
[02/10/2012 23:47:27] LuaScriptInterface::luaDoRemoveItem(). Item not found
[02/10/2012 23:47:27] stack traceback:
[02/10/2012 23:47:27] [C]: ?
this is the script thanks!!!!!!!!!!!!
[02/10/2012 23:47:27] LuaScriptInterface::luaDoRemoveItem(). Item not found
[02/10/2012 23:47:27] stack traceback:
[02/10/2012 23:47:27] [C]: ?
this is the script thanks!!!!!!!!!!!!
PHP:
function onKill(cid, target, lastHit)
local m = {
["Demodras"] = {
time = 30, -- Seconds
to = { x = 1146, y = 1101, z = 7 }, -- Where Teleport Goes
tp = { x = 1146, y = 1101, z = 6 } -- Where Teleport Creates
}
}
local monster = m[getCreatureName(target)]
local get = getThingfromPos(monster.tp)
if(monster) then
doCreatureSay(cid, "You have " .. monster.time .. " seconds to go downstairs!", TALKTYPE_ORANGE_1)
broadcastMessage("Demodras was killed by " ..getCreatureName(cid).. "!", type)
doCreateTeleport(1387, monster.to, monster.tp)
addEvent(doRemoveItem, (1000*30), get.uid, 1)
end
return true
end