L2Multisell.java

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
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

L2Multisell.java

Post by jurchiks »

There exists a boolean inventoryOnly, and according to it's description, it's the same as
%objectId%_exc_multisell.
Deprecated?
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
wasabi2k
Posts: 110
Joined: Sun Oct 08, 2006 4:22 pm

Re: L2Multisell.java

Post by wasabi2k »

i think this type is still used, so you should be fine using "exec" (also core still supports this type)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: L2Multisell.java

Post by jurchiks »

umm...
I wasn't asking about _exc_multisell...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: L2Multisell.java

Post by _DS_ »

%objectId%_multisell - multisell trade
%objectId%_exc_multisell - multisell exchange

They are absolutely different.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
wasabi2k
Posts: 110
Joined: Sun Oct 08, 2006 4:22 pm

Re: L2Multisell.java

Post by wasabi2k »

oh you meant the boolean.... i dunno my advice would be to just use exec ....

after looking at the multisell parser i could find NO reference to your boolean "inventoryOnly"
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: L2Multisell.java

Post by jurchiks »

nvm then...
also, about line 199-209, maybe this would be better:

Code: Select all

			if (ing.getItemId() == 57			{				if ing.isTaxIngredient()				{					if (applyTaxes)						adenaAmount += Math.round(ing.getItemCount() * taxRate);					continue; // do not adena yet, as non-taxIngredient adena entries might occur next (order not guaranteed)				}				else				{					adenaAmount += ing.getItemCount();					continue; // do not adena yet, as taxIngredient adena entries might occur next (order not guaranteed)				}			}
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
wasabi2k
Posts: 110
Joined: Sun Oct 08, 2006 4:22 pm

Re: L2Multisell.java

Post by wasabi2k »

jurchiks wrote:nvm then...
also, about line 199-209, maybe this would be better:

Code: Select all

			if (ing.getItemId() == 57)			{				if( ing.isTaxIngredient())				{					if (applyTaxes)						adenaAmount += Math.round(ing.getItemCount() * taxRate);					continue; // do not adena yet, as non-taxIngredient adena entries might occur next (order not guaranteed)				}				else				{					adenaAmount += ing.getItemCount();					continue; // do not adena yet, as taxIngredient adena entries might occur next (order not guaranteed)				}			}
looks good yea. (corrected a little)
User avatar
momo61
Posts: 1648
Joined: Fri Jun 06, 2008 2:05 pm
Location: Europe

Re: L2Multisell.java

Post by momo61 »

_DS_ wrote:%objectId%_multisell - multisell trade
%objectId%_exc_multisell - multisell exchange

They are absolutely different.
exc_multisell is to exchange an armor part for an other ? or a weapon for an other ?

If yes, is it also possible to add ingredients + armor part for a new armor part ?
What happens if the player wears the armor before trading it ?
wasabi2k
Posts: 110
Joined: Sun Oct 08, 2006 4:22 pm

Re: L2Multisell.java

Post by wasabi2k »

an exec_multisell is a multisell which only shows the options of which you have all the needed items in your inventory.
User avatar
Mayhem
Posts: 144
Joined: Fri Dec 04, 2009 4:45 pm

Re: L2Multisell.java

Post by Mayhem »

C'mon guys! Read the documentation.txt!

Code: Select all

Multisell lists can be shown by linking them from an html using: 	<a action="bypass -h npc_%objectId%_exc_multisell 123456">OR	<a action="bypass -h npc_%objectId%_multisell 123456">where 123456 is the id of the multisell (this would show the contents of file "123456.xml")The difference between these two links is as follows:npc_%objectId%_multisell displays a FULL multisell.  That is, all of the entries of the xml are shown exactly as defined.npc_%objectId%_exc_multisell displays an "inventory only" multisell.  That is, it looks through the player's inventory for weapons and armors (not equipped) and it only shows multisell entries that have these weaponsand armors as ingredients!
Revolution burns within us all.
Image
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: L2Multisell.java

Post by jurchiks »

so that's what the inventoryOnly is used...
well that answers my question then
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: L2Multisell.java

Post by _DS_ »

boolean control from xml and exc - from html.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply