Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Buy OSRS Gold

Sell OSRS Gold

Search the Community

Showing results for tags 'fight'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • TRiBot
    • News and Announcements
    • Old School Scripts
    • Help and Guidance
    • Development
    • Bugs and Errors
    • Tutorials
  • Scripters' Forums
    • Scripter Application
  • RuneScape®
    • General
    • Guides/Tutorials
    • Achievements
  • General
    • General
    • Questions
    • Discussions & Debates
    • Introductions
    • Suggestions
    • Feedback
  • The Black Market
    • Disputes
    • Repository Credits
    • Gold Exchange
    • Item Exchange
    • Membership Sales
    • Services
    • Other
    • Middleman Services


  • Getting Started With TRiBot
  • The Best Way To Get Rid Of Termites
  • How to Generate Real Estate Leads Using Twitter
  • A Guide to Landing Pages
  • Dog Grooming in Sydney – 5 steps to finding a grooming salon
  • Cheap RS 2007 Gold for Spring 2020!
  • Logo Design Mistakes- Your Business Should Avoid at All Cost
  • Effective Pest Control Measures
  • В Алматы карантин из-за коронавируса: жизнь в условиях пандемии
  • Preschool Educational Toys, Helping One's Child Prepare For the Future
  • Automating Tribot
  • Payment error
  • Animal Crossing: New Horizons Cuts Player Interest Rates
  • network-security-engineer

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Found 4 results

  1. picocode

    fight cave

    for fight cave and jad
  2. Hi, im new to the fighting algorithm here, but how this fighting algorithm should be done? - Problem: The bot doesnt recognize that the player is fighting and attacks next target straight away Source code: public void execute() { //TODO camera rotation RSNPC[] npc = NPCs.sortByDistance(this.getMyPosition(), this.getFreeNPCS()); if(!Player.getRSPlayer().isInCombat() && !npc[0].isInCombat()) { if(npc.length > 0) { RSNPC target = npc[0]; target.setClickHeight(target.getHeight()); target.click("Attack"); General.sleep(900, 1300); } } else { General.sleep(50,100); } }
  3. Does anyone know about a combat script which I can look at to get some tips or learn something? Just simple but stable including loots. Pastebin link would be nice
  4. I wonder if someone could help me or give me some tips, I`m trying to make a cow killer script with banking just for practice. . . I use WebWalking which seems to work properly if i give it some attempts but i cant manage the clicks on cows properly or the item pick up. . . And the code is just not good at all overall, so i would be happy for some advices =) Heres the code: Heres a pastebin link: http://pastebin.com/wurTTYeh package scripts; import org.tribot.api2007.Banking;import org.tribot.api2007.Combat;import org.tribot.api2007.GroundItems;import org.tribot.api2007.Inventory;import org.tribot.api2007.NPCs;import org.tribot.api2007.Objects;import org.tribot.api2007.Player;import org.tribot.api2007.WebWalking;import org.tribot.api2007.types.RSGroundItem;import org.tribot.api2007.types.RSNPC;import org.tribot.api2007.types.RSObject;import org.tribot.api2007.types.RSTile;import org.tribot.script.Script;import org.tribot.script.ScriptManifest; @ScriptManifest(authors = { "adadad" }, category = "tools", name = "cows")public class walkToBank extends Script {private RSTile t1 = new RSTile(3250,3267);private RSTile t2 = new RSTile(3261,3270);private RSTile safeSpot = new RSTile (3240,3267);private int[] cows = new int[] {2805,2806,2807,2808,2809};private int[] loot = new int[] {526,1739};private int[] stairs = new int[] {16673,16672}; public boolean isInArea(int x1, int x2, int y1, int y2){int x = Player.getPosition().getX();int y = Player.getPosition().getY();if (x<=x1 && x>=x2 && y<=y2 && y>=1)return true;return false;} public boolean bank(){while (true){if (!Banking.isInBank()) WebWalking.walkToBank();if (Banking.isInBank()){Banking.openBank();if (Banking.isBankScreenOpen()){Banking.depositAll();}if (Inventory.isFull())continue;elsereturn true;}sleep(100);}} public void fight(){int fightCount = 0;int pickCount = 0;while (true){while(Combat.getHP()>4){int count = 100;RSNPC[] npcs = NPCs.findNearest(cows);for (RSNPC n : npcs){if (n!=null){if (!n.isInCombat()){while (!Player.getRSPlayer().isInCombat()){n.click("Attack");sleep(100);if (n.isInCombat())break;count--;if(count<=0)break;}}while (Player.getRSPlayer().isInCombat()){if (Combat.getHP()<5){WebWalking.setUseRun(true);WebWalking.walkTo(safeSpot);}}}if (Player.getRSPlayer().getHealth()<5)break;}sleep(500);System.out.println("Kuer skal angripes");}if (!iA()){WebWalking.walkTo(t2);}if (Combat.getHP()<5 || fightCount>=10){fightCount=0;while (!Inventory.isFull() && pickCount<20){pickCount++;RSGroundItem[] plukk = GroundItems.findNearest(loot);for (RSGroundItem i : plukk){if (i!=null){if (i.isClickable()){if (i.getID()==526)i.click("Take Cowhide");if (i.getID()==1739)i.click("Take Bones");sleep(200);}while (Player.getRSPlayer().isMoving())sleep(30);}if (Inventory.isFull())break;}if (Inventory.isFull())break;}}if (Inventory.isFull())break;} } public boolean iA(){return isInArea(3265, 3253,3255,3298);} @Overridepublic void run() {while (true){if (Inventory.isFull()){bank();}if (iA()){System.out.println("Jaaaa, vi er i området");fight();}else {if (Player.getPosition().getPlane()==2){WebWalking.walkTo(new RSTile(3205,3210,2));RSObject[] r = Objects.findNearest(5, stairs);for (RSObject o : r){if (o!=null){o.click("Climb-down");sleep(50);}}}else if (Player.getPosition().getPlane()==1){WebWalking.walkTo(new RSTile(3205,3210,1));RSObject[] r = Objects.findNearest(5, stairs);for (RSObject o : r){if (o!=null){o.click("Climb-down");sleep(50);}}}else if (Player.getPosition().getPlane()==0){WebWalking.walkTo(t1);WebWalking.walkTo(t2);}}sleep(100);}} }
  • Create New...