Advertisement
poxipox

Untitled

Apr 28th, 2024
896
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.45 KB | None | 0 0
  1.     if(isInArray(specialDoors, item.itemid)) then
  2.    
  3.         if (item.actionid == 200 and getPlayerRebornLvl(cid) > 0) then
  4.             doorEnter(cid, item, toPosition)
  5.  
  6.         elseif(item.actionid == 100 or (item.actionid ~= 0 and getPlayerStorageValue(cid, item.actionid) > 0)) then
  7.             doorEnter(cid, item, toPosition)
  8.         else
  9.             doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, tr('The door seems to be sealed against unwanted intruders.'))
  10.         end
  11.  
  12.         return true
  13.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement