Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function doCreateDummy(cid, position)
- local player = Player(cid)
- if not player then
- return true
- end
- local tile = Tile(position)
- if tile then
- local thing = tile:getTopVisibleThing()
- if thing and isInArray({18226, 18227}, thing.itemid) then
- thing:remove()
- end
- end
- if player:getStorageValue(Storage.BigfootBurden.Shooting) >= 5 then
- player:setStorageValue(Storage.BigfootBurden.QuestLine, 9)
- return
- end
- position:sendMagicEffect(CONST_ME_POFF)
- Game.createItem(math.random(18226, 18227), 1, position)
- addEvent(doCreateDummy, 2 * 1000, cid, position)
- end
- function onStepIn(cid, item, position, fromPosition)
- local player = Player(cid)
- if not player then
- return true
- end
- if player:getStorageValue(Storage.BigfootBurden.QuestLine) ~= 8 then
- player:teleportTo(fromPosition)
- return true
- end
- local playerPosition = player:getPosition()
- player:setStorageValue(Storage.BigfootBurden.Shooting, 0)
- position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
- doCreateDummy(player.uid, Position(playerPosition.x, playerPosition.y - 5, 10))
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement