L2Multisell.java
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
L2Multisell.java
There exists a boolean inventoryOnly, and according to it's description, it's the same as
%objectId%_exc_multisell.
Deprecated?
%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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 110
- Joined: Sun Oct 08, 2006 4:22 pm
Re: L2Multisell.java
i think this type is still used, so you should be fine using "exec" (also core still supports this type)
Wasabi2k a.k.a. Meaglin.
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2Multisell.java
umm...
I wasn't asking about _exc_multisell...
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: L2Multisell.java
%objectId%_multisell - multisell trade
%objectId%_exc_multisell - multisell exchange
They are absolutely different.
%objectId%_exc_multisell - multisell exchange
They are absolutely different.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
-
- Posts: 110
- Joined: Sun Oct 08, 2006 4:22 pm
Re: L2Multisell.java
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"
after looking at the multisell parser i could find NO reference to your boolean "inventoryOnly"
Wasabi2k a.k.a. Meaglin.
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2Multisell.java
nvm then...
also, about line 199-209, maybe this would be better:
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- Posts: 110
- Joined: Sun Oct 08, 2006 4:22 pm
Re: L2Multisell.java
looks good yea. (corrected a little)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) } }
Wasabi2k a.k.a. Meaglin.
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
- momo61
- Posts: 1648
- Joined: Fri Jun 06, 2008 2:05 pm
- Location: Europe
Re: L2Multisell.java
exc_multisell is to exchange an armor part for an other ? or a weapon for an other ?_DS_ wrote:%objectId%_multisell - multisell trade
%objectId%_exc_multisell - multisell exchange
They are absolutely different.
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 ?
-
- Posts: 110
- Joined: Sun Oct 08, 2006 4:22 pm
Re: L2Multisell.java
an exec_multisell is a multisell which only shows the options of which you have all the needed items in your inventory.
Wasabi2k a.k.a. Meaglin.
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
Support my work:
Skills Documentation(wiki)
Custom NpcSkills Table( [4000] commited! )
Simple Bugfix
Conditions Cleanup
Community Board Cleanup
- Mayhem
- Posts: 144
- Joined: Fri Dec 04, 2009 4:45 pm
Re: L2Multisell.java
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.


- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: L2Multisell.java
so that's what the inventoryOnly is used...
well that answers my question then
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.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: L2Multisell.java
boolean control from xml and exc - from html.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;