From f5b381eee17515ebe0f45479de2d740c1d2321e2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 4 Dec 2022 17:40:07 -0300 Subject: Lt. Dausen and Pylon now give Sulfur Powder --- npc/003-1/lieutenantdausen.txt | 3 ++- npc/007-1/pylon.txt | 11 ++++++++--- npc/functions/clientversion.txt | 2 ++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/npc/003-1/lieutenantdausen.txt b/npc/003-1/lieutenantdausen.txt index f112602d4..57a1a39b7 100644 --- a/npc/003-1/lieutenantdausen.txt +++ b/npc/003-1/lieutenantdausen.txt @@ -232,8 +232,9 @@ function DausenMobTutorial { mesn; mesq l("Knowledge is power... And now you have both. Use them wisely."); next; - inventoryplace Coal, 6; + inventoryplace Coal, 6, SulfurPowder, 3; getitem Coal, 6; + getitem SulfurPowder, 3; setq TulimsharQuest_MobTutorial, 8, 0; // ~30% of exp values getexp 2100, 0; diff --git a/npc/007-1/pylon.txt b/npc/007-1/pylon.txt index ed2f2c015..f6917f88a 100644 --- a/npc/007-1/pylon.txt +++ b/npc/007-1/pylon.txt @@ -93,12 +93,14 @@ L_MenuOre: L_OreOk: // Amount iron ore .@amo=rand2(1,2); + inventoryplace IronPowder, .@amo, SulfurPowder, 1; delitem IronOre, 1; Zeny = Zeny - 100; getexp 10, 0; - inventoryplace IronPowder, .@amo; getitem IronPowder, .@amo; + if (!(rand2(BaseLevel)/2)) + getitem SulfurPowder, 1; mes ""; mesn; mesq l("Here you go, I tried my best! Do you want another?"); @@ -114,14 +116,17 @@ L_Powder: // Amount .@am=rand2(1,3); + inventoryplace .@pw, .@am; + // Del items and EXP delitem .@id, 1; Zeny = Zeny - 100; getexp 60, 0; - - inventoryplace .@pw, .@am; + // Get items getitem .@pw, .@am; + if (!(rand2(BaseLevel)/2)) + getitem SulfurPowder, 1; mes ""; mesn; diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt index 48f5ca398..3f7d0abde 100644 --- a/npc/functions/clientversion.txt +++ b/npc/functions/clientversion.txt @@ -1086,6 +1086,8 @@ function script clientupdater { getitem TrainingArrow, 220; if (getq3(TulimsharQuest_Swezanne) > 30) getitem MercCard_Swezanne, 9 * (getq3(TulimsharQuest_Swezanne)/30); + if (getq(TulimsharQuest_MobTutorial) >= 8) + getitem SulfurPowder, 3; } // :// End of Regular Update System -- cgit v1.2.3-60-g2f50