diff options
author | Reid <reidyaro@gmail.com> | 2012-09-12 00:52:25 +0200 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2012-09-12 01:22:19 +0200 |
commit | bb0b20b77637bdcecfb067b38f961ea5dd7639bc (patch) | |
tree | 42094174bf65e8566007ceb9e1a83d5897767b06 /npc/functions | |
parent | ab91beea86320fc50e9de1b31f9e61f82a1435be (diff) | |
download | serverdata-bb0b20b77637bdcecfb067b38f961ea5dd7639bc.tar.gz serverdata-bb0b20b77637bdcecfb067b38f961ea5dd7639bc.tar.bz2 serverdata-bb0b20b77637bdcecfb067b38f961ea5dd7639bc.tar.xz serverdata-bb0b20b77637bdcecfb067b38f961ea5dd7639bc.zip |
Add Ale and Tibbo dialogues in relation with the main intro quest,
Add sailors dialogues function,
This is a try to place some NPC's dialogues in an independent file.
It'll redirect some random but pre-choosen dialogues to the NPC.
As the Gugli and Nard's quest will interfere in these dialogues, some strings are still on the NPC script.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/sailordialogue.txt | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/npc/functions/sailordialogue.txt b/npc/functions/sailordialogue.txt new file mode 100644 index 00000000..70eb85c3 --- /dev/null +++ b/npc/functions/sailordialogue.txt @@ -0,0 +1,53 @@ +// Evol scripts. +// Author: +// Reid +// Description: +// Random some sailors's dialogues between two categories of NPCs. + +function script SailorFood { + mesn; + + set @q, rand(0,400)/100; + if (@q == 0) goto l_RandomA; + if (@q == 1) goto l_RandomB; + if (@q > 1) goto l_RandomC; + +l_RandomA: + mesq l("Hey."); + next; + mesq l("What does Gugli said about the box? Was it ok?"); + next; + + menu + l("It's ok."), l_Fine, + l("He needs more food."), -; + + mes ""; + mesn; + mesq l("Oh really? I'll put some more foods on the next box then."); + + close; + +l_Fine: + mes ""; + mesn; + mesq l("It's alright! Just one more box and it'll be ok."); + + close; + +l_RandomB: + mesq l("Thanks for the help!"); + next; + mesq l("These box are way too heavy to be brought alone to the ship."); + + close; + +l_RandomC: + mesq l("I think that I'm soon done, I'll soon got a box full of @@s!", getitemlink("CrocClaw")); + next; + mesq l("And you? How's it going on your side?"); + next; + + return; + +}
\ No newline at end of file |