summaryrefslogtreecommitdiff
path: root/doc/whisper_sys.txt
diff options
context:
space:
mode:
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