public class 1200_Mercenary_Commands extends Object
============================ |1200.- Mercenary commands.| ============================
| 构造器和说明 |
|---|
1200_Mercenary_Commands() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
getmercinfo()
getmercinfo(<type>{,<char id>});
Retrieves information about mercenary of the currently attached
character.
|
void |
mercenary_create()
mercenary_create <class>,<contract time>;
This command summons a mercenary for a given time (in milliseconds).
|
void |
mercenary_get_calls()
mercenary_get_calls(<guild>);
mercenary_set_calls <guild>,<value>;
Sets or gets the mercenary calls value for given guild for currently
attached character.
|
void |
mercenary_get_faith()
mercenary_get_faith(<guild>);
mercenary_set_faith <guild>,<value>;
Sets or gets the mercenary faith value for given guild for currently
attached character.
|
void |
mercenary_heal()
mercenary_heal <hp>,<sp>;
This command works like 'heal', but affects the mercenary of the
currently attached character.
|
void |
mercenary_sc_start()
mercenary_sc_start <type>,<tick>,<val1>;
This command works like 'sc_start', but affects the mercenary of the
currently attached character.
|
mercenary_create <class>,<contract time>;
This command summons a mercenary for a given time (in milliseconds). For a
list of all available classes, see 'db/mercenary_db.txt'.
This command is typically used in item scripts of mercenary scrolls.
mercenary_heal <hp>,<sp>;
This command works like 'heal', but affects the mercenary of the
currently attached character.
mercenary_sc_start <type>,<tick>,<val1>;
This command works like 'sc_start', but affects the mercenary of the
currently attached character.
mercenary_get_calls(<guild>);
mercenary_set_calls <guild>,<value>;
Sets or gets the mercenary calls value for given guild for currently
attached character. Guild can be one or the following constants:
ARCH_MERC_GUILD
SPEAR_MERC_GUILD
SWORD_MERC_GUILD
mercenary_get_faith(<guild>);
mercenary_set_faith <guild>,<value>;
Sets or gets the mercenary faith value for given guild for currently
attached character. Guild can be one or the following constants:
ARCH_MERC_GUILD
SPEAR_MERC_GUILD
SWORD_MERC_GUILD
getmercinfo(<type>{,<char id>});
Retrieves information about mercenary of the currently attached
character. If char id is given, the information of that character is
retrieved instead. Type specifies what information to retrieve and
can be one of the following:
0 - Mercenary ID
1 - Mercenary Class
2 - Mercenary Name
3 - Mercenary faith value for this mercenary's guild, if any
4 - Mercenary calls value for this mercenary's guild, if any
5 - Mercenary kill count
6 - Mercenary remaining life time in msec
7 - Mercenary level
8 - Mercenary Game ID
If the character does not have a mercenary, the command returns ""
for name and 0 for all other types.
Copyright © 工程的初始时间(可选)–2019. All rights reserved.