Prechádzať zdrojové kódy

Added Custom Weight Check on quests_13_2 (#6250)

Need this check to solve the bug that failed to get the item if inventory is full.

Special Thanks to: @RagnaWay @Atemo @secretdataz
mazvi 3 rokov pred
rodič
commit
fe4897548e
1 zmenil súbory, kde vykonal 6 pridanie a 0 odobranie
  1. 6 0
      npc/quests/quests_13_2.txt

+ 6 - 0
npc/quests/quests_13_2.txt

@@ -50,6 +50,7 @@
 //= 2.7a Added Izlude RE coordinates. [Euphy]
 //= 2.8 Added GM management function. [Euphy]
 //= 2.9 Added custom weight check. Fixes issue #910. [Jeybla]
+//= 2.9a Added custom weight check. To overcome failure to get gems. [Mazvi]
 //============================================================ 
 
 // Cat Paw Addition :: cat_enhance
@@ -4481,6 +4482,11 @@ function	script	jewel_13_2	{
 		close;
 	}
 	else if (ep13_2_rhea == 5) {
+		//Custom Weight Check
+		if (!checkweight(7575,2)) {
+		    mes "Sorry, your inventory is full!";
+		    close;
+		}
 		.@num = getarg(1);
 		if (checkquest(8240+.@num) == -1) {
 			mes "- Under a round pile of earth, -";