1package com.runehive.content.bot;
3import com.runehive.Config;
4import com.runehive.content.bot.botclass.BotClass;
5import com.runehive.content.bot.objective.BotObjective;
6import com.runehive.content.consume.PotionData;
7import com.runehive.content.skill.impl.magic.Spellbook;
8import com.runehive.content.skill.impl.magic.teleport.Teleportation;
9import com.runehive.content.skill.impl.magic.teleport.TeleportationData;
10import com.runehive.content.teleport.TeleportTablet;
11import com.runehive.game.Animation;
12import com.runehive.game.UpdatePriority;
13import com.runehive.game.event.impl.ItemClickEvent;
14import com.runehive.game.world.World;
15import com.runehive.game.world.entity.combat.strategy.player.special.CombatSpecial;
16import com.runehive.game.world.entity.mob.Mob;
17import com.runehive.game.world.entity.mob.player.Player;
18import com.runehive.game.world.entity.skill.Skill;
19import com.runehive.game.world.items.Item;
20import com.runehive.util.Utility;
22import java.util.concurrent.atomic.AtomicInteger;
30 public static final AtomicInteger
BOT_COUNT =
new AtomicInteger(0);
56 settings.acceptAid =
false;
57 settings.autoRetaliate =
true;
66 settings.lockExperience =
true;
144 if (replace.
getId() == 229) {
173 if (defender.
getCombat().isUnderAttack() && !defender.
getCombat().isUnderAttackBy(
this)) {
210 || (
opponent.getCombat().isUnderAttack() && !
opponent.getCombat().isUnderAttackBy(
this))) {
The class that contains setting-related constants for the server.
static final Position DEFAULT_POSITION
The default, i.e.
Holds all the constants used by bot.
static final String[] DEATH_MESSAGES
Array of all the possible death message.
static final Appearance APPEARANCE
The default bot appearance.
static String nameGenerator()
Generates a random bot named based on the available names.
static final PlayerTitle TITLE
The default bot title.
void loop(int ticks, Runnable action)
void schedule(int ticks, Runnable action)
void register()
Registers an entity to the World.
void retaliate(Player defender)
void unregister()
Unregisters an entity from the World.
void pot(Mob opponent, ItemClickEvent event, PotionData potion)
static final AtomicInteger BOT_COUNT
int statBoostersRemaining
Handles a player teleporting.
static boolean teleport(Player player, Position position)
Class that models a single animation used by an entity.
Represents the game world.
static void cancelTask(Object attachment)
static MobList< Player > getPlayers()
void setVisible(boolean visible)
void setRegistered(boolean registered)
final boolean isRegistered()
Entity destroy()
Destroys this entity.
void setPosition(Position position)
MobAnimation mobAnimation
final SkillManager skills
void speak(String forceChat)
Sets the mob's forced chat.
void animate(int animation)
void move(Position position)
Moves the mob to a set position.
final Inventory inventory
final Equipment equipment
final AtomicInteger teleblockTimer
Combat< Player > getCombat()
The combat of the mob.
final PlayerAssistant playerAssistant
void setSpecialActivated(boolean activated)
Represents a trainable and usable skill.
static final int PRAYER
The prayer skill id.
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
Handles miscellaneous methods.
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
The enumerated type managing consumable potion types.
abstract void onEffect(Player player)
The method executed when this potion type activated.
static Item getReplacementItem(Item item)
Retrieves the replacement item for item.
boolean canDrink(Player player)
The method which determines if the player can drink the potion.
The in-game spellbooks for players.
Created by Daniel on 2018-02-07.
Represents different priorities for updating.
The enumerated type whose elements represent the combat special attacks.
static void restore(Player player, int amount)
Restores the special bar for player.