Jump to content

BotScaper

Members
  • Posts

    14
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by BotScaper

  1. 36 minutes ago, Prolax said:

    - Check if npc is visible

    - Check if npc not is null

    - Check if myplayer not in combat

    - Check if myplayer not interacting

    That should be it, just look in the API for the methods.

    if(kurask != null && !players.myPlayer().isUnderAttack()||!players.myPlayer().isAnimating()||kurask.isVisible()){

  2. 29 minutes ago, Apaec said:

    You can more or less use the tea thiever skeleton as a starting point, however it may help you to look at some complete scripts, so i'd recommend browsing the combat section of the local scripts sub-forum and downloading some of the scripts there. Then you can decompile some of the jars, and provided they are not obfuscated you should get a rough idea of what the source code is! :) There should be a bunch of free java decompilers (even online ones) available online :)

    ~apa

    Could I PM you a small script to see if im getting onto the right start, I tried using lists to define which items to pick up and which food to eat

  3. So I took the skeleton from the topic in tutorials and I wanted to know what I have to do to make my bot eat under a certain hp

    This is the snippet of code.

    
    
        	NPC kurask = npcs.closest("Kurask");
            if(kurask != null){
                kurask.interact("Attack");
                getGroundItems().closest(loot).interact("Take");
               if (getSkills().getDynamic(Skill.HITPOINTS) > random(20,getSkills().getStatic(Skill.HITPOINTS)-22)){
        	
            	

    Also if you know a formula that works well for calculating what hp to eat at I would love to know.

×
×
  • Create New...