summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-08-31 21:10:43 -0300
committerJesusaves <cpntb1@ymail.com>2018-08-31 21:10:43 -0300
commitca0304d87cb0b03f0e053791bd9851d980808734 (patch)
treece98001661c87d3a0ac4ada1fda9fbaf25705de4
parent612e88f45df6c9e095fcb1c6fd88dc09bdd7558f (diff)
downloadserverdata-ca0304d87cb0b03f0e053791bd9851d980808734.tar.gz
serverdata-ca0304d87cb0b03f0e053791bd9851d980808734.tar.bz2
serverdata-ca0304d87cb0b03f0e053791bd9851d980808734.tar.xz
serverdata-ca0304d87cb0b03f0e053791bd9851d980808734.zip
Ched's reward. Minor tweak to Jhedia.
-rw-r--r--npc/003-1/ched.txt36
-rw-r--r--npc/003-8/jhedia.txt2
-rw-r--r--npc/functions/seasons.txt12
3 files changed, 47 insertions, 3 deletions
diff --git a/npc/003-1/ched.txt b/npc/003-1/ched.txt
index 0ad1e8e83..839e77e5a 100644
--- a/npc/003-1/ched.txt
+++ b/npc/003-1/ched.txt
@@ -103,11 +103,43 @@ L_Summer:
// Summer Quest Claim Rewards Time
L_Autumn:
mesc l("Your Score: @@", @ched), 1;
- mes "";
ScoreSSC;
next;
- // TODO: Do whatever reward whatever way you want whatever whatevers.
+
+ // Ensure you have free space on your inv.
+ inventoryplace NPCEyes, 1;
+
+ // Are you entitled for a Boia?
+ if (@ched >= 25) {
+ mesc l("Boias, unlike common shields, does not have any penalty!");
+ mesc l("They are filled with a strange gas which makes they deflect attacks. They are done from a material which cannot be cut easily.");
+ mesc l("They can be a bit lacking in defensive power, however.");
+ mes "";
+ }
+
+ // Give you the due boia
+ if (strcharinfo(0) == $@AUTUMN_VICTOR && @ched > 1000)
+ getitem MasterBoia, 1;
+ else if (@ched >= 1000)
+ getitem PiouBoia, 1;
+ else if (@ched >= 700)
+ getitem SnakeBoia, 1;
+ else if (@ched >= 400)
+ getitem TulimsharBoia, 1;
+ else if (@ched >= 200)
+ getitem PurpleBoia, 1;
+ else if (@ched >= 60)
+ getitem CandorBoia, 1;
+ else if (@ched >= 25)
+ getitem KidBoia, 1;
+
+ // Give you extra money reward
Zeny=Zeny+@ched;
+
+ // Give experience on 2018 Summer due extensive amount of bugs
+ getexp BaseLevel*@ched, @ched;
+
+ // The quest is complete for the year.
setq3 SQuest_Ched, 1;
closedialog;
goodbye;
diff --git a/npc/003-8/jhedia.txt b/npc/003-8/jhedia.txt
index 4a281f10b..7f206b87e 100644
--- a/npc/003-8/jhedia.txt
+++ b/npc/003-8/jhedia.txt
@@ -72,7 +72,7 @@ L_Menu:
// ingot_create(Ore, Ingot, Nº of Ore, Nº of Coal, Price);
switch (@menu) {
case 1:
- ingot_create(IronOre, IronIngot, 7, 11, 8400);
+ ingot_create(IronOre, IronIngot, 7, 10, 8400);
break;
case 2:
ingot_create(CopperOre, CopperIngot, 5, 10, 8500);
diff --git a/npc/functions/seasons.txt b/npc/functions/seasons.txt
index e29c64146..f4eee082b 100644
--- a/npc/functions/seasons.txt
+++ b/npc/functions/seasons.txt
@@ -65,6 +65,10 @@ function script SeasonReload {
if (season() == AUTUMN && $@SEASON == SUMMER) {
donpcevent("#SeasonCore::OnSummerEnd");
}
+ // Autumn extra drops
+ if (season() == AUTUMN && $@SEASON != AUTUMN) {
+ donpcevent("#SeasonCore::OnAutumnStart");
+ }
$@SEASON=season();
return;
@@ -134,6 +138,14 @@ OnSummerEnd:
delmonsterdrop(RedButterfly, Sunglasses);
end;
+OnAutumnStart:
+ // Ched's Quest Winner
+ .@nb = query_sql("SELECT c.name FROM `quest` AS i, `char` AS c WHERE i.quest_id=305 AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 1", .@name$);
+ $@AUTUMN_VICTOR=.@name$[0];
+
+
+ end;
+
OnInit:
OnHour00:
if ($@SEASON != season()) {