Jump to content
  • 0

Question

Posted

any one know how to change the quest weight like when you finish a quest and try to turn in you items says you need to be under 80% and you have to empty tons of items to finish quest.

 

any way to change that so you don't have to empty like not count items in your quest inventory as your total inventory or something?

 

thanks for help.

4 answers to this question

Recommended Posts

  • 0
Posted

any one know how to change the quest weight like when you finish a quest and try to turn in you items says you need to be under 80% and you have to empty tons of items to finish quest.

 

any way to change that so you don't have to empty like not count items in your quest inventory as your total inventory or something?

 

thanks for help.

  • 0
Posted

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java	(revision 4524)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java	(working copy)
@@ -24,7 +24,6 @@
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.network.serverpackets.TutorialCloseHtml;
import com.l2jserver.gameserver.network.serverpackets.TutorialShowHtml;
import com.l2jserver.gameserver.network.serverpackets.TutorialShowQuestionMark;
@@ -324,14 +323,14 @@
		int newJobLevel = currentClassId.level() + 1;

		// Weight/Inventory check
-		if(!Config.CLASS_MASTER_SETTINGS.getRewardItems(newJobLevel).isEmpty())
+		/*if(!Config.CLASS_MASTER_SETTINGS.getRewardItems(newJobLevel).isEmpty())
		{
			if (player.getWeightPenalty() >= 3 || (player.getInventoryLimit() * 0.8 <= player.getInventory().getSize(false)))
			{
				player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
				return false;
			}
-		}
+		}*/

		// check if player have all required items for class transfer
		for (int _itemId : Config.CLASS_MASTER_SETTINGS.getRequireItems(newJobLevel).keys())
Index: java/com/l2jserver/gameserver/instancemanager/FourSepulchersManager.java
===================================================================
--- java/com/l2jserver/gameserver/instancemanager/FourSepulchersManager.java	(revision 4524)
+++ java/com/l2jserver/gameserver/instancemanager/FourSepulchersManager.java	(working copy)
@@ -44,9 +44,7 @@
import com.l2jserver.gameserver.model.actor.instance.L2SepulcherMonsterInstance;
import com.l2jserver.gameserver.model.actor.instance.L2SepulcherNpcInstance;
import com.l2jserver.gameserver.model.quest.QuestState;
-import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.templates.chars.L2NpcTemplate;
import com.l2jserver.gameserver.util.Util;
import com.l2jserver.util.Rnd;
@@ -936,11 +934,11 @@
					return;
				}

-				if (player.getWeightPenalty() >= 3)
+				/*if (player.getWeightPenalty() >= 3)
				{
					mem.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
					return;
-				}
+				}*/
			}
		}
		else if (Config.FS_PARTY_MEMBER_COUNT <= 1 && player.isInParty())
@@ -964,11 +962,11 @@
					return;
				}

-				if (player.getWeightPenalty() >= 3)
+				/*if (player.getWeightPenalty() >= 3)
				{
					mem.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
					return;
-				}
+				}*/
			}
		}
		else
@@ -985,11 +983,11 @@
				return;
			}

-			if (player.getWeightPenalty() >= 3)
+			/*if (player.getWeightPenalty() >= 3)
			{
				player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
				return;
-			}
+			}*/
		}

		if (!isEntryTime())
Index: data/scripts/handlers/bypasshandlers/QuestLink.java
===================================================================
--- data/scripts/handlers/bypasshandlers/QuestLink.java	(revision 7829)
+++ data/scripts/handlers/bypasshandlers/QuestLink.java	(working copy)
@@ -127,11 +127,11 @@

		if (q != null)
		{
-			if ((q.getQuestIntId() >= 1 && q.getQuestIntId() < 20000) && (player.getWeightPenalty() >= 3 || !player.isInventoryUnder80(true)))
+			/*if ((q.getQuestIntId() >= 1 && q.getQuestIntId() < 20000) && (player.getWeightPenalty() >= 3 || !player.isInventoryUnder80(true)))
			{
				player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
				return;
-			}
+			}*/

			if (qs == null)
			{

tested, working

  • 0
Posted

### Eclipse Workspace Patch 1.0
#P L2J_Server
Index: java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java
===================================================================
--- java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java	(revision 4524)
+++ java/com/l2jserver/gameserver/model/actor/instance/L2ClassMasterInstance.java	(working copy)
@@ -24,7 +24,6 @@
import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.network.serverpackets.TutorialCloseHtml;
import com.l2jserver.gameserver.network.serverpackets.TutorialShowHtml;
import com.l2jserver.gameserver.network.serverpackets.TutorialShowQuestionMark;
@@ -324,14 +323,14 @@
		int newJobLevel = currentClassId.level() + 1;

		// Weight/Inventory check
-		if(!Config.CLASS_MASTER_SETTINGS.getRewardItems(newJobLevel).isEmpty())
+		/*if(!Config.CLASS_MASTER_SETTINGS.getRewardItems(newJobLevel).isEmpty())
		{
			if (player.getWeightPenalty() >= 3 || (player.getInventoryLimit() * 0.8 <= player.getInventory().getSize(false)))
			{
				player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
				return false;
			}
-		}
+		}*/

		// check if player have all required items for class transfer
		for (int _itemId : Config.CLASS_MASTER_SETTINGS.getRequireItems(newJobLevel).keys())
Index: java/com/l2jserver/gameserver/instancemanager/FourSepulchersManager.java
===================================================================
--- java/com/l2jserver/gameserver/instancemanager/FourSepulchersManager.java	(revision 4524)
+++ java/com/l2jserver/gameserver/instancemanager/FourSepulchersManager.java	(working copy)
@@ -44,9 +44,7 @@
import com.l2jserver.gameserver.model.actor.instance.L2SepulcherMonsterInstance;
import com.l2jserver.gameserver.model.actor.instance.L2SepulcherNpcInstance;
import com.l2jserver.gameserver.model.quest.QuestState;
-import com.l2jserver.gameserver.network.SystemMessageId;
import com.l2jserver.gameserver.network.serverpackets.NpcHtmlMessage;
-import com.l2jserver.gameserver.network.serverpackets.SystemMessage;
import com.l2jserver.gameserver.templates.chars.L2NpcTemplate;
import com.l2jserver.gameserver.util.Util;
import com.l2jserver.util.Rnd;
@@ -936,11 +934,11 @@
					return;
				}

-				if (player.getWeightPenalty() >= 3)
+				/*if (player.getWeightPenalty() >= 3)
				{
					mem.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
					return;
-				}
+				}*/
			}
		}
		else if (Config.FS_PARTY_MEMBER_COUNT <= 1 && player.isInParty())
@@ -964,11 +962,11 @@
					return;
				}

-				if (player.getWeightPenalty() >= 3)
+				/*if (player.getWeightPenalty() >= 3)
				{
					mem.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
					return;
-				}
+				}*/
			}
		}
		else
@@ -985,11 +983,11 @@
				return;
			}

-			if (player.getWeightPenalty() >= 3)
+			/*if (player.getWeightPenalty() >= 3)
			{
				player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
				return;
-			}
+			}*/
		}

		if (!isEntryTime())
Index: data/scripts/handlers/bypasshandlers/QuestLink.java
===================================================================
--- data/scripts/handlers/bypasshandlers/QuestLink.java	(revision 7829)
+++ data/scripts/handlers/bypasshandlers/QuestLink.java	(working copy)
@@ -127,11 +127,11 @@

		if (q != null)
		{
-			if ((q.getQuestIntId() >= 1 && q.getQuestIntId() < 20000) && (player.getWeightPenalty() >= 3 || !player.isInventoryUnder80(true)))
+			/*if ((q.getQuestIntId() >= 1 && q.getQuestIntId() < 20000) && (player.getWeightPenalty() >= 3 || !player.isInventoryUnder80(true)))
			{
				player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.INVENTORY_LESS_THAN_80_PERCENT));
				return;
-			}
+			}*/

			if (qs == null)
			{

tested, working

 

Thanks for that.

Guest
This topic is now closed to further replies.


×
×
  • Create New...