Gandzan
New Member
- Joined
- Dec 4, 2009
- Messages
- 12
- Reaction score
- 0
I got problem, i need script wchich teleporting me lower floor when i use pick on this hole, but this script work when i just click on this hole without pick. =/ I need use pick to it and i dont know what do for this.
Code:
local t = {
[60001] = {x=10108, y=10236, z=10},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local tmp = getThingPos(cid)
doTeleportThing(cid, t[item.uid])
doSendMagicEffect(tmp, CONST_ME_TELEPORT)
doSendMagicEffect(t[item.uid], CONST_ME_TELEPORT)
return true
end