Ezzz
Developer of Nostalrius and The Violet Project
Hello,
so I'm having problems with this script:
It keeps telling me a message on console;
Thing not found, Player not found, expected an integer value.
rep++
so I'm having problems with this script:
LUA:
function TeleportBack(n)
local Position = getTownTemplePosition(1)
Player:Teleport(n.ad, Position)
Player:SendEffect(n.ad, 10)
Player:SendText(n.ad, 19, "You will be teleported back to town within 10 seconds.")
end
function onUse(cid, item, frompos, item2, topos)
-- Nothing
if (item.actionid == 0) then
Player:SendText(cid, 19, "This scroll is blank.")
Player:SendEffect(cid, 2)
end
-- Teleport Scroll
if (item.actionid == 100) then
Player:SendText(cid, 19, "You will be teleported back to town within 10 seconds.")
local pam = {ad == cid}
addEvent(TeleportBack, 10000, pam)
--local Position = getTownTemplePosition(1)
--Player:Teleport(cid, Position)
--Player:SendEffect(cid, 10)
--doPlayerRemoveItem(cid, 8189, 1)
end
return true
end
It keeps telling me a message on console;
Thing not found, Player not found, expected an integer value.
rep++