[Tribot] Player.getRSPlayer().isInCombat()

Discussion in 'RuneScape 2007 Cheating' started by i jamie i, May 17, 2013.

[Tribot] Player.getRSPlayer().isInCombat()
  1. Unread #1 - May 17, 2013 at 9:02 PM
  2. i jamie i
    Joined:
    Nov 1, 2008
    Posts:
    258
    Referrals:
    0
    Sythe Gold:
    0

    i jamie i Forum Addict

    [Tribot] Player.getRSPlayer().isInCombat()

    I am new to java (but not new to programming), and thought I might as well try to make some simple tribot scripts.
    Testing the isInCombat method just returns false every time, no matter if my character is in combat. I can't think why this wouldn't be working - is it broken or am I missing something really obvious?
    Thanks.
     
  3. Unread #2 - May 17, 2013 at 9:39 PM
  4. Usa
    Joined:
    Jun 8, 2006
    Posts:
    1,666
    Referrals:
    129
    Sythe Gold:
    714
    Wait, do you not have an Archer rank? (2) Potamus

    Usa The one and only.
    $200 USD Donor

    [Tribot] Player.getRSPlayer().isInCombat()

    Code:
    			if (Player.getRSPlayer().getInteractingCharacter() != null
    					&& Player.getRSPlayer().getInteractingCharacter()
    							.getCombatCycle() > 0) {
    Try this snipplet instead.
     
  5. Unread #3 - May 18, 2013 at 5:45 AM
  6. i jamie i
    Joined:
    Nov 1, 2008
    Posts:
    258
    Referrals:
    0
    Sythe Gold:
    0

    i jamie i Forum Addict

    [Tribot] Player.getRSPlayer().isInCombat()

    Thanks, what does getCombatCycle() do?
     
  7. Unread #4 - May 18, 2013 at 10:55 AM
  8. Usa
    Joined:
    Jun 8, 2006
    Posts:
    1,666
    Referrals:
    129
    Sythe Gold:
    714
    Wait, do you not have an Archer rank? (2) Potamus

    Usa The one and only.
    $200 USD Donor

    [Tribot] Player.getRSPlayer().isInCombat()

    Gets your combat cycle, if you are trading hits with another NPC it will return an integer of your combat cycle with that NPC.
     
< Can't register on tribot? | which bot are people using to train in barrows tunnels? >

Users viewing this thread
1 guest


 
 
Adblock breaks this site