summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-12-29 02:16:49 +0100
committerHaru <haru@dotalux.com>2015-12-31 23:39:23 +0100
commitb4c99db7d5a500770383e24ef2fd1f956b19da74 (patch)
treeafb1e9ad57cb48d4bb826183d630e99e840f9f8f /doc
parentefaaf842dc3717e21b915edf37b3e907b02fa5a1 (diff)
downloadhercules-b4c99db7d5a500770383e24ef2fd1f956b19da74.tar.gz
hercules-b4c99db7d5a500770383e24ef2fd1f956b19da74.tar.bz2
hercules-b4c99db7d5a500770383e24ef2fd1f956b19da74.tar.xz
hercules-b4c99db7d5a500770383e24ef2fd1f956b19da74.zip
Replaced leftover -1 view IDs with FAKE_NPC
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/sample/npc_dynamic_shop.txt2
-rw-r--r--doc/sample/npc_test_duplicate.txt2
-rw-r--r--doc/script_commands.txt16
-rw-r--r--doc/whisper_sys.txt4
4 files changed, 12 insertions, 12 deletions
diff --git a/doc/sample/npc_dynamic_shop.txt b/doc/sample/npc_dynamic_shop.txt
index 1e4ac77e4..9b1315ba7 100644
--- a/doc/sample/npc_dynamic_shop.txt
+++ b/doc/sample/npc_dynamic_shop.txt
@@ -9,7 +9,7 @@
//============================================================
// Dummy shop to insert items into:
-- shop dyn_shop1 -1,501:50.
+- shop dyn_shop1 FAKE_NPC,501:50.
prontera,181,200,4 script Dynamic Shop 2_F_MAGICMASTER,{
callshop "dyn_shop1",0;
diff --git a/doc/sample/npc_test_duplicate.txt b/doc/sample/npc_test_duplicate.txt
index 55d64bc7b..4e07e38c4 100644
--- a/doc/sample/npc_test_duplicate.txt
+++ b/doc/sample/npc_test_duplicate.txt
@@ -12,7 +12,7 @@
//= 'OnInit' loads the main npc last, for some reason. (check with debugmes)
//============================================================
-- script Test Script -1,1,1,{
+- script Test Script FAKE_NPC,1,1,{
mes "Hi.";
mes "My coords are "+ .map$ +", "+ .x +"/" +.y ;
close;
diff --git a/doc/script_commands.txt b/doc/script_commands.txt
index c6ee8fc76..e5663f7bf 100644
--- a/doc/script_commands.txt
+++ b/doc/script_commands.txt
@@ -249,7 +249,7 @@ OnTouch events with a 2,2 range and with an 'end' after the header to avoid
bugs (for more info on why see npc_click@map/npc.c). It is possible to use a job
sprite as well, but you must first define it as a monster sprite in 'mob_avail.txt',
a full description on how to do this is not in the scope of this manual.
-A '-1' sprite will make the NPC invisible (and unclickable).
+A 'FAKE_NPC' sprite will make the NPC invisible (and unclickable).
A 'HIDDEN_NPC' sprite will make an NPC which does not have a sprite, but is
still clickable, which is useful if you want to make a clickable object of
the 3D terrain.
@@ -271,7 +271,7 @@ optional parameter.
** Define a 'floating' NPC object.
--%TAB%script%TAB%<NPC Name>%TAB%-1,{<code>}
+-%TAB%script%TAB%<NPC Name>%TAB%FAKE_NPC,{<code>}
This will define an NPC object not triggerable by normal means. This would
normally mean it's pointless since it can't do anything, but there are
@@ -303,7 +303,7 @@ items here. The layout used to define sale items still count, and
** Define a trader NPC
<map name>,<x>,<y>,<facing>%TAB%trader%TAB%<NPC Name>%TAB%<sprite>,{<code>}
--%TAB%trader%TAB%<NPC Name>%TAB%-1,{<code>}
+-%TAB%trader%TAB%<NPC Name>%TAB%FAKE_NPC,{<code>}
All the standards that are valid to script objects are also valid for trader objects
(see ** Define an NPC object for more information).
@@ -1922,7 +1922,7 @@ Example:
dothat;
}
- - script test -1,{
+ - script test FAKE_NPC,{
.@try = is_function("try"); // 1
.@not = is_function("not"); // 0
}
@@ -6694,7 +6694,7 @@ and source flags are ignored.
*callshop "<name>",<option>;
These are a series of commands used to create dynamic shops.
-The callshop function calls an invisible shop (view -1) as if the player
+The callshop function calls an invisible shop (FAKE_NPC) as if the player
clicked on it.
For the options on callShop:
@@ -7464,7 +7464,7 @@ Usage example:
When a user types the command "@test", an angel effect will be shown.
-- script atcmd_example -1,{
+- script atcmd_example FAKE_NPC,{
OnInit:
bindatcmd "test",strnpcinfo(3)+"::OnAtcommand";
end;
@@ -7502,7 +7502,7 @@ Parameter splitting example:
The called event label needs to take care of joining arguments together, in
case it expects spaces. For example:
-- script atcmd_example -1,{
+- script atcmd_example FAKE_NPC,{
OnInit:
bindatcmd "test",strnpcinfo(3)+"::OnAtcommand";
end;
@@ -7613,7 +7613,7 @@ configuration, it will eventually return to that cycle.
Example:
-- script DayNight -1,{
+- script DayNight FAKE_NPC,{
OnClock0600:
day;
end;
diff --git a/doc/whisper_sys.txt b/doc/whisper_sys.txt
index 39e2a54f2..ba7165b87 100644
--- a/doc/whisper_sys.txt
+++ b/doc/whisper_sys.txt
@@ -29,7 +29,7 @@ You whisper an NPC "NPCCommander" in-game with the following instructions:
The parameters are passed on to the "OnWhisperGlobal" label of the NPC, and can
be processed accordingly:
-- script NPCCommander -1,{
+- script NPCCommander FAKE_NPC,{
OnWhisperGlobal:
// Inform player "Lordalfa" that he has been reported for killstealing.
if (@whispervar0$ == "Report")
@@ -39,7 +39,7 @@ OnWhisperGlobal:
This could also be used for hidden event triggers:
-- script EventManager -1,{
+- script EventManager FAKE_NPC,{
OnWhisperGlobal:
if (getgmlevel() < 80) end;
if (@whispervar0$ == "pvp") {