president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Hi everyone, the main idea of the code below is, if is action 2684 then will open the door, but I'm getting a error with it:
Other bug:
http://pastebin.com/nF5qQ6wy
Thanks.
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if(item.actionid == 2684) then
local targetId = target:getId()
if isInArray(openSpecialDoors, targetId) or isInArray(questDoors, targetId) or isInArray(levelDoors, targetId) then
local itemId = item:getId()
item:transform(itemId + 1)
player:teleportTo(toPosition, true)
end
end
return true
end
Other bug:
http://pastebin.com/nF5qQ6wy
Thanks.
Last edited: