mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-07 16:49:11 +00:00
Fixed #currentLevel
This commit is contained in:
@@ -26,7 +26,8 @@ import java.net.URL;
|
|||||||
*/
|
*/
|
||||||
@ServerManifest(author = "Everel & Paradox", name = "Server name here", type = Type.INJECTION, version = 2.1)
|
@ServerManifest(author = "Everel & Paradox", name = "Server name here", type = Type.INJECTION, version = 2.1)
|
||||||
public class Loader extends ServerProvider {
|
public class Loader extends ServerProvider {
|
||||||
private HookFile hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getExtendedHookFile(), HookFile.TYPE_XML);
|
//private HookFile hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getExtendedHookFile(), HookFile.TYPE_XML);
|
||||||
|
//private HookFile hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
||||||
|
|
||||||
public static Client getClient() {
|
public static Client getClient() {
|
||||||
return (Client) Context.getInstance().getClient();
|
return (Client) Context.getInstance().getClient();
|
||||||
@@ -70,8 +71,8 @@ public class Loader extends ServerProvider {
|
|||||||
super.injectHooks();
|
super.injectHooks();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
this.hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
//this.hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
||||||
super.injectHooks();
|
//super.injectHooks();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,7 +84,7 @@ public class Loader extends ServerProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HookFile getHookFile() {
|
public HookFile getHookFile() {
|
||||||
return this.hookFile;
|
return new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void unloadScript(Script script) {
|
public void unloadScript(Script script) {
|
||||||
|
|||||||
@@ -47,5 +47,5 @@ public interface Client {
|
|||||||
|
|
||||||
public void doAction(int i);
|
public void doAction(int i);
|
||||||
|
|
||||||
|
public int[] getCurrentStats();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,8 +56,9 @@ public enum Skill {
|
|||||||
* @return the current skill level. Done by Bears
|
* @return the current skill level. Done by Bears
|
||||||
*/
|
*/
|
||||||
public static final int getCurrentLevel(int index) {
|
public static final int getCurrentLevel(int index) {
|
||||||
|
return Loader.getClient().getCurrentStats()[index];
|
||||||
//return Loader.getClient().getCurrentStats()[index];
|
//return Loader.getClient().getCurrentStats()[index];
|
||||||
return getRealLevel(index); //TODO fix this method, it invokes a method not in the client accessor.
|
//return getRealLevel(index); //TODO fix this method, it invokes a method not in the client accessor.
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user