RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
com.osroyale.content.pet.Pets Class Reference

Static Public Member Functions

static void onReward (Player player, int item, int chance)
static void onReward (Player player, int item)
static boolean onReward (Player player, PetData pet)
static boolean onSpawn (Player player, int item, boolean drop)
static boolean dialogue (Player player, Npc npc)
static void onDeath (Player player)
static Task abandon (Npc npc)
static void onLogout (Player player)
static void onLogin (Player player)
static void buyInsurance (Player player, Item item)
static void claimLostPets (Player player)
static void openInsurance (Player player)
static void openLostPets (Player player)

Static Public Attributes

static final int INSRUANCE_COST = 8000000

Detailed Description

Handles spawning, rewarding and picking up of pets.

Author
Daniel

Definition at line 64 of file Pets.java.

Member Function Documentation

◆ abandon()

Task com.osroyale.content.pet.Pets.abandon ( Npc npc)
inlinestatic

The pet abandon task.

Definition at line 221 of file Pets.java.

◆ buyInsurance()

void com.osroyale.content.pet.Pets.buyInsurance ( Player player,
Item item )
inlinestatic

Handles purchasing insurance for a pet.

Definition at line 275 of file Pets.java.

◆ claimLostPets()

void com.osroyale.content.pet.Pets.claimLostPets ( Player player)
inlinestatic

Claims all the lost pets.

Definition at line 295 of file Pets.java.

◆ dialogue()

boolean com.osroyale.content.pet.Pets.dialogue ( Player player,
Npc npc )
inlinestatic

Handles speaking to a pet.

Definition at line 165 of file Pets.java.

◆ onDeath()

void com.osroyale.content.pet.Pets.onDeath ( Player player)
inlinestatic

Handles what happens to a pet when a player dies. TODO: MULTIPLE OF THE SAME PET

Definition at line 179 of file Pets.java.

◆ onLogin()

void com.osroyale.content.pet.Pets.onLogin ( Player player)
inlinestatic

Handles what happens to a pet when a player logs in.

Definition at line 261 of file Pets.java.

◆ onLogout()

void com.osroyale.content.pet.Pets.onLogout ( Player player)
inlinestatic

Handles what happens to a pet when a player logouts.

Definition at line 254 of file Pets.java.

◆ onReward() [1/3]

void com.osroyale.content.pet.Pets.onReward ( Player player,
int item )
inlinestatic

Handles rewarding with a 100% a chance

Parameters
player
item
chance

Definition at line 81 of file Pets.java.

◆ onReward() [2/3]

void com.osroyale.content.pet.Pets.onReward ( Player player,
int item,
int chance )
inlinestatic

Handles calculating the chance of a player receiving a skilling pet.

Definition at line 70 of file Pets.java.

◆ onReward() [3/3]

boolean com.osroyale.content.pet.Pets.onReward ( Player player,
PetData pet )
inlinestatic

Generates a unique equation for special defined pets.

Definition at line 86 of file Pets.java.

◆ onSpawn()

boolean com.osroyale.content.pet.Pets.onSpawn ( Player player,
int item,
boolean drop )
inlinestatic

Handles spawning a pet.

Definition at line 128 of file Pets.java.

◆ openInsurance()

void com.osroyale.content.pet.Pets.openInsurance ( Player player)
inlinestatic

Handles opening the insurance interface.

Definition at line 316 of file Pets.java.

◆ openLostPets()

void com.osroyale.content.pet.Pets.openLostPets ( Player player)
inlinestatic

Handles opening the insurance interface.

Definition at line 333 of file Pets.java.

Member Data Documentation

◆ INSRUANCE_COST

final int com.osroyale.content.pet.Pets.INSRUANCE_COST = 8000000
static

The cost of insuring a pet.

Definition at line 67 of file Pets.java.


The documentation for this class was generated from the following file: