RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
ClanResourceBox.java
1
package
com.osroyale.content.itemaction.impl;
2
3
import
com.osroyale.content.itemaction.ItemAction;
4
import
com.osroyale.game.world.entity.mob.player.Player;
5
import
com.osroyale.game.world.items.Item;
6
28
29
public
class
ClanResourceBox
extends
ItemAction
{
30
31
@Override
32
public
String
name
() {
33
return
"Clan Resource Box"
;
34
}
35
36
@Override
37
public
boolean
inventory
(
Player
player, Item item,
int
opcode) {
38
// if (opcode != 1)
39
return
false
;
40
// Clan channel = ClanRepository.get(player.clan);
41
// if (channel == null) {
42
// player.send(new SendMessage("You need to be in a clan to do this!"));
43
// return true;
44
// }
45
// player.inventory.remove(item);
46
// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));
47
// channel.showcaseItems.add(showcaseReward.getId());
48
// player.send(new SendMessage("Inside the box you found " + showcaseReward.getName() + "! Showcase size: " + channel.showcaseItems.size() + "/28", SendMessage.MessageColor.DARK_PURPLE));
49
// return true;
50
}
51
}
com.osroyale.content.itemaction.ItemAction
Definition
ItemAction.java:42
com.osroyale.content.itemaction.impl.ClanResourceBox
Definition
ClanResourceBox.java:29
com.osroyale.content.itemaction.impl.ClanResourceBox.inventory
boolean inventory(Player player, Item item, int opcode)
Definition
ClanResourceBox.java:37
com.osroyale.content.itemaction.impl.ClanResourceBox.name
String name()
Definition
ClanResourceBox.java:32
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162