diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-05 11:39:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-15 19:15:07 +0300 |
commit | f0a72fee1cd6ffb7420afbec60214ed72d86e622 (patch) | |
tree | f1c17769a9971223093b405be6a84253da48ee1c /doc/whisper_sys.txt | |
parent | ef6bfb4d20f7ecc55e7d7da44f58d9280fad150a (diff) | |
download | hercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.tar.gz hercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.tar.bz2 hercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.tar.xz hercules-f0a72fee1cd6ffb7420afbec60214ed72d86e622.zip |
Clean doc dir from client or server data related docs.
Diffstat (limited to 'doc/whisper_sys.txt')
-rw-r--r-- | doc/whisper_sys.txt | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/doc/whisper_sys.txt b/doc/whisper_sys.txt deleted file mode 100644 index 39e2a54f2..000000000 --- a/doc/whisper_sys.txt +++ /dev/null @@ -1,52 +0,0 @@ -//===== Hercules Documentation =============================== -//= NPC Whisper System -//===== By: ================================================== -//= lordalfa -//===== Current Version: ===================================== -//= 20120904 -//===== Description: ========================================= -//= A description of Hercules' NPC whispering system. -//============================================================ - -This piece of code to allows characters to execute events in NPCs by whispering -them up to ten parameters. The NPC must have an "OnWhisperGlobal" label, or an -"event not found" error will result. - - NPC:<NPC Name> <String>{#String 2{#...{#String 10}}} - -The whispered strings are separated by the "#" character, and are each stored -into separate temporary character string variables: - - @whispervar0$, @whispervar1$, ... @whispervar9$ - ---------------------------------------------------------------------------------- - -Below is an example of how this feature might be used. -You whisper an NPC "NPCCommander" in-game with the following instructions: - - NPC:NPCCommander Report#Killstealing#Lordalfa - -The parameters are passed on to the "OnWhisperGlobal" label of the NPC, and can -be processed accordingly: - -- script NPCCommander -1,{ -OnWhisperGlobal: - // Inform player "Lordalfa" that he has been reported for killstealing. - if (@whispervar0$ == "Report") - message @whispervar2$,"You have been reported for "+@whispervar1$+"."; - end; -} - -This could also be used for hidden event triggers: - -- script EventManager -1,{ -OnWhisperGlobal: - if (getgmlevel() < 80) end; - if (@whispervar0$ == "pvp") { - // Script for a PVP event. - } - else if (@whispervar0$ == "mvp") { - // Script for an MVP summoning event. - } - end; -} |