Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
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. |
Результат | void |
protected AddGesture ( |
||
creature | ||
keyword | string | |
name | string | |
Результат | 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 | |
Результат | 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 | |
Результат | void |
protected Heal ( |
||
creature | ||
life | double | |
mana | double | |
stamina | double | |
toxicity | double | |
Результат | void |
protected HealFull ( |
||
creature | ||
toxicity | double | |
Результат | void |
protected HealRate ( |
||
creature | ||
life | double | |
mana | double | |
stamina | double | |
toxicity | double | |
Результат | void |
protected MagicSeal ( Item item, string color, string script = null ) : void | ||
item | Item | |
color | string | |
script | string | |
Результат | void |
public OnEquip ( |
||
creature | ||
item | Item | |
Результат | void |
public OnUnequip ( |
||
creature | ||
item | Item | |
Результат | void |
public OnUse ( |
||
creature | ||
item | Item | |
parameter | string | |
Результат | void |
protected ShootFirework ( |
||
location | ||
type | FireworkType | |
message | string | |
Результат | void |
protected SummonBrownie ( |
||
creature | ||
item | Item | |
typeName | string | |
Результат | void |
protected TrainSkill ( |
||
creature | ||
skillId | SkillId | |
condition | int | |
Результат | void |
protected Treat ( |
||
creature | ||
injuries | double | |
toxicity | double | |
Результат | void |
protected Weaken ( |
||
creature | ||
levels | int | Amount of levels to lower the power level. |
duration | int | Duration of the state. |
Результат | void |