Scripting

Discussion in 'Programming & Hardware' started by begginer, Apr 14, 2015.

  1. begginer

    Joined:
    Mar 8, 2015
    Messages:
    20
    Likes Received:
    1
    Hello,
    I used a tutorial on how to make intellij available with runemate.

    I know some c# and I used to code for simba.

    I don't know how to make a class or anything, I have seen all the tuts here but no-one can help.

    I just want to make a basic power miner just to start learning this.

    HELP! (I don't know how to name the class)
     
  2. Geashaw

    Joined:
    Jan 8, 2015
    Messages:
    1,393
    Likes Received:
    242
    Are you sure you checked the tutorial section?
     
  3. begginer

    Joined:
    Mar 8, 2015
    Messages:
    20
    Likes Received:
    1
    Yeah i am so sure. I just don't know if I should make a class or project or what?
     
  4. Defeat3d

    Defeat3d Prime Celestial

    Joined:
    Oct 30, 2014
    Messages:
    1,382
    Likes Received:
    592
    Here you go bro, a very dank tutorial.

    Code (Text):
    1. package productions.celestial.examples;
    2.  
    3. import com.runemate.game.api.client.ClientUI;
    4. import com.runemate.game.api.hybrid.entities.GameObject;
    5. import com.runemate.game.api.hybrid.local.Camera;
    6. import com.runemate.game.api.hybrid.local.hud.interfaces.Inventory;
    7. import com.runemate.game.api.hybrid.location.Coordinate;
    8. import com.runemate.game.api.hybrid.region.GameObjects;
    9. import com.runemate.game.api.hybrid.region.Players;
    10. import com.runemate.game.api.script.Execution;
    11. import com.runemate.game.api.script.framework.LoopingScript;
    12.  
    13. import java.awt.*;
    14.  
    15. public class DankPowerminer extends LoopingScript {
    16.  
    17.     private final Coordinate snoopDoggsHouse = new Coordinate(420, 69, 0);
    18.     private final Coordinate bluntLocation = new Coordinate(9001, 101, 0);
    19.  
    20.     private final int smokingAnimation = 666;
    21.  
    22.     @Override
    23.     public void onStart(String... args) {
    24.         if (!Inventory.contains("Weed"))
    25.         ClientUI.sendTrayNotification("Out of weed, please contact your dealer.", TrayIcon.MessageType.WARNING);
    26.     }
    27.  
    28.     @Override
    29.     public void onLoop() {
    30.         final GameObject dankRock = GameObjects.newQuery().names("Dank rock").actions("Swing penis at").on(snoopDoggsHouse).results().nearestTo(bluntLocation);
    31.         if (dankRock != null) {
    32.             if (dankRock.isVisible()) {
    33.                 if (dankRock.interact("Smoke", "Weed")) {
    34.                     Execution.delayUntil(() -> Players.getLocal().getAnimationId() == smokingAnimation, 2000);
    35.                 } else {
    36.                     Camera.passivelyTurnTo(dankRock);
    37.                 }
    38.             } else {
    39.                 // if not visible, do other dank stuff
    40.             }
    41.         }
    42.     }
    43.  
    44. }
    45.  
     
    dog_ likes this.
  5. Savior

    Savior I'm your motherfucking conscience

    Joined:
    Nov 17, 2014
    Messages:
    3,325
    Likes Received:
    1,324
    Oh and here is a dank manifest tutorial:
    Code (Text):
    1. <manifest>
    2.     <main-class>xXx.billy.xXx.minecraft.Main</main-class>
    3.     <name>MLG Miner</name>
    4.     <description>Quickscopes rocks and hits blunt</description>
    5.     <version>4.20</version>
    6.     <compatibility>
    7.         <game-type>RS3</game-type>
    8.         <game-type>COD</game-type>
    9.     </compatibility>
    10.     <categories>
    11.         <category>MONTAGE</category>
    12.     </categories>
    13.     <!--Required to publish on the bot store-->
    14.     <internal-id>Miner</internal-id>
    15.     <!--The rest are optional-->
    16.     <open-source>false</open-source>
    17.     <hidden>false</hidden>
    18.     <access>illuminati</access>
    19.     <resources>
    20.         <resource>xXx.billy.xXx.resources.intervention.mlg</resource>
    21.     </resources>
    22. </manifest>
    subscribe for more letsplay
     
    dog_ and Defeat3d like this.
  6. Defeat3d

    Defeat3d Prime Celestial

    Joined:
    Oct 30, 2014
    Messages:
    1,382
    Likes Received:
    592
    LMAO
     
    dog_ likes this.
  7. begginer

    Joined:
    Mar 8, 2015
    Messages:
    20
    Likes Received:
    1
    Actually just checked this, looking to these people that have a bit knowledge and trying to joke with others isn't a nice thing. Anyway I'll stick to tuts section. Thanks for trying to joke with me.
     
  8. Defeat3d

    Defeat3d Prime Celestial

    Joined:
    Oct 30, 2014
    Messages:
    1,382
    Likes Received:
    592
    Uh, it wasn't trying to put you down, we were just having some fun. It's a pretty decent skeleton for a beginner.
     
    dog_ likes this.
  9. begginer

    Joined:
    Mar 8, 2015
    Messages:
    20
    Likes Received:
    1
    Yeah ofc. I wasn't pointing the finger at you, but that other guy. Anyway thanks a lot!
     
  10. Defeat3d

    Defeat3d Prime Celestial

    Joined:
    Oct 30, 2014
    Messages:
    1,382
    Likes Received:
    592
    What he posted is also a part of a RuneMate bot. Both of us gave you proper skeletons for a simple bot, lol.
     
    dog_ likes this.
  11. SlashnHax

    SlashnHax The Chosen One

    Joined:
    Dec 10, 2014
    Messages:
    2,964
    Likes Received:
    869
  12. begginer

    Joined:
    Mar 8, 2015
    Messages:
    20
    Likes Received:
    1

Share This Page

Loading...