SHOW:
|
|
- or go back to the newest paste.
| 1 | function onDeath(cid, corpse, killer) | |
| 2 | ||
| 3 | local monstName = "Demon" -- nome do monstro | |
| 4 | if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then | |
| 5 | doCreatureSay(cid, "Você ganhou acesso o prêmio da Quest.", TALKTYPE_ORANGE_1) | |
| 6 | if isInParty(killer[1]) == true then | |
| 7 | ||
| 8 | local players = getPartyMembers(getPartyLeader(killer[1])) | |
| 9 | ||
| 10 | for i, k in ipairs(players) do | |
| 11 | - | setPlayerStorageValue(k, 11543, 1) |
| 11 | + | setPlayerStorageValue(k, 11540, 1) |
| 12 | end | |
| 13 | else | |
| 14 | - | setPlayerStorageValue(killer[1], 11543, 1) |
| 14 | + | setPlayerStorageValue(killer[1], 11549, 1) |
| 15 | end | |
| 16 | end | |
| 17 | return true | |
| 18 | end |