summaryrefslogtreecommitdiff
path: root/doc/whisper_sys.txt
diff options
context:
space:
mode:
authoreuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-05 02:42:20 +0000
committereuphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-05 02:42:20 +0000
commit4e6774e4173eccff9d0b51b45fe2af07e682e67d (patch)
tree9f2d1c6e3c28343f601247bb9db557a45317fb3c /doc/whisper_sys.txt
parente7a4ce6eb8222a4abba8ee44d318c1d803c79797 (diff)
downloadhercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.tar.gz
hercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.tar.bz2
hercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.tar.xz
hercules-4e6774e4173eccff9d0b51b45fe2af07e682e67d.zip
* Follow-up r16742, revised quest sample (doc\sample\npc_test_quest.txt) and whisper system documentation (doc\whisper_sys.txt)
* Follow-up r16745, fixed a few typos in atcommand documentation (doc\atcommands.txt) * Minor cleaning - spacing, tabulation, comments, dividers git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16746 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/whisper_sys.txt')
-rw-r--r--doc/whisper_sys.txt38
1 files changed, 10 insertions, 28 deletions
diff --git a/doc/whisper_sys.txt b/doc/whisper_sys.txt
index 3593c486c..2e71558c3 100644
--- a/doc/whisper_sys.txt
+++ b/doc/whisper_sys.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= lordalfa
//===== Current Version: =====================================
-//= 20120826
+//= 20120904
//===== Description: =========================================
//= A description of rAthena's NPC whispering system.
//============================================================
@@ -37,34 +37,16 @@ OnWhisperGlobal:
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:
+This could also be used for hidden event triggers:
+- script EventManager -1,{
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 (getgmlevel() < 80) end;
+ if (@whispervar0$ == "pvp") {
+ // Script for a PVP event.
}
- if (@whispervar1$ == "stop"){
- //Execute scripts to forcefully stop Event1
+ else if (@whispervar0$ == "mvp") {
+ // Script for an MVP summoning event.
}
-
-
-
+ end;
+} \ No newline at end of file