From ca0304d87cb0b03f0e053791bd9851d980808734 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 31 Aug 2018 21:10:43 -0300 Subject: Ched's reward. Minor tweak to Jhedia. --- npc/003-1/ched.txt | 36 ++++++++++++++++++++++++++++++++++-- npc/003-8/jhedia.txt | 2 +- npc/functions/seasons.txt | 12 ++++++++++++ 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()) { -- cgit v1.2.3-70-g09d2