Method | Description | |
---|---|---|
Init ( ) : bool |
Called when script is initialized after loading it.
|
|
OnCreation ( Item item ) : void |
Executed when item is first created.
|
|
OnEquip ( |
Executed when item is equipped.
|
|
OnUnequip ( |
Executed when item is unequipped.
|
|
OnUse ( |
Executed when item is used.
|
Method | Description | |
---|---|---|
ActivateChatSticker ( |
Activates the sticker for the given duration.
|
|
AddGesture ( |
Adds gesture by keyword.
|
|
Buff ( |
Activates food stat mods for the given timeout and stats.
|
|
Feed ( |
Reduces hunger by amount and handles weight gain/loss and stat bonuses. Body and stat changes are applied inside Creature, on MabiTick (every 5 minutes). |
|
Heal ( |
Heals a certain amount of life, mana, and stamina.
|
|
HealFull ( |
Heals life, mana, and stamina completely.
|
|
HealRate ( |
Heals a certain percentage of life, mana, and stamina.
|
|
MagicSeal ( Item item, string color, string script = null ) : void |
Adds magic seal meta data to item.
|
|
ShootFirework ( |
||
SummonBrownie ( |
Spawns brownie for creature's personal shop.
|
|
TrainSkill ( |
Trains the specified condition for skill by one.
|
|
Treat ( |
Reduces injuries by amount.
|
|
Weaken ( |
Activates weaken conditions for creature.
|
Method | Description | |
---|---|---|
GetToxicityStage ( double toxicity ) : ToxicityStage |
Returns toxicity stage based on given toxicity.
|
|
Poison ( |
Handles potion poisoning. The stages and the toxicity in general are based on information from the Wiki and in-game obsvervation. |
protected ActivateChatSticker ( |
||
creature | ||
sticker | ChatSticker | Sticker to activate. |
duration | int | Duration in seconds. |
return | void |
protected AddGesture ( |
||
creature | ||
keyword | string | |
name | string | |
return | void |
protected Buff ( |
||
creature | ||
item | Item | |
timeout | int | |
str | double | |
int_ | double | |
dex | double | |
will | double | |
luck | double | |
life | double | |
mana | double | |
stamina | double | |
lifeRecovery | double | |
manaRecovery | double | |
staminaRecovery | double | |
injuryRecovery | double | |
defense | int | |
protection | int | |
return | void |
protected Feed ( |
||
creature | ||
hunger | double | |
weight | double | |
upper | double | |
lower | double | |
str | double | |
int_ | double | |
dex | double | |
will | double | |
luck | double | |
life | double | |
mana | double | |
stm | double | |
return | void |
protected Heal ( |
||
creature | ||
life | double | |
mana | double | |
stamina | double | |
toxicity | double | |
return | void |
protected HealFull ( |
||
creature | ||
toxicity | double | |
return | void |
protected HealRate ( |
||
creature | ||
life | double | |
mana | double | |
stamina | double | |
toxicity | double | |
return | void |
protected MagicSeal ( Item item, string color, string script = null ) : void | ||
item | Item | |
color | string | |
script | string | |
return | void |
public OnEquip ( |
||
creature | ||
item | Item | |
return | void |
public OnUnequip ( |
||
creature | ||
item | Item | |
return | void |
public OnUse ( |
||
creature | ||
item | Item | |
parameter | string | |
return | void |
protected ShootFirework ( |
||
location | ||
type | FireworkType | |
message | string | |
return | void |
protected SummonBrownie ( |
||
creature | ||
item | Item | |
typeName | string | |
return | void |
protected TrainSkill ( |
||
creature | ||
skillId | SkillId | |
condition | int | |
return | void |
protected Treat ( |
||
creature | ||
injuries | double | |
toxicity | double | |
return | void |
protected Weaken ( |
||
creature | ||
levels | int | Amount of levels to lower the power level. |
duration | int | Duration of the state. |
return | void |