diff options
author | Reid <reidyaro@gmail.com> | 2016-02-28 02:26:20 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-02-28 02:26:20 +0100 |
commit | 438992b59571f36b85ad9f95a9bb1e40449a95b3 (patch) | |
tree | 6f465d6257db32c911e3b6761450df078b632e90 | |
parent | 20da1052a1bd04a7e9c1c9d446c85cb45a57ed34 (diff) | |
download | serverdata-438992b59571f36b85ad9f95a9bb1e40449a95b3.tar.gz serverdata-438992b59571f36b85ad9f95a9bb1e40449a95b3.tar.bz2 serverdata-438992b59571f36b85ad9f95a9bb1e40449a95b3.tar.xz serverdata-438992b59571f36b85ad9f95a9bb1e40449a95b3.zip |
Add a third value on the rumly's quest var and fix some wrong name call.
-rw-r--r-- | npc/001-1/rumly.txt | 32 |
1 files changed, 22 insertions, 10 deletions
diff --git a/npc/001-1/rumly.txt b/npc/001-1/rumly.txt index d6f8cd9c..5a8cd778 100644 --- a/npc/001-1/rumly.txt +++ b/npc/001-1/rumly.txt @@ -9,13 +9,14 @@ // 0 Player hasn't met Rumly // 1 Last time player has told that he will never come back // 2 Last time player has told that he will come back later +// 3 Player has already reset his stat // Others: // .@visited - Rumly actual variable // .@wasSP - free status points before reset 001-1,35,125,0 script Rumly#001-1 NPC_RUMLY,{ - setnpcdir "Rumly", 2; + setnpcdir "Rumly#001-1", 2; stopnpctimer; initnpctimer; @@ -70,7 +71,10 @@ L_Menu: switch (@menuret) { case 0: - setq General_Rumly, 2; + if (.@visited < 2) + { + setq General_Rumly, 2; + } speech 5, l("Great! Can't wait for tasty mushrooms!"); @@ -87,7 +91,7 @@ L_Menu: case 2: goto L_ResetStats; case 3: - if (.@visited != 2) goto L_Quit; + if (.@visited < 2) goto L_Quit; .@rand = rand (2); @@ -150,7 +154,10 @@ L_ConfirmReset: .@wasSP = StatusPoint; resetstatus; - + if (.@visited < 3) + { + setq General_Rumly, 3; + } if (StatusPoint == .@wasSP) { speech 4, @@ -176,15 +183,20 @@ L_ConfirmReset: } L_Later: - setq General_Rumly, 2; - + if (.@visited < 2) + { + setq General_Rumly, 2; + } speech 5, l("Come back soon! And bring a plushroom with you!"); goto L_Quit; L_Never: - setq General_Rumly, 1; + if (.@visited < 2) + { + setq General_Rumly, 1; + } speech 5, lg("I am sure that you will change your mind."); @@ -192,7 +204,7 @@ L_Never: goto L_Quit; L_Quit: - setnpcdir "Rumly", 4; + setnpcdir "Rumly#001-1", 4; stopnpctimer; initnpctimer; @@ -201,8 +213,8 @@ L_Quit: OnTimer1800: stopnpctimer; - if (getnpcdir ("Rumly") == 2) setnpcdir "Rumly", 6; - if (getnpcdir ("Rumly") == 4) setnpcdir "Rumly", 8; + if (getnpcdir ("Rumly#001-1") == 2) setnpcdir "Rumly#001-1", 6; + if (getnpcdir ("Rumly#001-1") == 4) setnpcdir "Rumly#001-1", 8; end; |