From df4d1866f7f214ac9f583dc73a7e5c6a923fed44 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 16:46:09 -0300 Subject: Penalty: Forest Mana Fragment was lost --- npc/003-3/malindou.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index f668c99e2..227d1ba5a 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -7,6 +7,11 @@ // Take care of server updates, but instances are defined on their ships. 003-3,36,34,0 script Malindou NPC_LLOYD,{ + function UpdateBF { + .@o=getbattleflag(getarg(0)); + setbattleflag(getarg(0), .@o+getarg(1,0)); + } + Banker(.name$, "Tulimshar", 14000); close; @@ -76,6 +81,13 @@ OnInit: htput($@CONTRIBUTORS, "dustman", 50); htput($@CONTRIBUTORS, "dragonstar", 20); //htput($@CONTRIBUTORS, "", 1); + + // We must also apply penalty for losing Mana Fragments + // Forest Mana Fragment is lost: (+2% HP, +5% pop, 10s faster removal) + UpdateBF("monster_hp_rate",2); + UpdateBF("mob_count_rate",5); + UpdateBF("mob_remove_delay",-10000); + // Just copy these lines as fragments are lost end; OnPCLoginEvent: -- cgit v1.2.3-60-g2f50 From 4f7b0a67f46d4ba9ad67b5729718d62da29d65af Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 17:33:44 -0300 Subject: Penalty rebalance --- npc/003-3/malindou.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 227d1ba5a..9c4d698b7 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -83,10 +83,10 @@ OnInit: //htput($@CONTRIBUTORS, "", 1); // We must also apply penalty for losing Mana Fragments - // Forest Mana Fragment is lost: (+2% HP, +5% pop, 10s faster removal) - UpdateBF("monster_hp_rate",2); + // Forest Mana Fragment is lost: (+1% HP, +5% pop, 20s faster removal) + UpdateBF("monster_hp_rate",1); UpdateBF("mob_count_rate",5); - UpdateBF("mob_remove_delay",-10000); + UpdateBF("mob_remove_delay",-20000); // Just copy these lines as fragments are lost end; -- cgit v1.2.3-60-g2f50 From 7c11fe7b1516132ac9ec1ca9976e61428cada8ff Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 17:54:10 -0300 Subject: What bad formula was that o.o --- npc/012-3/alan.txt | 8 ++++---- npc/015-2/contrabandist.txt | 6 +++--- npc/015-3/hermit.txt | 12 ++++++------ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/npc/012-3/alan.txt b/npc/012-3/alan.txt index dbbf89d32..e1f328a23 100644 --- a/npc/012-3/alan.txt +++ b/npc/012-3/alan.txt @@ -89,8 +89,8 @@ OnInit: if ($ARKIM_ST > 1400) sellitem CursedArrow, -1, $ARKIM_ST-1400; - if ($ARKIM_ST > 1800) - sellitem PoisonArrow, -1, $ARKIM_ST-1800; + if ($ARKIM_ST > 2800) + sellitem PoisonArrow, -1, $ARKIM_ST-2800; end; @@ -105,7 +105,7 @@ OnClock1800: restoreshopitem IronArrow, -1, 500; if ($ARKIM_ST > 1400) restoreshopitem CursedArrow, -1, $ARKIM_ST-1400; - if ($ARKIM_ST > 1800) - restoreshopitem PoisonArrow, -1, $ARKIM_ST-1800; + if ($ARKIM_ST > 2800) + restoreshopitem PoisonArrow, -1, $ARKIM_ST-2800; } diff --git a/npc/015-2/contrabandist.txt b/npc/015-2/contrabandist.txt index 6f52c49af..296a3ebce 100644 --- a/npc/015-2/contrabandist.txt +++ b/npc/015-2/contrabandist.txt @@ -14,7 +14,7 @@ openshop; close; function Contraband_Unload { - if ($ARKIM_ST > 4500) + if ($ARKIM_ST > 7500) stopselling(DarkDesertMushroom); if (getarg(0,0) & 1) @@ -36,8 +36,8 @@ close; return; } function Contraband_Load { - .DDMPrice=max(30000,50000-($ARKIM_ST/2)+(4500/2)); - if ($ARKIM_ST > 4500) + .DDMPrice=max(30000,50000-($ARKIM_ST/2)+(7500/2)); + if ($ARKIM_ST > 7500) sellitem DarkDesertMushroom, .DDMPrice, 1; if (getarg(0,0) & 1) diff --git a/npc/015-3/hermit.txt b/npc/015-3/hermit.txt index 0f3a84ecd..052dafaaf 100644 --- a/npc/015-3/hermit.txt +++ b/npc/015-3/hermit.txt @@ -70,13 +70,13 @@ L_Research: select l("Thanks."), rif($ARKIM_ST >= 1400, l("Cursed Arrows")), - rif($ARKIM_ST >= 1800, l("Poison Arrows")), + rif($ARKIM_ST >= 2800, l("Poison Arrows")), rif($ARKIM_ST >= 1200, l("Piberries Infusion")), - rif($ARKIM_ST >= 1600, l("Fate's Potion")), - rif($ARKIM_ST >= 2000, l("Clotho Liquor")), - rif($ARKIM_ST >= 2700, l("Lachesis Brew")), - rif($ARKIM_ST >= 3600, l("Atropos Mixture")), - rif($ARKIM_ST >= 4500, l("Dark Desert Mushroom")); + rif($ARKIM_ST >= 2600, l("Fate's Potion")), + rif($ARKIM_ST >= 4000, l("Clotho Liquor")), + rif($ARKIM_ST >= 4700, l("Lachesis Brew")), + rif($ARKIM_ST >= 6600, l("Atropos Mixture")), + rif($ARKIM_ST >= 7500, l("Dark Desert Mushroom")); mes ""; mesn; -- cgit v1.2.3-60-g2f50 From d73ae2f95de0dbac5ddc26cdd96c2ba9b9ddb91a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 17:58:07 -0300 Subject: Stupid bug --- npc/012-5/nicholas.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/012-5/nicholas.txt b/npc/012-5/nicholas.txt index 103541c94..5639efbd2 100644 --- a/npc/012-5/nicholas.txt +++ b/npc/012-5/nicholas.txt @@ -77,7 +77,7 @@ L_Menu: l("I just want to trade."), l("I want to forge Weapons!"), l("I want to forge Shields!"), - rif(is_admin(), l("I want to forge Quivers!")), + l("I want to forge Quivers!"), l("Nothing, thanks!"); mes ""; -- cgit v1.2.3-60-g2f50 From 7d45f1d34647d928fcc87d199d0a1d625585d3c1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 18:05:35 -0300 Subject: Arkim level requeriment and logic --- npc/015-3/hermit.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/npc/015-3/hermit.txt b/npc/015-3/hermit.txt index 052dafaaf..506f7198b 100644 --- a/npc/015-3/hermit.txt +++ b/npc/015-3/hermit.txt @@ -27,7 +27,7 @@ L_Loop: next; if (.@q3 > $@ARKIM_TIMER) goto L_Timer; if (.@q3 < $@ARKIM_TIMER-(60*60*24)) setq3 HurnscaldQuest_Arkim, $@ARKIM_TIMER-(60*60*24); // Globally-bound timed quest - if (.@q2 >= 12) goto L_Timer; + if (.@q2 >= (BaseLevel-17)/3) goto L_Timer; select rif(countitem(BatWing) >= 1, l("Donate a Bat Wing")), rif(countitem(BatTeeth) >= 1, l("Donate a Bat Teeth")), @@ -58,6 +58,8 @@ L_Loop: goto L_Loop; L_Timer: + if (BaseLevel < 20) + mesc l("You need at least level 20 to help."); mesn; mesq l("You've helped me plenty. Please come back in @@", FuzzyTime($@ARKIM_TIMER+(60*60*24),2,2)); close; -- cgit v1.2.3-60-g2f50 From 922171bd45fdcd19cdb8fcf522bcf068faf38a69 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 18:12:29 -0300 Subject: Bugs must die %%e --- npc/016-1/captain.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/npc/016-1/captain.txt b/npc/016-1/captain.txt index e31c9fa28..6850fd398 100644 --- a/npc/016-1/captain.txt +++ b/npc/016-1/captain.txt @@ -146,7 +146,6 @@ OnInterIfInit: instance_attachmap("016-1", .TULIM_INSTID, 0, "016-1@Tulim"); instance_set_timeout(1000000, 1000000, .TULIM_INSTID); instance_init(.TULIM_INSTID); - end; // Hurns Instance .HURNS_INSTID = instance_create("016-1@HurnsInst", 0, IOT_NONE); -- cgit v1.2.3-60-g2f50 From dba84e72701e79ae648a290d9425b664abc4f8e0 Mon Sep 17 00:00:00 2001 From: Saulc Date: Sat, 7 Jul 2018 22:20:25 +0000 Subject: add exp + better list of item required --- npc/012-1/luffyx.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/npc/012-1/luffyx.txt b/npc/012-1/luffyx.txt index 96ac80a96..baf8f919c 100644 --- a/npc/012-1/luffyx.txt +++ b/npc/012-1/luffyx.txt @@ -27,7 +27,11 @@ L_SummerQuest: mesq l("Hey, do you know what is good on summer? @@!", getitemlink(LuffyxSummerShorts)); next; mesn; - mesq l("What about you bring me 60 @@, 40 @@ and 20 @@? And a @@!", getitemlink(CactusCocktail), getitemlink(AppleCocktail), getitemlink(CherryCocktail), getitemlink(JeansShorts)); + mes l("What about you bring me:"); + mes l("@@/60 @@", countitem(CactusCocktail), getitemlink(CactusCocktail)); + mes l("@@/40 @@", countitem(AppleCocktail), getitemlink(AppleCocktail)); + mes l("@@/20 @@", countitem(CherryCocktail), getitemlink(CherryCocktail)); + mes l("@@/1 @@", countitem(JeansShorts), getitemlink(jeansShorts)); next; select l("Not now, thanks"), @@ -49,6 +53,7 @@ L_SummerQuest: delitem CactusCocktail, 60; delitem JeansShorts, 1; getitem LuffyxSummerShorts, 1; + getexp 10000, 60; setq SQuest_Summer, 1; mesn; mesq l("Yay yay! Many thanks! Here, take the reward as promised!"); -- cgit v1.2.3-60-g2f50 From f3ba1d14d5c04063070a8b47f94dd25e7ecbdee4 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 19:23:51 -0300 Subject: That amount of experience is too high. --- npc/012-1/jack.txt | 2 +- npc/012-1/luffyx.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/012-1/jack.txt b/npc/012-1/jack.txt index c1bb45e5b..c66a1a820 100644 --- a/npc/012-1/jack.txt +++ b/npc/012-1/jack.txt @@ -106,7 +106,7 @@ L_Loop: delitem RawLog, 1; .@success=rand(6,26)-.@k; // You will never need more than 20 logs nor less than 5 logs - if (.@success == 1) { + if (.@success <= 1) { mesc l("The wood bends a little, but doesn't breaks."); getexp 295, 100; // 10% of max exp setq2 HurscaldQuest_ForestBow, 99; diff --git a/npc/012-1/luffyx.txt b/npc/012-1/luffyx.txt index baf8f919c..3f40e2685 100644 --- a/npc/012-1/luffyx.txt +++ b/npc/012-1/luffyx.txt @@ -53,7 +53,7 @@ L_SummerQuest: delitem CactusCocktail, 60; delitem JeansShorts, 1; getitem LuffyxSummerShorts, 1; - getexp 10000, 60; + getexp 6500, 120; setq SQuest_Summer, 1; mesn; mesq l("Yay yay! Many thanks! Here, take the reward as promised!"); -- cgit v1.2.3-60-g2f50 From e1b06e23d29a4f2b10f6e8da21503998f92e9759 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 19:27:45 -0300 Subject: [skip ci] Raise a little exp/gp possible rewards on Celestia's Main Quest --- npc/001-7/celestia_bossfight.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/npc/001-7/celestia_bossfight.txt b/npc/001-7/celestia_bossfight.txt index 89f57f3a3..1f2f1a06e 100644 --- a/npc/001-7/celestia_bossfight.txt +++ b/npc/001-7/celestia_bossfight.txt @@ -66,10 +66,10 @@ L_Survivor: getitem rand(CopperOre, TitaniumOre), 1; break; case 2: - getexp .@r*20, .@r; // max 2000 xp and 100 jp + getexp .@r*80, .@r*2; // max 8000 xp and 200 jp break; case 3: - Zeny=Zeny+.@r*25; // max 2500 gp + Zeny=Zeny+.@r*75; // max 7500 gp break; case 4: getitem Coal, (.@r/20); // max 5 coal -- cgit v1.2.3-60-g2f50 From 842005f9c17ef2cdcb4ff132492d0ae7b3230a87 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 19:31:24 -0300 Subject: [skip ci] Don't spawn two Yeti Kings, no matter whatever happens... --- npc/001-7/celestia_bossfight.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/npc/001-7/celestia_bossfight.txt b/npc/001-7/celestia_bossfight.txt index 1f2f1a06e..a357bf9c4 100644 --- a/npc/001-7/celestia_bossfight.txt +++ b/npc/001-7/celestia_bossfight.txt @@ -99,6 +99,8 @@ L_Survivor: next; mesn col(l("The Yeti King"), 3); mesq l("I give you five minutes to defeat me. Witness my wrath!"); + if (mobcount(.map$, "#YetiKing::OnVictory")) + close; setnpcdisplay .name$, NPC_NO_SPRITE; npctalk l("*Roaaaaaar!*"); monster .map$, .x, .y, strmobinfo(1, YetiKing), YetiKing, 1, "#YetiKing::OnVictory"; -- cgit v1.2.3-60-g2f50 From d1256756676bc59bba39f2cde886fd5916861577 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Jul 2018 19:48:51 -0300 Subject: Fix typo, blame Saulc (ah, I missed blaming him) --- npc/012-1/luffyx.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npc/012-1/luffyx.txt b/npc/012-1/luffyx.txt index 3f40e2685..d3f0adae1 100644 --- a/npc/012-1/luffyx.txt +++ b/npc/012-1/luffyx.txt @@ -31,7 +31,7 @@ L_SummerQuest: mes l("@@/60 @@", countitem(CactusCocktail), getitemlink(CactusCocktail)); mes l("@@/40 @@", countitem(AppleCocktail), getitemlink(AppleCocktail)); mes l("@@/20 @@", countitem(CherryCocktail), getitemlink(CherryCocktail)); - mes l("@@/1 @@", countitem(JeansShorts), getitemlink(jeansShorts)); + mes l("@@/1 @@", countitem(JeansShorts), getitemlink(JeansShorts)); next; select l("Not now, thanks"), -- cgit v1.2.3-60-g2f50