Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Scripting

Joined
Mar 8, 2015
Messages
20
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)
 
Conelander
Joined
Oct 30, 2014
Messages
3,610
Here you go bro, a very dank tutorial.

Code:
package productions.celestial.examples;

import com.runemate.game.api.client.ClientUI;
import com.runemate.game.api.hybrid.entities.GameObject;
import com.runemate.game.api.hybrid.local.Camera;
import com.runemate.game.api.hybrid.local.hud.interfaces.Inventory;
import com.runemate.game.api.hybrid.location.Coordinate;
import com.runemate.game.api.hybrid.region.GameObjects;
import com.runemate.game.api.hybrid.region.Players;
import com.runemate.game.api.script.Execution;
import com.runemate.game.api.script.framework.LoopingScript;

import java.awt.*;

public class DankPowerminer extends LoopingScript {

    private final Coordinate snoopDoggsHouse = new Coordinate(420, 69, 0);
    private final Coordinate bluntLocation = new Coordinate(9001, 101, 0);

    private final int smokingAnimation = 666;

    @Override
    public void onStart(String... args) {
        if (!Inventory.contains("Weed"))
        ClientUI.sendTrayNotification("Out of weed, please contact your dealer.", TrayIcon.MessageType.WARNING);
    }

    @Override
    public void onLoop() {
        final GameObject dankRock = GameObjects.newQuery().names("Dank rock").actions("Swing penis at").on(snoopDoggsHouse).results().nearestTo(bluntLocation);
        if (dankRock != null) {
            if (dankRock.isVisible()) {
                if (dankRock.interact("Smoke", "Weed")) {
                    Execution.delayUntil(() -> Players.getLocal().getAnimationId() == smokingAnimation, 2000);
                } else {
                    Camera.passivelyTurnTo(dankRock);
                }
            } else {
                // if not visible, do other dank stuff
            }
        }
    }

}
 
Java Warlord
Joined
Nov 17, 2014
Messages
4,906
Oh and here is a dank manifest tutorial:
Code:
<manifest>
    <main-class>xXx.billy.xXx.minecraft.Main</main-class>
    <name>MLG Miner</name>
    <description>Quickscopes rocks and hits blunt</description>
    <version>4.20</version>
    <compatibility>
        <game-type>RS3</game-type>
        <game-type>COD</game-type>
    </compatibility>
    <categories>
        <category>MONTAGE</category>
    </categories>
    <!--Required to publish on the bot store-->
    <internal-id>Miner</internal-id>
    <!--The rest are optional-->
    <open-source>false</open-source>
    <hidden>false</hidden>
    <access>illuminati</access>
    <resources>
        <resource>xXx.billy.xXx.resources.intervention.mlg</resource>
    </resources>
</manifest>

subscribe for more letsplay
 
Conelander
Joined
Oct 30, 2014
Messages
3,610
Oh and here is a dank manifest tutorial:
Code:
<manifest>
    <main-class>xXx.billy.xXx.minecraft.Main</main-class>
    <name>MLG Miner</name>
    <description>Quickscopes rocks and hits blunt</description>
    <version>4.20</version>
    <compatibility>
        <game-type>RS3</game-type>
        <game-type>COD</game-type>
    </compatibility>
    <categories>
        <category>MONTAGE</category>
    </categories>
    <!--Required to publish on the bot store-->
    <internal-id>Miner</internal-id>
    <!--The rest are optional-->
    <open-source>false</open-source>
    <hidden>false</hidden>
    <access>illuminati</access>
    <resources>
        <resource>xXx.billy.xXx.resources.intervention.mlg</resource>
    </resources>
</manifest>
LMAO
 
Joined
Mar 8, 2015
Messages
20
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.
 
Conelander
Joined
Oct 30, 2014
Messages
3,610
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.
Uh, it wasn't trying to put you down, we were just having some fun. It's a pretty decent skeleton for a beginner.
 
Top