diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-11-13 11:05:24 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-11-13 11:05:24 -0300 |
commit | 8ebca66458cf59c3e721e279ce7e84a85b8878a0 (patch) | |
tree | a3fc4ef8ae3c8c5a39c4195612903710c83688de | |
parent | 31534121f83eee6a6f1ef38b6b8721468860b411 (diff) | |
download | serverdata-8ebca66458cf59c3e721e279ce7e84a85b8878a0.tar.gz serverdata-8ebca66458cf59c3e721e279ce7e84a85b8878a0.tar.bz2 serverdata-8ebca66458cf59c3e721e279ce7e84a85b8878a0.tar.xz serverdata-8ebca66458cf59c3e721e279ce7e84a85b8878a0.zip |
Luggage can now be returned to Kylian
-rw-r--r-- | npc/020-2-24/kylian.txt | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/npc/020-2-24/kylian.txt b/npc/020-2-24/kylian.txt index 446f17bb..ff41034e 100644 --- a/npc/020-2-24/kylian.txt +++ b/npc/020-2-24/kylian.txt @@ -6,6 +6,7 @@ 020-2-24,35,24,0 script Kylian NPC_KPG_MANAGER,{ function kylianLuggage; + function kylianGiveLuggage; .@q=getq(TonoriQuest_Kylian); switch (.@q) { case 0: @@ -15,12 +16,12 @@ mesn; mesq l("Please show Adrian the luggage ticket I gave you."); break; + case 2: + kylianGiveLuggage(); + break; default: mesn; - mesq l("My name is Kylian. I have some purpose in this world but I don't know what it is yet because devs are too scared to write it."); - next; - mesn; - mesq l("I just dont know what to do. I wish I could take a nap, instead."); + mesq l("I wish to take a nap now, so please do not disturb me."); break; } close; @@ -56,7 +57,38 @@ function kylianLuggage { return; } +function kylianGiveLuggage { + if (!countitem(Suitcase)) { + mesn; + mesq l("Please come back with my %s.", getitemlink(Suitcase)); + return; + } + mesn; + mesq l("Did you get my luggage from the docks?"); + select + l("Here it is."), + l("Don't worry; I'm on my way."); + mes ""; + if (@menu == 2) + return; + delitem Suitcase, 1; + quest_gp(.maxLevel, 100); + quest_item(.maxLevel, Acorn, 12); + setq TonoriQuest_Kylian, 3; + mesn; + mesq l("Ah! Very good. I have some urgent paperwork that I've been needing to attend to."); + next; + mesn; + mesq l("Before you go, I also happen to have some acorns left over from my trip. You can have them if you wish; they're rather tasty."); + mesc l("He gives you some money and acorns."); + next; + mesn; + mesq l("If, however, you don't like them, you could take them to the %s. I heard they use them to make a special kind of flour.", b(l("Tulimshar bakery"))); + return; +} + OnInit: + .maxLevel = 35; .bodytype = BODYTYPE_3; .distance = 4; end; |