XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 3 of 3

Thread: how to add "ignore if party member" to this script?

  1. #1

    Join Date
    Nov 2012
    Posts
    332
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    how to add "ignore if party member" to this script?

    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!

    Code:
    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)

  2. #2
    Senior Member Jontor's Avatar
    Join Date
    Sep 2014
    Posts
    446
    Mentioned
    51 Post(s)
    Tagged
    1 Thread(s)
    @jollebollen
    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)
    Added party member checker & it makes sure you casted utamo vita

  3. #3

    Join Date
    Nov 2012
    Posts
    332
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Jontor View Post
    @jollebollen
    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)
    Added party member checker & it makes sure you casted utamo vita
    I love you

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •