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 addStorage = true
- if player:getStorageValue(58451) > os.time() then
- addStorage = false
- end
- if player:getStorageValue(58450) < 0 then
- addStorage = false
- end
- if player:getStorageValue(58450) == 5 then
- addStorage = false
- end
- if addStorage then
- player:setStorageValue(58450, player:getStorageValue(58450) + 1)
- if player:getStorageValue(58450) == 5 then
- player:sendTextMessage(19, "You have rescued enought gnome pack crawlers, report your mission to Gnomus.")
- end
- end
- end
- creature:remove()
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement