Non-Stackable Item Drops

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
GodKratos
L2j Veteran
L2j Veteran
Posts: 418
Joined: Fri Jan 25, 2008 6:09 am

Non-Stackable Item Drops

Post by GodKratos »

OK, Here's a question....

What happens on retail when you get more than one non-stackable item given to you?
Do you get a system message saying you have received 4 items and get 4 separate items in your inv or do you get 4 system messages saying you have received an item?

What brings this up is the Change class alterations for healers.
When you get the 4 Holy Pomanders currently on L2J you only receive one of them, even though the system message says you have earned 4.
This is because they are not stackable and our current addItems method does not handle giving multiple non-stackable items.

So do we put a loop in the givePomanders() method to give the item 4 times, or do we fix the addItems() method to handle non-stackable items?

I don't know how it is on retail so I went with the easy fix for now: :P

Code: Select all

Index: data/scripts/custom/SkillTransfer/SkillTransfer.java===================================================================--- data/scripts/custom/SkillTransfer/SkillTransfer.java	(revision 289)+++ data/scripts/custom/SkillTransfer/SkillTransfer.java	(working copy)@@ -322,7 +322,8 @@ 				if (st.getGlobalQuestVar(name).isEmpty()) 				{ 					st.saveGlobalQuestVar(name, "1");-					player.addItem(qn, PORMANDERS[index][0], PORMANDERS[index][1], npc, true);+					for (int i = 0; i < PORMANDERS[index][1]; i++)+						player.addItem(qn, PORMANDERS[index][0], 1, npc, true); 				} 			} 		}
Image
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: Non-Stackable Item Drops

Post by _DS_ »

Last time i checked it 4 pormanders given. Worksforme ?
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: Non-Stackable Item Drops

Post by Probe »

nope it gives just 1, and on retail I was SE on pts and it gave me 4 messages of acquired 1 item
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: Non-Stackable Item Drops

Post by devo »

_DS_ wrote:Last time i checked it 4 pormanders given. Worksforme ?
I reported that first day after GE was public, a lot of reports from SE that they get 1 Pomander, also in item log.
A hero of war is that what they see...
User avatar
gigiikun
L2j Veteran
L2j Veteran
Posts: 637
Joined: Wed Jan 24, 2007 10:00 am
Location: Hungary

Re: Non-Stackable Item Drops

Post by gigiikun »

Sorry than. This bug seems a little bit random. Example I have no reports from our players, and I got 4 pomanders :? .
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: Non-Stackable Item Drops

Post by devo »

Yes because its random, I created new char, and get 4 pomanders, then created the same again, and got 1. Temp fix for players was, "go and delete your current transfer skill, you should get 4 pomanders", and yes sometimes they get 4, sometimes not.
A hero of war is that what they see...
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Non-Stackable Item Drops

Post by janiii »

what about using st.giveItem() method ? what about Config.MULTIPLE_ITEM_DROP ?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
User avatar
devo
Posts: 798
Joined: Mon Jun 15, 2009 1:19 pm

Re: Non-Stackable Item Drops

Post by devo »

I had MultipleItemDrop = True on when this happen.
A hero of war is that what they see...
Post Reply