Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onStepIn(cid, item, frompos, item2, topos)
- local creature = Creature(cid)
- if creature ~= nil then
- if creature:isMonster() then
- if creature:getName() == "Gnome Pack Crawler" then
- if creature:getTarget() ~= nil and creature:getTarget():isPlayer() then
- local player = Player(creature:getTarget())
- local storage = 58451
- if player:getStorageValue(storage) > os.time() then
- return true
- end
- if player:getStorageValue(58450) < 0 then
- return true
- end
- player:setStorageValue(58450, player:getStorageValue(58450) + 1)
- if (player:getStorageValue(58450) == 5) then
- player:setStorageValue(storage, os.time() + 4 * 60 * 60)
- player:sendTextMessage(19, "You have rescued enought lost gnomes and gnome pack crawlers, report your mission to Gnomus.")
- end
- end
- creature:remove()
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement