Преглед изворни кода

Fixes to Merchant and Blacksmith skill quests (ran into them by playing on an eA server and using RI's wiki)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@9930 54d463be-8e91-2dee-dedb-b68131a5f0ec
DracoRPG пре 18 година
родитељ
комит
50278812ad
3 измењених фајлова са 13 додато и 5 уклоњено
  1. 4 0
      npc/Changelog.txt
  2. 4 3
      npc/quests/skills/blacksmith_skills.txt
  3. 5 2
      npc/quests/skills/merchant_skills.txt

+ 4 - 0
npc/Changelog.txt

@@ -27,6 +27,10 @@ KarLaeda
 Date		Added
 ======
 2007/02/28
+	* Fixes to Merchant/Smith skill quests according to ragnainfo wiki [DracoRPG]
+	- Added missing 1 Banana Juice requirement to Cart Revolution quest
+	- Fixed the weight condition for Greed quest : you have to carry so much that
+	  you can't hold 500 more, whereas eA wanted you to be able to hold 500 more
 	* Fixed 2 questions in Rasputin's test, thanks to vvCC [Lupus]
 2007/02/27
 	* Added alternate bonus item to Alchemist Quest, thanks to b3nn0 [Lupus]

+ 4 - 3
npc/quests/skills/blacksmith_skills.txt

@@ -18,6 +18,7 @@
 //= 1.3 Fixed bugs and minor typos. Optimized [Lupus]
 //= 1.3a fixed an item ID typo, thx 2Spiritual Kid
 //= 1.3b Splitted into different files [DracoRPG]
+//= 1.3c Inverted the weight check for Greed [DracoRPG]
 //============================================================
 
 
@@ -29,7 +30,7 @@ geffen.gat,172,53,7	script	Goodday	826,{
 	mes "[Goodday]";
 	if(BaseJob!=Job_Blacksmith) goto L_nosmith;
 	if(getskilllv(1013)) goto L_alreadyhave;
-	if(Weight < 5000 || (Weight > MaxWeight-MaxWeight/10)) goto L_notstrong;
+	if(Weight < MaxWeight-5000) goto L_notstrong; // You must carry so much that you cannot add 500 more (weight is x10!)
 
 	mes "You look pretty strong, so I'll";
 	mes "teach you a little trick I found";
@@ -43,8 +44,8 @@ L_notstrong:
 	mes "Come back when you're strong";
 	mes "enough to handle the weight";
 	mes "of my ability. You will need";
-	mes "to be able to carry over 5000";
-	mes "weight, and not be over 90%.";
+	mes "to carry so much that you won't";
+	mes "be able to add 500 more weight.";
 	close;
 
 L_nosmith:

+ 5 - 2
npc/quests/skills/merchant_skills.txt

@@ -18,6 +18,7 @@
 //= 1.4 Fixed exploits [Lupus]
 //= 1.4a Fixed some typos [IVBela] 1.4b  Gershaun -> Gershuan
 //= 	changed perm. variables to temp ones [Lupus]
+//= 1.4b Added missing 1 Banana Juice requirement to Cart Revolution [DracoRPG]
 //============================================================
 
 
@@ -246,7 +247,8 @@ L_Start:
 			mes "20 Fly wings,";
 			mes "15 Iron,";
 			mes "5 Tentacles,";
-			mes "2 Grape Juice^000000.";
+			mes "2 Grape Juice,";
+			mes "1 Banana Juice^000000.";
 			next;
 			mes "[Gershuan]";
 			mes "Come back when you have all of these items.  Good luck.";
@@ -266,7 +268,8 @@ L_Start:
 			close;
 
 L_GetSkill:
-	if((countitem(533)<2) || (countitem(998)<15) || (countitem(938)<30) || (countitem(601)<20) || (countitem(962)<5)) goto sM_0;
+	if((countitem(532)<1) || (countitem(533)<2) || (countitem(998)<15) || (countitem(938)<30) || (countitem(601)<20) || (countitem(962)<5)) goto sM_0;
+	delitem 532,1;
 	delitem 533,2;
 	delitem 998,15;
 	delitem 938,30;