Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- <event type="death" name="tpMonsterPoseidon" script="tpMonsterPoseidon.lua" />
- ]]
- function onDeath(creature, corpse, killer, mostDamage, unjustified, mostDamage_unjustified)
- if creature:isPlayer() then
- return true
- end
- if creature:getName():lower():find('minion of azulon') or creature:getName():lower():find('greenash') then
- killer:setStorageValue(4325, -1)
- local stgmax = math.max(killer:getStorageValue(4327), 0)
- killer:setStorageValue(4327, stgmax + 1)
- if stgmax + 1 == 100 then
- killer:addAchievement()
- end
- else
- -- tem dois dias para entrar no tp
- killer:setStorageValue(4325, os.time() + 2 * 24 * 60 * 60)
- -- nao precisa mais de itens para entrar
- killer:setStorageValue(4326, os.time() + 2 * 24 * 60 * 60)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement