diff options
author | euphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-10-03 23:13:33 +0000 |
---|---|---|
committer | euphyy <euphyy@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-10-03 23:13:33 +0000 |
commit | bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d (patch) | |
tree | 65732204e49c51946b48244eabaeae2747cc7e81 /doc/sample/npc_live_dialogues.txt | |
parent | d4cec2529589b43bb4fd70ba79589bc1bb75da98 (diff) | |
download | hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.gz hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.bz2 hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.tar.xz hercules-bafe9ca1ceaac5554b4716b7b5b4911c3f40a51d.zip |
* Standardization of doc\sample\ folder.
* Deleted doc\sample\PCLoginEvent.txt, which contained outdated information.
* Follow-up r16812, fixed file encoding.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16813 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'doc/sample/npc_live_dialogues.txt')
-rw-r--r-- | doc/sample/npc_live_dialogues.txt | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/doc/sample/npc_live_dialogues.txt b/doc/sample/npc_live_dialogues.txt index a82c14e89..6ba1c7ee2 100644 --- a/doc/sample/npc_live_dialogues.txt +++ b/doc/sample/npc_live_dialogues.txt @@ -1,51 +1,54 @@ -//by Lupus. -// *** Usage of Global_Functions.txt (you can translate Global_Functions.txt function messages) -// Here's a polite wolf NPC ^_- Luppy -// learn how to make your NPC more alive. -// PS don't use it as a normal NPC in your server. It's exploitable 8) +//===== rAthena Script ======================================= +//= Sample: Live Dialogue +//===== By: ================================================== +//= Lupus +//===== Current Version: ===================================== +//= 20070320 +//===== Description: ========================================= +//= An example of an NPC with live dialogue. +//= Note: This relies on Global_Functions.txt to run. +//============================================================ prontera,167,177,5 script Luppy 1107,{ - mes "[Luppy]"; + mes "[Luppy]"; - //say random greeting from Global_Functions.txt + // Say a random greeting from Global_Functions.txt mes callfunc("F_Hi"); - //say a compliment according to player's gender - //1st string is for FEMALE, 2nd for MALE + // Say a compliment according to player's gender + // 1st string is for FEMALE, 2nd for MALE mes callfunc("F_Sex","What a beautiful lady!","What a handsome man!"); - //add some random greeting and goodbye into the menu + // Add some random greeting and goodbye into the menu menu callfunc("F_Hi"),-, callfunc("F_Bye"),M_BYE; - mes "[Luppy]"; - //give a random prize from set list of items + mes "[Luppy]"; + // Give a random prize from set list of items if(@gotstuff){ - //again, say stuff according to player's gender + // Again, say stuff according to player's gender mes "I like "+callfunc("F_Sex","smiling ladies!","bloody pirates!"); - //show one of 3 emotion from the list (we added ,1 to show emotion over PLAYER's head) + // Show one of 3 emotion from the list (we added ,1 to show emotion over PLAYER's head) emotion callfunc("F_RandMes",3,e_scissors,e_kis,e_pat),1; close; } - //we set a temp var to give present just once. Player can get more by RE-entering the server + // We set a temp var to give present just once. Player can get more by relogging. set @gotstuff,1; - //get item Id from the list of presents: Apple, Mastela Fruit, Yggdrasil Seed or Orange Juice + // Get item ID from the list of presents: Apple, Mastela Fruit, Yggdrasil Seed or Orange Juice set @itemIDfromList, callfunc("F_RandMes",4,512,522,608,620); - //again, say stuff according to player's gender + // Again, say stuff according to player's gender mes "Hey, "+callfunc("F_Sex","sister!","brother!")+" I have "+getitemname(@itemIDfromList)+" for you!"; - //get the item from the list + // Get the item from the list getitem @itemIDfromList,1; close; M_BYE: mes "[Luppy]"; - //add some random goodbye from Global_Functions.txt + // Add some random goodbye from Global_Functions.txt mes callfunc("F_Bye"); close; -} - -//Please, be more creative. Or else this li'l wolfy would eat you up!
\ No newline at end of file +}
\ No newline at end of file |