povedijah
Member
- Joined
- Jan 11, 2010
- Messages
- 93
- Reaction score
- 6
Hello, im working on a project of roxor, I tring to update it to 10.77 with tfs 1.0, but I need some help with that script.
The script works like when you touch an statue the monster of (creature1pos) go to (ncreature1pos).
There is no error in console, and the statue says to you the message "No Monsters To Teleport!!"
I think it needs to be updated to 1.0 functions.
The script is from Roxor 8.62 of Ghost.
Thank you in advance.
The script works like when you touch an statue the monster of (creature1pos) go to (ncreature1pos).
There is no error in console, and the statue says to you the message "No Monsters To Teleport!!"
I think it needs to be updated to 1.0 functions.
The script is from Roxor 8.62 of Ghost.
Thank you in advance.
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.uid == 1035 then
creature1pos = {x=811, y=625, z=7, stackpos=253}
creature1 = getThingfromPos(creature1pos)
if creature1.itemid > 0 then
ncreature1pos = {x=811, y=627, z=7}
doSendMagicEffect(creature1pos,2)
doTeleportThing(creature1.uid,ncreature1pos)
doSendMagicEffect(ncreature1pos,10)
doCreatureSay(cid, "Here you are!", TALKTYPE_ORANGE_1)
else
doCreatureSay(cid, "No Monsters To Teleport!!", TALKTYPE_ORANGE_1)
end
end
end