From 288490094a7fe9167747dc78d416940759a31197 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Tue, 5 Dec 2006 13:23:07 +0000 Subject: - Massive EOL normalization & 'svn:eol-style native' flag setting for all txt/conf/h/c files. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9410 54d463be-8e91-2dee-dedb-b68131a5f0ec --- doc/whisper_sys.txt | 58 ++++++++++++++++++++++++++--------------------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'doc/whisper_sys.txt') diff --git a/doc/whisper_sys.txt b/doc/whisper_sys.txt index 553ac1399..2c786ebd5 100644 --- a/doc/whisper_sys.txt +++ b/doc/whisper_sys.txt @@ -1,29 +1,29 @@ -Adapted from: http://eathena.deltaanime.net/board/index.php?showtopic=42659 -Copied by: Massdriller -Post made by: lordalfa - -As requested by MassDriller, I made this piece of code to allow you to whisper your NPCS and let them execute some commands for you. - -An example of what you can do with it, before you eventually go on reading. - -Let's say you prepared a special NPC called NPCCommander. -You whisper to NPCCommander in Game with formatted instructions like these: - -//============================================================ - -[To NPC:Commander] Report#Killstealing#Lordalfa - -//============================================================ - -Now what happens is that this code allows you to trigger a Label called "OnWhisperGlobal" into that NPC and execute some code, passing it The values you just input. - -Values will be passed into Temp string Variables called @whispervar0$, @whispervar1$ and so on.. -In the example above: - -@whispervar0$ would contain the word "Report" -@whispervar1$ would contain the word "KillStealing" -@whispervar2$ would contain the word "Lordalfa" - -so you might prepare the NPC Label to process these Variables and give Executing Character a Feedback ( via dispbottom "message" for example ) - -Now , it's allowed to use up to 10 commands in a Row, separed by "#" character, they will be splitted and passed to the NPC Label in their respective variables, for you to process them. +Adapted from: http://eathena.deltaanime.net/board/index.php?showtopic=42659 +Copied by: Massdriller +Post made by: lordalfa + +As requested by MassDriller, I made this piece of code to allow you to whisper your NPCS and let them execute some commands for you. + +An example of what you can do with it, before you eventually go on reading. + +Let's say you prepared a special NPC called NPCCommander. +You whisper to NPCCommander in Game with formatted instructions like these: + +//============================================================ + +[To NPC:Commander] Report#Killstealing#Lordalfa + +//============================================================ + +Now what happens is that this code allows you to trigger a Label called "OnWhisperGlobal" into that NPC and execute some code, passing it The values you just input. + +Values will be passed into Temp string Variables called @whispervar0$, @whispervar1$ and so on.. +In the example above: + +@whispervar0$ would contain the word "Report" +@whispervar1$ would contain the word "KillStealing" +@whispervar2$ would contain the word "Lordalfa" + +so you might prepare the NPC Label to process these Variables and give Executing Character a Feedback ( via dispbottom "message" for example ) + +Now , it's allowed to use up to 10 commands in a Row, separed by "#" character, they will be splitted and passed to the NPC Label in their respective variables, for you to process them. -- cgit v1.2.3-70-g09d2