PDA

View Full Version : x log if getting pk'd



jollebollen
12-12-2015, 05:39 AM
possible to create a script like this? good if ur 100% afk ;) maybee make utamo then x log would be awesome :P

jollebollen
12-13-2015, 04:45 AM
this is how it looks likee on a different bot, do you know how to edit it for xenobot?


auto(200)
if $pattacker.id ~= 0 and $mp > 100 and cancastspell("utamo vita") then
cast("utamo vita")
waitping()
closeclient()
wait(500,800)
end

viser14
12-13-2015, 05:56 AM
i don't know if there is a better way, but what i've used :


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
os.exit()
end
end)

jollebollen
12-14-2015, 11:32 AM
i don't know if there is a better way, but what i've used :

nice man thanks any help is very appreciated! now i just need to add utamo vita before ;D you dont know how to add it right? =)

jollebollen
12-18-2015, 06:30 AM
someone? ;)

seba2632
12-18-2015, 07:33 AM
If his script works, this should add the utamo vita part.


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)

jollebollen
12-22-2015, 01:40 AM
If his script works, this should add the utamo vita part.


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)

Thank you very much I will try it out tomorrow!!! I've been waiting so long for someone to help me :D!!!!!!!