parabot / parabot-317-api-minified Goto Github PK
View Code? Open in Web Editor NEWA tiny 317 API for Parabot v2
License: GNU General Public License v2.0
A tiny 317 API for Parabot v2
License: GNU General Public License v2.0
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".
We currently load the settings from the API, it's quite a lot of work to manage.
Instead we should have some sort of enum for it.
Current settings: https://gist.github.com/JKetelaar/b2b328dd68fa7f2f4cef
If there's a new server with custom source code, there should be a readme on how to create this.
depositAllExcept in the Bank class spams packets and occasionally causes DCs. The reason for this is even though the ID is added to the ignored ArrayList, the while loop means every 50ms regardless of if it was added or not will try to deposit it until the inventory doesn't contain any more. It moves onto the next item and does the same thing.
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.
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)
System.out.println(Bank.getBankItemIDs());
It returns 'null' and it's set to return null when the Bank isn't open. So the interface must be incorrect for the isOpen method
Tile.walkTo throws ugly error on PkHonor.
Skill.SKILL.getLevel() and #getCurrentLevel() give me this error
http://prntscr.com/9n0xmk
Skill.SKILL.getRealLevel() returns the correct level.
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.
SceneObjects.Options.MINE;
SceneObjects.Options.SMELT;
Title explains it all :P
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.
Doesn't return any levels..
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.
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)
Bank.open Doesn't work. Having to use NPC.Option.Bank.
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.
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.
Old dependencies and repositories are given in the README
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.
Walkto doesn't work.
The hook + parameters. π
java.lang.AbstractMethodError: b.getInterfaceCache()[Lorg/rev317/min/accessors/I
nterface; is the error it gives.
There's currently no way to debug interfaces. Should have an interface such as the reflection explorer.
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;
Still not fixed, can't getallsceneobjects when plane != 0. Its because tiles only take a x/y value and a plane/z.
The indexs for the levels class are wrong. SUMMONING returns hunter data and HUNTER returns dungeoneering data and so on. Needs to be fixed.
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.
This includes things like loading interface IDs from the BDN
Unable to use getSceneObjects when plane is not 0 on ikov, throws a null point at at getSceneObjectAtTile
Menu.sendAction(actionId, item.getId() - 1, item.getSlot(), 3214) is the correct way to do things
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.
All item variables are longs instead of ints, what to do...
<exclusions>
<exclusion>
<artifactId>*</artifactId>
<groupId>*</groupId>
</exclusion>
</exclusions>
<scope>provided</scope>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.