summaryrefslogtreecommitdiff
path: root/npc/034-4
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-05-02 18:29:12 -0300
committerJesusaves <cpntb1@ymail.com>2022-05-02 18:29:12 -0300
commitb89fb40b9d93857479662215c7ee338f0816dece (patch)
treed2d423c0ddd77ae96e90f85abe5ee74508cbb591 /npc/034-4
parentf7ac042018ce864f6c30be3c7050e83e360e4353 (diff)
downloadserverdata-b89fb40b9d93857479662215c7ee338f0816dece.tar.gz
serverdata-b89fb40b9d93857479662215c7ee338f0816dece.tar.bz2
serverdata-b89fb40b9d93857479662215c7ee338f0816dece.tar.xz
serverdata-b89fb40b9d93857479662215c7ee338f0816dece.zip
Add the chest with rewards to those whom triumph over Gemini Quest.
Diffstat (limited to 'npc/034-4')
-rw-r--r--npc/034-4/exit.txt31
-rw-r--r--npc/034-4/intro.txt8
2 files changed, 37 insertions, 2 deletions
diff --git a/npc/034-4/exit.txt b/npc/034-4/exit.txt
index 8b1be0fc5..b321f7b8f 100644
--- a/npc/034-4/exit.txt
+++ b/npc/034-4/exit.txt
@@ -196,6 +196,37 @@ OnSick:
if (instance_id() < 0 || getcharid(1) < 1) end;
GeminiCheck(15);
// TODO: Prizes
+ if (@mystatus > 20) {
+ dispbottom l("I already took my share from this chest.");
+ end;
+ }
+ inventoryplace Iten, 1;
+ @mystatus = 99;
+ .@q = getq(HurnscaldQuest_Gemini);
+ setq HurnscaldQuest_Gemini, .@q + 1;
+ //getitem RentCart, 1; // Not rented
+ switch (.@q) {
+ case 1:
+ getitem SarabArmlet, 1;
+ dispbottom l("I found %s!", getitemlink(SarabArmlet));
+ break;
+ case 2:
+ getitem StrangeCoin, 250;
+ dispbottom l("I found %s!", "250 "+getitemlink(StrangeCoin));
+ break;
+ case 3:
+ getitem MysteriousFruit, 1;
+ dispbottom l("I found %s!", getitemlink(MysteriousFruit));
+ break;
+ default:
+ if (.@q % 2) {
+ Mobpt+=7500;
+ dispbottom l("I found %s!", "7,500 "+l("monster points"));
+ } else {
+ getexp 96000, 900;
+ dispbottom l("I found %s!", "96,000 "+l("experience points"));
+ }
+ }
end;
OnInit:
diff --git a/npc/034-4/intro.txt b/npc/034-4/intro.txt
index 734c49a1f..3615c0c91 100644
--- a/npc/034-4/intro.txt
+++ b/npc/034-4/intro.txt
@@ -146,8 +146,12 @@ OnTouch:
if (instance_id() < 0 || getcharid(1) < 1) end;
GeminiCheck(8);
.@p=getcharid(1);
- if (mobcount(getmap(), "all") > 0 || $@VALIA_STATUS[.@p] < 10) {
- dispbottom l("Uh? I can't pass. I wonder why.");
+ if ($@VALIA_STATUS[.@p] < 10) {
+ dispbottom l("Uh? I can't pass. I wonder why, maybe I need to wait?");
+ end;
+ }
+ if (mobcount(getmap(), "all") > 0) {
+ dispbottom l("I should defeat all mobs before passing.");
end;
}
if (mobcount(getmap(), "all") <= 0 && $@VALIA_STATUS[.@p] == 10) {