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/sample/npc_live_dialogues.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/sample/npc_live_dialogues.txt')
-rw-r--r-- | doc/sample/npc_live_dialogues.txt | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/doc/sample/npc_live_dialogues.txt b/doc/sample/npc_live_dialogues.txt deleted file mode 100644 index 9ce628c30..000000000 --- a/doc/sample/npc_live_dialogues.txt +++ /dev/null @@ -1,53 +0,0 @@ -//===== Hercules Script ======================================= -//= Sample: Live Dialogue -//===== By: ================================================== -//= Lupus -//===== Current Version: ===================================== -//= 20131225 -//===== Description: ========================================= -//= An example of an NPC with live dialogue. -//= Note: This relies on Global_Functions.txt to run. -//============================================================ - -prontera,167,177,5 script Luppy DESERT_WOLF_B,{ - mes "[Luppy]"; - - // 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 - mes callfunc("F_Sex","What a beautiful lady!","What a handsome man!"); - - // Add some random greeting and goodbye into the menu - if (select(callfunc("F_Hi"), callfunc("F_Bye")) != 1) { - mes "[Luppy]"; - // Add some random goodbye from Global_Functions.txt - mes callfunc("F_Bye"); - close; - } - - mes "[Luppy]"; - // Give a random prize from set list of items - if (@gotstuff) { - // 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) - 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 relogging. - @gotstuff = 1; - - // Get item ID from the list of presents: Apple, Mastela Fruit, Yggdrasil Seed or Orange Juice - .@itemIDfromList = callfunc("F_RandMes", 4, Apple, Fruit_Of_Mastela, Seed_Of_Yggdrasil, Orange_Juice); - - // 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 - getitem .@itemIDfromList, 1; - close; -} |