View Full Version : how to add "ignore if party member" to this script?
jollebollen
02-27-2016, 05:53 PM
I want to add that if the guy who is attacking me is in my party it won't close the client :)
Is it possible to this script?
Happy weekend and thanks!
BattleMessageProxy.OnReceive('pk_message', function(proxy, message)
damage, creature = string.match(message, 'You lose (%d+) %a+ due to an attack by (.+).')
if Creature.New(creature):isPlayer() then
Self.Say("utamo vita")
wait(300,500)
os.exit()
end
end)
Jontor
02-27-2016, 10:14 PM
jollebollen
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)
Added party member checker & it makes sure you casted utamo vita
jollebollen
03-04-2016, 08:42 AM
jollebollen
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)
Added party member checker & it makes sure you casted utamo vita
I love you :)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.