Code:
BattleMessageProxy.OnReceive('pk_message', function(proxy, message)
local damage, creature = string.match(message, 'You lose (%d+) %a+ due to an attack by (.+).')
if Creature.New(creature):isPlayer() and not Creature.New(creature):isPartyMember() then
while (not Self.isManaShielded()) do
Self.Say("utamo vita")
wait(300, 500)
end
os.exit()
end
end)