runelite-client: add mage training arena plugin

This commit is contained in:
Jasper Ketelaar
2018-06-04 22:54:29 +02:00
committed by Adam
parent 7d107445c8
commit b7b8fc85fb
22 changed files with 1993 additions and 2 deletions

View File

@@ -226,4 +226,11 @@ public interface Actor extends Renderable
* @return the world area
*/
WorldArea getWorldArea();
/**
* Gets the overhead text that is displayed above the actor
*
* @return the overhead text
*/
String getOverhead();
}

View File

@@ -6221,6 +6221,7 @@ public final class NpcID
public static final int GALLOW = 6775;
public static final int MAN_6776 = 6776;
public static final int MAZE_GUARDIAN = 6777;
public static final int MAZE_GUARDIAN_MOVING = 6778;
public static final int MAZE_GUARDIAN_6779 = 6779;
public static final int PILIAR = 6780;
public static final int SHAYDA = 6781;

View File

@@ -34,6 +34,8 @@ public class ProjectileID
public static final int CANNONBALL = 53;
public static final int GRANITE_CANNONBALL = 1443;
public static final int TELEKINETIC_SPELL = 143;
public static final int LIZARDMAN_SHAMAN_AOE = 1293;
public static final int CRAZY_ARCHAEOLOGIST_AOE = 1260;
public static final int ICE_DEMON_RANGED_AOE = 1324;

View File

@@ -24,6 +24,8 @@
*/
package net.runelite.api.coords;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Predicate;
import lombok.Getter;
import net.runelite.api.Client;
@@ -643,4 +645,23 @@ public class WorldArea
{
return new WorldPoint(x, y, plane);
}
/**
* Accumulates all the WorldPoints that this WorldArea contains and returns them as a list
*
* @return Returns the WorldPoints in this WorldArea
*/
public List<WorldPoint> toWorldPointList()
{
List<WorldPoint> list = new ArrayList<>(width * height);
for (int x = 0; x < width; x++)
{
for (int y = 0; y < height; y++)
{
list.add(new WorldPoint(getX() + x, getY() + y, getPlane()));
}
}
return list;
}
}

View File

@@ -96,6 +96,10 @@ public class WidgetID
public static final int KINGDOM_GROUP_ID = 392;
public static final int BARROWS_GROUP_ID = 24;
public static final int BLAST_MINE_GROUP_ID = 598;
public static final int MTA_ALCHEMY_GROUP_ID = 194;
public static final int MTA_ENCHANTMENT_GROUP_ID = 195;
public static final int MTA_GRAVEYARD_GROUP_ID = 196;
public static final int MTA_TELEKINETIC_GROUP_ID = 198;
static class WorldMap
{
@@ -507,4 +511,10 @@ public class WidgetID
static final int BARROWS_POTENTIAL = 9;
static final int BARROWS_REWARD_INVENTORY = 3;
}
static class MTA
{
static final int BONUS_COMPONENT = 7;
static final int BONUS_TEXT_COMPONENT = 12;
}
}

View File

@@ -327,8 +327,11 @@ public enum WidgetInfo
BARROWS_BROTHERS(WidgetID.BARROWS_GROUP_ID, WidgetID.Barrows.BARROWS_BROTHERS),
BARROWS_POTENTIAL(WidgetID.BARROWS_GROUP_ID, WidgetID.Barrows.BARROWS_POTENTIAL),
BARROWS_REWARD_INVENTORY(WidgetID.BARROWS_REWARD_GROUP_ID, WidgetID.Barrows.BARROWS_REWARD_INVENTORY),
BLAST_MINE(WidgetID.BLAST_MINE_GROUP_ID, 0);
BLAST_MINE(WidgetID.BLAST_MINE_GROUP_ID, 0),
MTA_ENCHANTMENT_BONUS_TEXT(WidgetID.MTA_ENCHANTMENT_GROUP_ID, WidgetID.MTA.BONUS_TEXT_COMPONENT),
MTA_ENCHANTMENT_BONUS(WidgetID.MTA_ENCHANTMENT_GROUP_ID, WidgetID.MTA.BONUS_COMPONENT);
private final int groupId;
private final int childId;