summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2015-12-06 06:37:27 +0800
committerAnnieRuru <jeankof@ymail.com>2015-12-06 06:37:27 +0800
commitcea55140cc2b5d1012813f8abc028ba04bd625c6 (patch)
tree06a196bb71cae33a9bb6b21fca1516b6c6a9bb3c /doc
parent079e7ed9d05b5f80f5106a164762ad1d39e64c92 (diff)
downloadhercules-cea55140cc2b5d1012813f8abc028ba04bd625c6.tar.gz
hercules-cea55140cc2b5d1012813f8abc028ba04bd625c6.tar.bz2
hercules-cea55140cc2b5d1012813f8abc028ba04bd625c6.tar.xz
hercules-cea55140cc2b5d1012813f8abc028ba04bd625c6.zip
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
Diffstat (limited to 'doc')
-rw-r--r--doc/script_commands.txt15
1 files changed, 10 insertions, 5 deletions
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(<flag>)
@@ -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 <Battle Group>,"<map name>",<x>,<y>,"<name to show>",<mob id>,"<event label>";
-*bg_monster(<Battle Group>,"<map name>",<x>,<y>,"<name to show>",<mob id>,"<event label>");
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;