1package com.runehive.content.skill.impl.thieving;
3import com.runehive.Config;
4import com.runehive.game.Animation;
5import com.runehive.game.action.Action;
6import com.runehive.game.action.policy.WalkablePolicy;
7import com.runehive.game.world.entity.combat.hit.Hit;
8import com.runehive.game.world.entity.mob.data.LockType;
9import com.runehive.game.world.entity.mob.npc.Npc;
10import com.runehive.game.world.entity.mob.player.Player;
11import com.runehive.game.world.entity.skill.Skill;
12import com.runehive.game.world.position.Area;
13import com.runehive.net.packet.out.SendMessage;
14import com.runehive.util.Utility;
39 return (
int) Math.floor((f2 + f1) / 2);
48 npc.face(
npc.faceDirection);
50 npc.speak(
"What do you think you're doing?");
51 getMob().action.clearNonWalkableActions();
69 return "Thieving pickpocket";
The class that contains setting-related constants for the server.
static final double THIEVING_MODIFICATION
The experience modification for thieving.
int failureRate(Player player)
The failure rate for pickpocketing.
PickpocketAction(Player player, Npc npc, PickpocketData pickpocket)
Constructs a new PickpocketData.
String getName()
Gets the name of this action.
final PickpocketData pickpocket
The pickpocket data.
void execute()
A function representing the unit of work that will be carried out.
WalkablePolicy getWalkablePolicy()
Gets the WalkablePolicy of this action.
final Npc npc
The npc being pickpocketed.
boolean prioritized()
Determines if this action is prioritized.
Class that models a single animation used by an entity.
T getMob()
Gets the player.
Action(T mob, int delay, boolean instant)
Creates a new Action randomevent.
synchronized final void cancel()
Cancels all subsequent executions.
A Hit object holds the damage amount and hitsplat data.
final SkillManager skills
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
Represents a trainable and usable skill.
static final int THIEVING
The thieving skill id.
int getMaxLevel(int id)
Gets the highest possible level of a skill.
Handles checking if mobs are in a certain area.
static boolean inRegularDonatorZone(Interactable entity)
static boolean inSuperDonatorZone(Interactable entity)
The OutgoingPacket that sends a message to a Players chatbox in the client.
Handles miscellaneous methods.
static int random(int bound)
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
Holds all the data for pickpocketing Npcs.
A queue policy determines whether the action can occur while walking.
NON_WALKABLE
This indicates actions cannot occur while walking.
Holds all the lock types.