Andreselos
Member
- Joined
- Feb 9, 2015
- Messages
- 36
- Reaction score
- 7
Hello guys, i need to convert this code:
from 1.1 to 1.0 someone help me?
thanks in advance.
up
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if comparePos(player:getPosition(), Position(33614, 32394, 11)) then --change here the position
if target.itemid == 22638 then --change here the id of the target
item:remove(22604) -- change here the id of the key
end
player:teleportTo(Position(33533, 32414, 12), false)
end
return true
end
if comparePos(player:getPosition(), Position(33614, 32394, 11)) then --change here the position
if target.itemid == 22638 then --change here the id of the target
item:remove(22604) -- change here the id of the key
end
player:teleportTo(Position(33533, 32414, 12), false)
end
return true
end
from 1.1 to 1.0 someone help me?
thanks in advance.
up
Last edited by a moderator: