diff options
Diffstat (limited to 'npc/006-2-5/reed.txt')
-rw-r--r-- | npc/006-2-5/reed.txt | 76 |
1 files changed, 34 insertions, 42 deletions
diff --git a/npc/006-2-5/reed.txt b/npc/006-2-5/reed.txt index 6eb2fa26a..c880c0924 100644 --- a/npc/006-2-5/reed.txt +++ b/npc/006-2-5/reed.txt @@ -1,58 +1,50 @@ // TMW-2 scripts. // Original Authors: Hal9000 & Qwerty Dragon // TMW-2 Authors: -// +seeds -// dangerduck +// +seeds +// dangerduck // Description: // Piou captain who gives information about shrewboo mounts and the Piou Knights. 006-2-5,40,25,0 script Captain Reed NPC_PIOU_KNIGHT_L,{ - function reedHello; - function reedAboutKnights; - function reedAboutShrewboos; - .@q=getq(LilitQuest_Pouf); + function reedHello; + function reedAboutKnights; + function reedAboutShrewboos; + .@q=getq(LilitQuest_Pouf); - if (.@q <= 2) - { - .@r = rand2(3); - if (.@r == 0) - { - npctalk3 l("This is no place for a weakling like you. I suggest you leave."); - } - else if (.@r == 1) - { - npctalk3 l("Allowing you to remain on our Isles is dangerous. Tread carefully, %s.", get_race()); - } - else - { - npctalk3 l("I'll be keeping an eye on you, %s. Don't make trouble.", strcharinfo(0)); - } - } - else if (.@q == 3) - { + if (.@q <= 2) { + switch (rand2(3)) { + case 0: + npctalk3 l("This is no place for a weakling like you. I suggest you leave."); + break; + case 1: + npctalk3 l("Allowing you to remain on our Isles is dangerous. Tread carefully, %s.", get_race()); + break; + default: + npctalk3 l("I'll be keeping an eye on you, %s. Don't make trouble.", strcharinfo(0)); + } + } else if (.@q == 3) { reedHello(); } close; function reedHello { - mesn; - mesq l("Do you need assistance, Knight %s?", strcharinfo(0)); - next; - select - l("What can you tell me about the Piou Knights?"), - l("Why do Piou Knights need mounts if they can fly?"), - l("I just wanted to say hi."); - mes ""; - switch (@menu) { - case 1: - reedAboutKnights(); - break; - case 2: - reedAboutShrewboos(); - case 3: - // fallthrough - break; - } + mesn; + mesq l("Do you need assistance, Knight %s?", strcharinfo(0)); + next; + select + l("What can you tell me about the Piou Knights?"), + l("Why do Piou Knights need mounts if they can fly?"), + l("I just wanted to say hi."); + mes ""; + switch (@menu) { + case 1: + reedAboutKnights(); + break; + case 2: + reedAboutShrewboos(); + break; + } return; } |