diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-02 14:58:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-02 14:58:05 +0300 |
commit | 57db79eda786c1e50c2b3715486094ef0628d7af (patch) | |
tree | 875890a13fec352169f1324e369615831f5c6d16 | |
parent | abcf13b475a31a397c5f8de582e1ee9c52d9a993 (diff) | |
download | docs-57db79eda786c1e50c2b3715486094ef0628d7af.tar.gz docs-57db79eda786c1e50c2b3715486094ef0628d7af.tar.bz2 docs-57db79eda786c1e50c2b3715486094ef0628d7af.tar.xz docs-57db79eda786c1e50c2b3715486094ef0628d7af.zip |
Update docs from hercules.
-rw-r--r-- | server/monsters/mob_db_mode_list.txt | 35 | ||||
-rw-r--r-- | server/scripts/constants.md | 30 | ||||
-rw-r--r-- | server/scripts/script_commands.txt | 9 |
3 files changed, 55 insertions, 19 deletions
diff --git a/server/monsters/mob_db_mode_list.txt b/server/monsters/mob_db_mode_list.txt index 08abf80..32e7a0e 100644 --- a/server/monsters/mob_db_mode_list.txt +++ b/server/monsters/mob_db_mode_list.txt @@ -11,22 +11,23 @@ Bit Legend: ------------------------------------------------------------------------------- -MD_CANMOVE | 0x0001 | 1 -MD_LOOTER | 0x0002 | 2 -MD_AGGRESSIVE | 0x0004 | 4 -MD_ASSIST | 0x0008 | 8 -MD_CASTSENSOR_IDLE | 0x0010 | 16 -MD_BOSS | 0x0020 | 32 -MD_PLANT | 0x0040 | 64 -MD_CANATTACK | 0x0080 | 128 -MD_DETECTOR | 0x0100 | 256 -MD_CASTSENSOR_CHASE | 0x0200 | 512 -MD_CHANGECHASE | 0x0400 | 1024 -MD_ANGRY | 0x0800 | 2048 -MD_CHANGETARGET_MELEE | 0x1000 | 4096 -MD_CHANGETARGET_CHASE | 0x2000 | 8192 -MD_TARGETWEAK | 0x4000 | 16384 -MD_RANDOMTARGET | 0x8000 | 32768 (not implemented) +MD_CANMOVE | 0x00001 | 1 +MD_LOOTER | 0x00002 | 2 +MD_AGGRESSIVE | 0x00004 | 4 +MD_ASSIST | 0x00008 | 8 +MD_CASTSENSOR_IDLE | 0x00010 | 16 +MD_BOSS | 0x00020 | 32 +MD_PLANT | 0x00040 | 64 +MD_CANATTACK | 0x00080 | 128 +MD_DETECTOR | 0x00100 | 256 +MD_CASTSENSOR_CHASE | 0x00200 | 512 +MD_CHANGECHASE | 0x00400 | 1024 +MD_ANGRY | 0x00800 | 2048 +MD_CHANGETARGET_MELEE | 0x01000 | 4096 +MD_CHANGETARGET_CHASE | 0x02000 | 8192 +MD_TARGETWEAK | 0x04000 | 16384 +MD_NOKNOCKBACK | 0x08000 | 32768 +MD_RANDOMTARGET | 0x10000 | 65536 (not implemented) Explanation for modes: ------------------------------------------------------------------------------- @@ -74,6 +75,8 @@ Target Weak: Allows aggressive monsters to only be aggressive against characters that are five levels below it's own level. For example, a monster of level 104 will not pick fights with a level 99. +NoKnockback: Monsters will be immune to Knockback's. + Random Target: Picks a new random target in range on each attack / skill. (not implemented) diff --git a/server/scripts/constants.md b/server/scripts/constants.md index 9137e53..bec1341 100644 --- a/server/scripts/constants.md +++ b/server/scripts/constants.md @@ -3425,6 +3425,31 @@ - `4_BLOODYMAN`: 10176 - `4_GIBBET`: 10177 - `4_DULLAHAN`: 10178 +- `4_M_LAZY`: 10179 +- `4_M_GONY`: 10180 +- `4_M_ROOKIE`: 10181 +- `4_M_PHILOFONTES`: 10182 +- `4_F_ESTLOVELOY`: 10183 +- `4_F_LEEDSH`: 10184 +- `4_F_DIENE`: 10185 +- `4_F_COATNEIS`: 10186 +- `4_M_RUPERT`: 10187 +- `4_M_FALLENGONY`: 10188 +- `4_M_EISEN`: 10189 +- `4_F_DEADEVIL`: 10190 +- `4_F_HUNTER_EVIL`: 10191 +- `4_F_ELENA`: 10192 +- `4_F_ANYA`: 10193 +- `4_M_SEIREN_UC`: 10194 +- `4_M_GUNSLINGER2`: 10195 +- `4_M_GUNSLINGER3`: 10196 +- `4_M_REBELLION2`: 10197 +- `4_M_REBELLION3`: 10198 +- `4_F_GUNSLINGER2`: 10199 +- `4_F_GUNSLINGER3`: 10200 +- `4_F_REBELLION2`: 10201 +- `4_F_REBELLION3`: 10202 +- `4_M_ILYA`: 10203 ### Mercenary IDs @@ -3636,6 +3661,11 @@ - `C_GOLD`: 16766720 - `C_VIOLET`: 15631086 +### Genders + +- `SEX_FEMALE`: 0 +- `SEX_MALE`: 1 + ## Hardcoded Constants (source) diff --git a/server/scripts/script_commands.txt b/server/scripts/script_commands.txt index 709aa39..c45b4e6 100644 --- a/server/scripts/script_commands.txt +++ b/server/scripts/script_commands.txt @@ -552,7 +552,7 @@ Weight - Amount of weight the character currently carries. Display as in Weight/10. MaxWeight - Maximum weight the character can carry. Display as in MaxWeight/10. -Sex - 0 if female, 1 if male. +Sex - Character's gender (SEX_MALE or SEX_FEMALE). Class - Character's job. Upper - 0 if the character is normal class, 1 if advanced, 2 if baby. BaseClass - The character's 1-1 'normal' job, regardless of Upper value. @@ -889,11 +889,14 @@ and are the following: ?: - Conditional operator Very useful e.g. to replace - if(Sex) mes "..."; else mes "..."; + if (Sex == SEX_MALE) + mes "You're Male."; + else + mes "You're Female."; clauses with simple - mes "Welcome, " + (Sex?"Mr.":"Mrs.") + " " + strcharinfo(0); + mes "Welcome, " + (Sex == SEX_MALE ? "Mr." : "Mrs.") + " " + strcharinfo(0); or to replace any other simple if-else clauses. It might be worth mentioning that ?: has low priority and has to be enclosed with |