mirror of
https://github.com/2006-Scape/Parabot-317-API-Minified.git
synced 2026-07-03 00:38:00 +00:00
Fixed skills indexes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package org.rev317.min;
|
||||
|
||||
import org.parabot.core.Context;
|
||||
import org.parabot.core.Core;
|
||||
import org.parabot.core.Directories;
|
||||
import org.parabot.core.asm.ASMClassLoader;
|
||||
import org.parabot.core.asm.adapters.AddInterfaceAdapter;
|
||||
@@ -22,10 +23,11 @@ import java.io.File;
|
||||
import java.net.URL;
|
||||
|
||||
/**
|
||||
* @author Everel, Paradox
|
||||
* @author Everel, JKetelaar
|
||||
*/
|
||||
@ServerManifest(author = "Everel & Paradox", name = "Server name here", type = Type.INJECTION, version = 2.1)
|
||||
@ServerManifest(author = "Everel & JKetelaar", name = "Server name here", type = Type.INJECTION, version = 2.1)
|
||||
public class Loader extends ServerProvider {
|
||||
private boolean extended = true;
|
||||
//private HookFile hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getExtendedHookFile(), HookFile.TYPE_XML);
|
||||
//private HookFile hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
||||
|
||||
@@ -70,9 +72,11 @@ public class Loader extends ServerProvider {
|
||||
try {
|
||||
super.injectHooks();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
//this.hookFile = new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
||||
//super.injectHooks();
|
||||
if (Core.inVerboseMode()){
|
||||
e.printStackTrace();
|
||||
}
|
||||
this.extended = false;
|
||||
super.injectHooks();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -84,7 +88,11 @@ public class Loader extends ServerProvider {
|
||||
|
||||
@Override
|
||||
public HookFile getHookFile() {
|
||||
return new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
||||
if (this.extended){
|
||||
return new HookFile(Context.getInstance().getServerProviderInfo().getExtendedHookFile(), HookFile.TYPE_XML);
|
||||
}else{
|
||||
return new HookFile(Context.getInstance().getServerProviderInfo().getHookFile(), HookFile.TYPE_XML);
|
||||
}
|
||||
}
|
||||
|
||||
public void unloadScript(Script script) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package org.rev317.min.api.methods;
|
||||
import org.rev317.min.Loader;
|
||||
|
||||
/**
|
||||
* @author Everel
|
||||
* @author Everel, JKetelaar
|
||||
*/
|
||||
public class Game {
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import org.rev317.min.Loader;
|
||||
*/
|
||||
public enum Skill {
|
||||
|
||||
ATTACK, DEFENSE, STRENGTH, HITPOINTS, CONSTITUTION, RANGE, PRAYER, MAGIC, COOKING, WOODCUTTING, FLETCHING, FISHING, FIREMAKING, CRAFTING, SMITHING, MINING, HERBLORE, HERBLAW, AGILITY, THIEVING, SLAYER, FARMING, RUNECRAFTING, HUNTER, CONSTRUCTION, SUMMONING, DUNGEONEERING;
|
||||
ATTACK, DEFENSE, STRENGTH, HITPOINTS, RANGE, PRAYER, MAGIC, COOKING, WOODCUTTING, FLETCHING, FISHING, FIREMAKING, CRAFTING, SMITHING, MINING, HERBLORE, AGILITY, THIEVING, SLAYER, FARMING, RUNECRAFTING, CONSTRUCTION, HUNTER, SUMMONING, DUNGEONEERING;
|
||||
|
||||
private static final int[] EXPERIENCE = {0, 0, 83, 174, 276, 388, 512,
|
||||
650, 801, 969, 1154, 1358, 1584, 1833, 2107, 2411, 2746, 3115,
|
||||
|
||||
Reference in New Issue
Block a user