potinho
Advanced OT User
Im trying to put a storage value in door to permit player to enter in quest, but got bugging.
XML
LUA
I try to open with a player with storage, receive message "Calm donw man! Let's go." but door its not opening.
XML
XML:
<action actionid="25125" event="script" value="azerusdoor.lua"/>
LUA
Lua:
function onUse(cid, item, frompos, item2, topos)
local storage = 6677 -- coloque o storage aqui
if getPlayerStorageValue(cid, storage) > 0 then
doCreatureSay(cid, "Calm donw man! Let's go.", TALKTYPE_ORANGE_1)
else
doPlayerSendTextMessage(cid, 22, "The door seems to be sealed against unwanted intruders.")
end
return true
end
I try to open with a player with storage, receive message "Calm donw man! Let's go." but door its not opening.