Caduceus
Unknown Member
- Joined
- May 10, 2010
- Messages
- 321
- Solutions
- 2
- Reaction score
- 24
just a mess around script, but it's gotten personal. I keep getting: attempt to call method 'teleportTo' (a nil value)
Code:
local destination = Position(1065, 996, 8)
function onUse(cid, item, fromPosition, target, toPosition, isHotkey)
local teleportTo = toPosition
if (target.itemid == 3058 or target.itemid == 3059 or target.itemid == 3065 or target.itemid == 3066) then
target:teleportTo(destination, false)
return true
end
return false
end