1package com.osroyale.content.skill.impl.thieving;
3import com.osroyale.Config;
4import com.osroyale.game.Animation;
5import com.osroyale.game.action.Action;
6import com.osroyale.game.action.policy.WalkablePolicy;
7import com.osroyale.game.world.entity.combat.hit.Hit;
8import com.osroyale.game.world.entity.mob.data.LockType;
9import com.osroyale.game.world.entity.mob.npc.Npc;
10import com.osroyale.game.world.entity.mob.player.Player;
11import com.osroyale.game.world.entity.skill.Skill;
12import com.osroyale.game.world.position.Area;
13import com.osroyale.net.packet.out.SendMessage;
14import com.osroyale.util.Utility;
26 private final Npc npc;
32 this.pickpocket = pickpocket;
36 private int failureRate(
Player player) {
37 double f1 = pickpocket.
getLevel() / 10;
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();
54 getMob().send(
new SendMessage(
"You failed to pickpocketing the " + npc.getName() +
"."));
59 double experience =
Area.inSuperDonatorZone(
getMob()) ||
Area.inRegularDonatorZone(
getMob()) ? pickpocket.getExperience() * 2 : pickpocket.getExperience();
61 getMob().send(
new SendMessage(
"You have successfully pickpocket the " + npc.getName() +
"."));
69 return "Thieving pickpocket";
static final double THIEVING_MODIFICATION
PickpocketAction(Player player, Npc npc, PickpocketData pickpocket)
WalkablePolicy getWalkablePolicy()
Action(T mob, int delay, boolean instant)
synchronized final void cancel()
static final int THIEVING
static< T > T randomElement(Collection< T > collection)