Hi,
As you can see I am havin' some problems with my teleport script.
The thing is, that this script worked before(even without changes) but now it just stoped work.
Anyone who have any ide what's wrong?
As you can see I am havin' some problems with my teleport script.
The thing is, that this script worked before(even without changes) but now it just stoped work.
Code:
local nPos = {
x = 9977,
y = 10003,
z = 7
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 1000 and item.id == 1445 then
doPlayerSetTown(cid, 1)
doTeleportThing(cid, nPos, TRUE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
doSendAnimatedText(nPos, 'You are now living in Zergius!', TEXTCOLOR_GOLD)
end
return TRUE
end
Anyone who have any ide what's wrong?