Recovery Drop ( A_Drop_Of_Heal_ )
| ID 4956 |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Buy Price: zeny | Sell Price: 0 zeny | Weight: 0 | Slots: Not specified | ||||||||||||||||||||||||||||||||||||
| Type: Card item. | Sub Type: Enchant Card | Gender: Both | Locations: Not specified | |||||||||||||||||||||||||||||||||||||
| Attack: Not specified | Magic Attack: Not specified | Range: Not specified | Defense: Not specified | |||||||||||||||||||||||||||||||||||||
| Weapon Level: Not specified | Armor Level: Not specified | Min. Equip Level: Not specified | Max. Equip Level: Not specified | |||||||||||||||||||||||||||||||||||||
| Refineable: Not specified | Gradable: Not specified | Element: Neutral | Classes: Not specified | |||||||||||||||||||||||||||||||||||||
|
All Not specified
Flags
Stacking
Not specified
Usage
Not specified
Trade
Delay
Not specified
setarray .@skills$, "AL_HEAL", "PR_SANCTUARY", "AM_POTIONPITCHER", "AB_HIGHNESSHEAL", "AB_CHEAL";
for( .@i = 0; .@i < getarraysize(.@skills$); .@i++ ) {
bonus2 bSkillHeal,.@skills$[.@i],2;
bonus2 bSkillHeal2,.@skills$[.@i],2;
}
/* TODO: Depending on some recovery items HP recovery amount + 2% */
Script References
setarray
Command
setarray
Signature:
Description:
This command will allow you to quickly fill up an array in one go. Check the
Kafra scripts in the distribution to see this used a lot.
First value is the index of the first element of the array to alter. For
example:
will produce:
.@array[0]=200
.@array[1]=300
.@array[2]=150
Example:
for
Command
for
Signature:
Description:
Another pretest looping structure is the 'for' statement. It is considered a
specialized form of the 'while' statement, and is usually associated with counter-
controlled loops. Here are the steps of the 'for' statement: the initialize
statement is executed first and only once. The condition test is performed.
When the condition evaluates to false, the rest of the for statement is skipped.
When the condition evaluates to true, the body of the loop is executed, then the
update statement is executed (this usually involves incrementing a variable).
Then the condition is reevaluated and the cycle continues.
Example 1:
Example 2:
Example:
getarraysize
Command
getarraysize
Signature:
Description:
This function returns highest index of the array that is filled.
counted towards this number.
For example:
This will make .@arraysize == 6. But if you try this:
.@arraysize will still equal 6, even though you've set 7 values.
Example:
bSkillHeal
Item Bonus
bSkillHeal
Signature:
Description:
Increases heal amount of skill sk by n%
bSkillHeal2
Item Bonus
bSkillHeal2
Signature:
Description:
Increases heal amount if you are healed by skill sk by n%
recovery
Command
recovery
Signature:
Description:
This command will revive and fully restore the HP/SP of the selected characters.
It returns 1 upon successful use.
<type> is the target, and determines the <option> parameter:
0: Player -> Character ID number
1: Party -> Party ID number
2: Guild -> Guild ID number
3: Map -> Map name (a string)
4: All -> None (takes <revive_flag> as option)
If no option is specified, the invoking player's character ID, party ID, guild ID,
or map will be used.
<revive_flag> determines the action:
1: Revive and heal all players (default)
2: Heal living players only
4: Revive dead players only
<map name> can optionally be used to define a single map to execute the command on
for types 1 (party) and 2 (guild).
Examples:
Example:
Not specified Script ReferencesNo documented script references were detected. Not specified Script ReferencesNo documented script references were detected. Not specified Not specified Not specified Not specified Not specified Not specified Not specified Not specified Not specified |
||||||||||||||||||||||||||||||||||||||||