Advertisement
poxipox

Untitled

Dec 9th, 2023
667
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. local configQuest = { -- configQuest.mission[1].storage
  2.     mission = {
  3.         [50002] = { -- actionID
  4.             storage = 50000,
  5.             IDstorage = 2,
  6.             text = "Nie znalazles wszystkich dzwigni, wracaj!",
  7.         },
  8.     },
  9. }  
  10.  
  11.  
  12. function onStepIn(cid, item, pos, fromPos)
  13.  
  14.     if isPlayer(cid) ~= TRUE then
  15.         return true
  16.     end
  17.  
  18.     local misionId = configQuest.mission[item.actionid]
  19.     if misionId then
  20.         if getPlayerStorageValue(cid, misionId.storage) == misionId.IDstorage then
  21.             doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Hell Mission: ")
  22.         else
  23.             doTeleportThing(cid, fromPos, true)
  24.             doPlayerSendCancel(cid, misionId.text)
  25.             return true
  26.         end
  27.     end
  28.     return true
  29. end
  30.  
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement