메소드 | 설명 | |
---|---|---|
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 |