darkmu
Well-Known Member
Lua:
local storage = 15312
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if(item.uid == 37994) then
if(player:getStorageValue(storage) > 0) then
if(item.itemid == 5105) then
player:teleportTo(toPosition, true)
item:transform(item.itemid + 1)
end
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "The door seems to be sealed against unwanted intruders.")
end
end
return true
end
This way makes it possible for a player who has already made a search to open a door for others to enter, how can I make the character walk 2 sqm?