1package com.runehive.game.world.entity.mob.player;
3import com.runehive.content.EmblemData;
4import com.runehive.content.clanchannel.content.ClanAchievement;
5import com.runehive.content.pet.PetData;
6import com.runehive.content.pet.Pets;
7import com.runehive.content.writer.InterfaceWriter;
8import com.runehive.content.writer.impl.InformationWriter;
9import com.runehive.game.world.items.Item;
10import com.runehive.util.Utility;
11import static com.runehive.content.clanchannel.content.ClanTaskKey.PLAYER_KILLING;
21 killer.
message(
"<col=FF0019>You were not rewarded since you killed someone with your same IP.");
27 killer.
message(
"<col=FF0019>You were not rewarded since you killed someone from your clan.");
35 killer.
message(
"<col=295EFF>You were rewarded with " + reward +
" blood money for that kill.");
51 channel.activateTask(PLAYER_KILLING, killer.
getName());
63 if (host ==
null || host.isEmpty()) {
66 if (
player.lastKilled.contains(host)) {
69 if (
player.lastKilled.size() >= 2) {
70 player.lastKilled.removeFirst();
72 player.lastKilled.add(host);
76 return player.lastKilled.remove(host);
80 return player.lastKilled !=
null &&
player.lastKilled.contains(host);
Handles spawning, rewarding and picking up of pets.
static void onReward(Player player, int item, int chance)
Handles calculating the chance of a player receiving a skilling pet.
Handles writing on an itemcontainer.
static void write(InterfaceWriter writer)
Class handles writing on the quest tab itemcontainer.
This class represents a character controlled by a player.
final Inventory inventory
void forClan(Consumer< ClanChannel > action)
void message(String message)
String getName()
Gets the name of this entity.
final Killstreak killstreak
static boolean contains(Player player, String host)
static void add(Player player, String host)
static void handle(Player killer, Player victim)
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
final boolean replace(int oldId, int newId, int index, boolean refresh)
Replaces the first occurrence of the Item having the identifier oldId with newId.
void addOrDrop(List< Item > items)
Attempts to deposit an item to the players inventory, if there is no space it'll bank the item instea...
Created by Daniel on 2018-02-06.
static EmblemData forId(int id)
Handles the clan achievements.
Holds all the player right data.
static int getBloodMoney(Player player)