summaryrefslogtreecommitdiff
path: root/doc/whisper_sys.txt
diff options
context:
space:
mode:
authorthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-03 23:59:46 +0000
committerthatakkarin <thatakkarin@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-03 23:59:46 +0000
commit5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae (patch)
treecba96df072699040b4372aee6767a1ba1653f0a8 /doc/whisper_sys.txt
parent6329c98d4af9afb03bbe9b31ed9291f010c53dec (diff)
downloadhercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.tar.gz
hercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.tar.bz2
hercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.tar.xz
hercules-5d08bc2a59ac0bea9573085f6ea2fc12fee9a7ae.zip
* Fixed bugreport:6619 with correct ammo view id in /doc/item_db.txt
* Slight cleanup in /doc/atcommands.txt * Added quest sample NPC in /doc/npc_test_quest.txt * Added an additional example in /doc/whisper_sys.txt to show extended usage git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16742 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/whisper_sys.txt')
-rw-r--r--doc/whisper_sys.txt32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/whisper_sys.txt b/doc/whisper_sys.txt
index bb726974b..3593c486c 100644
--- a/doc/whisper_sys.txt
+++ b/doc/whisper_sys.txt
@@ -36,3 +36,35 @@ OnWhisperGlobal:
message @whispervar2$,"You have been reported for "+@whispervar1$+".";
end;
}
+
+The Whisper System is also useful for hidden event handler NPCs (NPCs that don't
+have a sprite on a map for you to click). E.g:
+
+OnWhisperGlobal:
+if (getgmlevel()<80) goto L_NotGM;
+if (@whispervar0$ == "event1") goto L_Event1;
+if (@whispervar0$ == "event2") goto L_Event2;
+if (@whispervar0$ == "event3") goto L_Event3;
+
+// If the string sent to this NPC doesn't contain any of the above:
+else goto L_NoVar;
+end;
+
+L_NotGM:
+ dispbottom "NPC : You do not have sufficient access to whisper in my ear.";
+ end;
+
+L_NoVar:
+ dispbottom "NPC : Sorry, i do not recognise that command.";
+ end;
+
+L_Event1:
+ if (@whispervar1$ == "start"){
+ // Execute scripts to start Event1
+ }
+ if (@whispervar1$ == "stop"){
+ //Execute scripts to forcefully stop Event1
+ }
+
+
+