paulvzla
New Member
- Joined
- Jun 20, 2015
- Messages
- 23
- Reaction score
- 4
Hello people im trying to get this script working basically its an X item used on another X item then the player gets teleported
Lua:
local piedra= Action()
function piedra.onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 7761 then
if target.itemid == 7518 then
player:teleportTo({x = 32423, y = 32448, z = 7})
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
return true
end
end
end
piedra:id(7761)
piedra:register()