L2Multisell.java
Posted: Sun Feb 28, 2010 2:52 pm
There exists a boolean inventoryOnly, and according to it's description, it's the same as
%objectId%_exc_multisell.
Deprecated?
%objectId%_exc_multisell.
Deprecated?
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)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) } }
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.
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!