Git Product home page Git Product logo

parabot-317-api-minified's Introduction

Stories in Ready Build Status

Parabot

Parabot V2.8.1

Links

Website

Download latest version

Compilation

Build the project with the Maven POM file to have all required libraries installed.

Automation

Every stable build is automatically generated from the last commits of the master branch. This will take the version from both the pom.xml and the version in .travis.yml.

The nightly builds are automatically created from the last commits of the development branch. This will take the version from both the pom.xml and the version in .travis.yml, together with the build ID from travis.

Issues

If you've an issues regarding the bot itself, please report them here.

Maven

To add the client as a library, you'll first have to add our repository to your pom.xml:

    <repositories>
        <repository>
            <id>git-parabot</id>
            <name>Parabot's Git based repo</name>
            <url>https://maven.parabot.org/</url>
        </repository>
    </repositories>

Then you'll need to add the dependency:

    <dependencies>
        <dependency>
            <groupId>org.parabot</groupId>
            <artifactId>client</artifactId>
            <version>2.8.1</version>
        </dependency>
    </dependencies>

Labels

Labels are created with GHLabel, whereas the yml is located in the .github directory

parabot-317-api-minified's People

Contributors

alexanderbielen avatar clisprail avatar danihodovic avatar fryslan avatar jketelaar avatar parnassian avatar sandrocoutinho avatar sexybears avatar shadowrs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

parabot-317-api-minified's Issues

PKHonor Randoms error

java.lang.NullPointerException at org.rev317.min.api.wrappers.NpcDef.getId(NpcDef.java:21) at org.rev317.min.api.methods.Npcs$3.accept(Npcs.java:123) at org.rev317.min.api.methods.Npcs$3.accept(Npcs.java:118) at org.rev317.min.api.methods.Npcs.getNpcs(Npcs.java:51) at org.rev317.min.api.methods.Npcs.getNearest(Npcs.java:118) at org.parabot.randoms.b.H.activate(h:75) at org.parabot.environment.scripts.randoms.RandomHandler.checkAndRun(RandomHandler.java:92) at org.parabot.environment.scripts.Script.run(Script.java:104) at java.lang.Thread.run(Unknown Source) Script stopped/finished, unloading and stopping... Done.

This happen while I was at home, so I assume someone else got the random and when it tried to interact, didn't work.

GetSceneObjects

Unable to use getSceneObjects when plane is not 0 on ikov, throws a null point at at getSceneObjectAtTile

Disable Dialogue Removed...

You used to be able to go to File > Disable Dialogue... Helped a lot of people with slower pc's not lag when using the bot.

Level indexs

The indexs for the levels class are wrong. SUMMONING returns hunter data and HUNTER returns dungeoneering data and so on. Needs to be fixed.

Ikov - isInCombat();

Method does not work.
Tried making one with a field, due to the new update, a lot of fields are blocked and disallowed accessing the field. I cant test it. But i think the field may be "ôâo000".

Second action index parameter

Servers like Grinderscape use a second variable for their index, which is always 0;

this.f(var1, 0);
...
 private void f(int var1, int var2) {
      if(var1 >= 0) {
         int var3 = this.g[var1][var2];
         int var4 = this.h[var1][var2];
         int var5 = this.e[var1][var2];
         int var6 = this.f[var1][var2];

Simply define if there's a second parameter and create the accessor into a 2d array, then read variables like this:

client.getMenuAction1()[index][0] = cmd1;

distanceTo()

If you have two tiles:
Tile A=new Tile(123,123,0);
Tile B= new Tile(123,123,1);

distanceTo() will return a value of '0' because it does not take into account that fact that the tiles are on two planes. This causes huge problems when walking through buildings with multiple floors.

Change output of action debug

It should be possible to toggle the format of the action, whereas it's currently not the format we use in the API.
This should be possible.

Console Spam - OS-Scpae

drop flag 6889 is -1051294242 huf len 58 drop flag 9244 is -1051294242 huf len 58 drop flag 861 is -1051294242 drop flag 1017 is -1051294242 drop flag 4091 is -1051294242 drop flag 12831 is -1051294242 drop flag 4093 is -1051294242
This is when doing nothing.

Debug interfaces

There's currently no way to debug interfaces. Should have an interface such as the reflection explorer.

AbstractMethodError: getLongId

java.lang.AbstractMethodError: pkhonor.C.getLongId()J
    at org.rev317.min.api.wrappers.NpcDef.getLongId(NpcDef.java:54)
    at org.rev317.min.api.wrappers.NpcDef.getId(NpcDef.java:35)
    at org.rev317.min.api.wrappers.NpcDef.getId(NpcDef.java:21)
    at org.rev317.min.api.methods.Npcs$3.accept(Npcs.java:126)
    at org.rev317.min.api.methods.Npcs$3.accept(Npcs.java:120)
    at org.rev317.min.api.methods.Npcs.getNpcs(Npcs.java:53)
    at org.rev317.min.api.methods.Npcs.getNearest(Npcs.java:120)
    at org.parabot.randoms.pkhonor.SandwichLady.getLady(SandwichLady.java:39)
    at org.parabot.randoms.pkhonor.SandwichLady.activate(SandwichLady.java:21)
    at org.parabot.environment.randoms.RandomHandler.checkAndRun(RandomHandler.java:110)
    at org.parabot.environment.scripts.Script.run(Script.java:105)
    at java.lang.Thread.run(Thread.java:745)

.getHealth() for Ikov

The .getHealth() method doesn't work for NPCs or players on ikov. Please fix it because getting the player/npcs health is the only way to really know if they have died.

Item.interact() is wrong

Menu.sendAction(actionId, item.getId() - 1, item.getSlot(), 3214) is the correct way to do things

Remove from final jar

            <exclusions>
                <exclusion>
                    <artifactId>*</artifactId>
                    <groupId>*</groupId>
                </exclusion>
            </exclusions>
            <scope>provided</scope>

SceneObjects issue still

Still not fixed, can't getallsceneobjects when plane != 0. Its because tiles only take a x/y value and a plane/z.

NPC getId long value

It sometimes happens a server has a long value for getId for NPC's.
Then this error will happen:

java.lang.VerifyError: Bad type on operand stack
Exception Details:
  Location:
    b.getNpcs()[Lorg/rev317/min/accessors/Npc; @4: checkcast
  Reason:
    Type integer (current frame, stack[0]) is not assignable to 'java/lang/Object'
  Current Frame:
    bci: @4
    flags: { }
    locals: { 'b' }
    stack: { integer }
  Bytecode:
    0x0000000: 2ab4 094b c01b a4b0                    

	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
	at java.lang.Class.getConstructor0(Class.java:3075)
	at java.lang.Class.newInstance(Class.java:412)
	at org.rev317.min.Loader.fetchApplet(Loader.java:42)
	at org.parabot.core.Context.load(Context.java:181)
	at org.parabot.environment.servers.executers.ServerExecuter$1.run(ServerExecuter.java:28)
	at java.lang.Thread.run(Thread.java:745)

You can temporarly solve this by adding the -noverify argument, but it would be better to solve this program-wise, something like getLongId, whereas the default getId would check if it has a value; if it doesn't, it will take the value from getLongId and return a cast of it.
If value is bigger (because the storage of a long can simply be bigger) throw an Exception.

java.lang.AbstractMethodError: b.isLoggedIn()Z

java.lang.AbstractMethodError: b.isLoggedIn()Z
at strategies.Login$.activate(Login.scala:17)
at org.parabot.environment.scripts.framework.StrategyWorker.execute(Frameworks.java:55)
at org.parabot.environment.scripts.Script.run(Script.java:111)
at java.lang.Thread.run(Thread.java:745)

Ever since the recent Ikov update.

at org.rev317.min.api.wrappers.NpcDef.getId(NpcDef.java:21)

    at org.rev317.min.api.wrappers.NpcDef.getId(NpcDef.java:21)
    at org.rev317.min.api.methods.Npcs$3.accept(Npcs.java:123)
    at org.rev317.min.api.methods.Npcs$3.accept(Npcs.java:118)
    at org.rev317.min.api.methods.Npcs.getNpcs(Npcs.java:51)
    at org.rev317.min.api.methods.Npcs.getNearest(Npcs.java:118)
    at org.parabot.lord.DreamPeng.strategies.Killing.activate(Killing.java:18)
    at org.parabot.environment.scripts.framework.StrategyWorker.execute(Frameworks.java:55)
    at org.parabot.environment.scripts.Script.run(Script.java:112)
    at java.lang.Thread.run(Thread.java:745)

Calling SceneObjects.getAllSceneObjects(); wont work

java.lang.AbstractMethodError: ay.getGroundItem()Lorg/rev317/min/accessors/SceneObjectTile;
at org.rev317.min.api.methods.SceneObjects.getSceneObjectsAtTile(SceneObjects.java:217)
at org.rev317.min.api.methods.SceneObjects.getAllSceneObjects(SceneObjects.java:161)
at org.naksuasd.WriteHelper.WriteHelper.loop(WriteHelper.java:34)
at org.parabot.environment.scripts.framework.Looper.execute(Frameworks.java:32)
at org.parabot.environment.scripts.Script.run(Script.java:111)
at java.lang.Thread.run(Unknown Source)
Script stopped.

IKov - Inventory not working

java.lang.AbstractMethodError: b.getInterfaceCache()[Lorg/rev317/min/accessors/I
nterface; is the error it gives.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.