Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local configQuest = { -- configQuest.mission[1].storage
- mission = {
- [50002] = { -- actionID
- storage = 50000,
- IDstorage = 2,
- text = "Nie znalazles wszystkich dzwigni, wracaj!",
- },
- },
- }
- function onStepIn(cid, item, pos, fromPos)
- if isPlayer(cid) ~= TRUE then
- return true
- end
- local misionId = configQuest.mission[item.actionid]
- if misionId then
- if getPlayerStorageValue(cid, misionId.storage) == misionId.IDstorage then
- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Hell Mission: ")
- else
- doTeleportThing(cid, fromPos, true)
- doPlayerSendCancel(cid, misionId.text)
- return true
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement