Beast Rings [1] ( Beast_Ring )
| ID 490405 |
|
|||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Buy Price: zeny | Sell Price: 0 zeny | Weight: 10 | Slots: 1 | ||||||||||||||||||||||||||||||||||||
| Type: Armor/Garment/Boots/Headgear/Accessory item. | Sub Type: Not specified | Gender: Both | Locations: Right_Accessory + Left_Accessory | |||||||||||||||||||||||||||||||||||||
| Attack: Not specified | Magic Attack: Not specified | Range: Not specified | Defense: Not specified | |||||||||||||||||||||||||||||||||||||
| Weapon Level: Not specified | Armor Level: 1 | Min. Equip Level: 1 | 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
bonus2 bSubRace,RC_All,5;
bonus2 bSubRace,RC_Player_Doram,-5;
bonus2 bSubRace,RC_Player_Human,-5;
bonus2 bExpAddRace,RC_All,5;
switch( getpetinfo(PETINFO_EGGID) ) {
case 9003: // Poporing_Egg
bonus2 bSubRace,RC_Plant,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9040: // Civil_Servant_Egg
bonus2 bSubRace,RC_Angel,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9015: // Smokie_Egg
bonus2 bSubRace,RC_Brute,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9020: // Sohee_Egg
bonus2 bSubRace,RC_Demon,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9046: // Goblin_Leader_Egg
bonus2 bSubRace,RC_Dragon,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9044: // Shinobi_Egg
bonus2 bSubRace,RC_DemiHuman,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9007: // Steel_Chonchon_Egg
bonus2 bSubRace,RC_Insect,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9018: // Munak_Egg
bonus2 bSubRace,RC_Undead,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9050: // Medusa_Egg
bonus2 bSubRace,RC_Formless,5;
bonus2 bExpAddRace,RC_All,15;
break;
case 9062: // Novice_Poring_Egg
bonus2 bSubRace,RC_Fish,5;
bonus2 bExpAddRace,RC_All,15;
break;
}
Script References
bSubRace
Item Bonus
bSubRace
Signature:
Description:
+x% damage reduction against race r with trigger criteria bf
bExpAddRace
Item Bonus
bExpAddRace
Signature:
Description:
Increase exp gained by x% against enemies of race r
switch
Command
switch
Signature:
Description:
The switch statement is similar to a series of if statements on the same expression.
In many occasions, you may want to compare the same variable (or expression)
with many different values, and execute a different piece of code depending
on which value it equals to. This is exactly what the switch statement is for.
to avoid mistakes. The switch statement executes line by line (actually, statement by statement).
In the beginning, no code is executed. Only when a case statement is found
with a value that matches the value of the switch expression the case statement(s)
will to executed. The parser continues to execute the statements until the end
of the switch block, or the first time it sees a break statement. If you don't
write a break statement at the end of a case's statement list, the parser will
go on executing the statements of the following case (fall-through).
Example 1:
the user selects option, otherwise, would go to the second one.
Example 2:
The example above would print a message depending on the player's groupid.
If there is no statement declared for the corresponding groupid, the script
would use the 'default' statement that applies to rest of possible values,
similar to 'else' in the if-else statement.
Example:
getpetinfo
Command
getpetinfo
Signature:
Description:
currently has active. Valid types are:
PETINFO_ID - Pet unique ID
PETINFO_CLASS - Pet class number as per '' - will tell you what kind of a pet it is.
PETINFO_NAME - Pet name. Will return "null" if there's no pet.
PETINFO_INTIMATE - Pet friendly level (intimacy score). 1000 is full loyalty.
PETINFO_HUNGRY - Pet hungry level. 100 is full hunger.
PETINFO_RENAMED - Pet rename flag. 0 means this pet has not been named yet.
PETINFO_LEVEL - Pet level
PETINFO_BLOCKID - Pet Game ID
PETINFO_EGGID - Pet egg item ID
PETINFO_FOODID - Pet food item ID
PETINFO_INTIMATE can be used with the following constants for checking values:
PET_INTIMATE_NONE = 0
PET_INTIMATE_AWKWARD = 1 ~ 99
PET_INTIMATE_SHY = 100 ~ 249
PET_INTIMATE_NEUTRAL = 250 ~ 749
PET_INTIMATE_CORDIAL = 750 ~ 909
PET_INTIMATE_LOYAL = 910 ~ 1000
PETINFO_HUNGRY can be used with the following constants for checking values:
PET_HUNGRY_NONE = 0
PET_HUNGRY_VERY_HUNGRY = 1 ~ 10
PET_HUNGRY_HUNGRY = 11 ~ 25
PET_HUNGRY_NEUTRAL = 26 ~ 75
PET_HUNGRY_SATISFIED = 76 ~ 90
PET_HUNGRY_STUFFED = 91 ~ 100
Example:
These commands will only work if the invoking character has a pet, and are meant
to be executed from pet scripts. They will modify the pet AI decision-making for
the current pet of the invoking character, and will NOT have any independent
effect by themselves, which is why only one of them each may be in effect at any
time for a specific pet. A pet may have 'petloot', 'petskillbonus',
'petskillattack' OR 'petpetskillattack2' and 'petskillsupport'.
the specified duration of seconds, with a delay of the specified number of
seconds between activations. Rates are a chance of the effect occurring and are
given in percent. 'bonusratebattle_athena.conf'.
from the egg. Other commands usable in item scripts (see 'bonusre essentially on your own here.
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 |
||||||||||||||||||||||||||||||||||||||||