From cea55140cc2b5d1012813f8abc028ba04bd625c6 Mon Sep 17 00:00:00 2001 From: AnnieRuru Date: Sun, 6 Dec 2015 06:37:27 +0800 Subject: Fix some documentations on doc/script_commands.txt - fix bg_monster_set_team example broken - fix bg_monster show twice - getpetinfo/gethominfo can return 0 or null if the player doesn't own them - summon command cannot summon dead branch style, since its using mob->spawn, not mob->once_spawn like *monster script command did --- doc/script_commands.txt | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index f5fdab851..bf2b85d29 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -3521,6 +3521,9 @@ character currently has active. Valid types are: 4 - Pet hungry level. 100 is completely full. 5 - Pet rename flag. 0 means this pet has not been named yet. +If the invoking player doesn't own a pet, this command will return +"null" for type 2, and return 0 for other types. + --------------------------------------- *petstat() @@ -6117,8 +6120,8 @@ default, and it is not possible to create a spawn that lasts forever. If an event label is given, upon the monster being killed, the event label will run as if by 'donpcevent'. -// Will summon a dead branch-style monster to fight for the character. -summon "--ja--",-1; +// Will summon a poring to fight for the character. + summon "--ja--", PORING; --------------------------------------- @@ -6144,6 +6147,9 @@ This function works as a direct counterpart of 'getpetinfo': 5 - Rename flag. 0 means this homunculus has not been named yet. 6 - Homunculus level +If the attached player doesn't own a homunculus, this command will return +"null" for type 2, and return 0 for other types. + --------------------------------------- *morphembryo; @@ -8745,7 +8751,6 @@ Example: ---------------------------------------- *bg_monster ,"",,,"",,""; -*bg_monster(,"",,,"",,""); Similar to monster script command. Spawn a monster with allegiance to the given battle group. @@ -8775,14 +8780,14 @@ Example: end; OnEnable: - mapannounce "A guardian has been summoned for Battle Group 2!",bc_map,0xFFCE00; + mapannounce "bat_b01", "A guardian has been summoned for Battle Group 2!", bc_map, 0xFFCE00; set $@Guardian, bg_monster($@BG_2,"bat_a01",268,204,"Guardian",B_S_GUARDIAN,"NPCNAME::OnMyMobDead"); initnpctimer; end; OnTimer1000: stopnpctimer; - mapannounce "Erm, sorry about that! This monster was meant for Battle Group 1.",bc_map,0xFFCE00; + mapannounce "bat_b01", "Erm, sorry about that! This monster was meant for Battle Group 1.", bc_map, 0xFFCE00; bg_monster_set_team $@Guardian, $@BG_1; end; -- cgit v1.2.3-70-g09d2