nokia_.
Member
- Joined
- Sep 16, 2010
- Messages
- 109
- Reaction score
- 5
Hello everybody, I would like if someone could help me to develop a script that: when he kills a monster he is born two and when you kill one of these two is born one, wholly 15, when it eliminated the last monster it from the storage to the player who gave the last hit, I thank now. TFS 0.4
Code:
local storG = 5659
function onDeath(cid, corpse, killer)
if (getCreatureName(cid) == "Aegis") and (getStorage(storG) <= 0) then
doSetStorage(storG, 1)
doCreateMonster("Aegis", getCreaturePosition(cid))
doCreateMonster("Aegis", getCreaturePosition(cid))
elseif (getCreatureName(cid) == "Aegis") and (getStorage(storG) == 1) then
doCreateMonster("Aegis", getCreaturePosition(cid))
elseif (getCreatureName(cid) == "Aegis") and (getStorage(storG) == 2) then
setPlayerStorageValue(killer[1], 13343, 1)
doPlayerSendTextMessage(killer[1], MESSAGE_STATUS_WARNING, "Você absorveu a técnica Aegis The Imortal.")
doBroadcastMessage("O jogador "..getPlayerName(killer[1]).." absorveu a special skill Aegis The Imortal ao desferir o último golpe no BOSS Aegis.")
doSendMagicEffect(getPlayerPosition(killer[1]), 65)
aegisEffect(killer[1])
end
return true
end
Last edited: