Jump to content
  • 0

[request](x) enchant = untradeable


Question

9 answers to this question

Recommended Posts

  • 0
Posted

	/**
 * Returns if item is tradeable.
 *
 * @return boolean
 */
public boolean isTradeable()
{
	return isAugmented() ? false : _item.isTradeable();
}

 

i found that in l2itemInstance i think i could add it over here because if an item is augmented is untradeable, but i can't understand the "return"

  • 0
Posted

	/**
 * Returns if item is tradeable.
 *
 * @return boolean
 */
public boolean isTradeable()
{
	return isAugmented() ? false : _item.isTradeable();
}

 

i found that in l2itemInstance i think i could add it over here because if an item is augmented is untradeable, but i can't understand the "return"

/**

* Returns if item is tradeable.

*

* @return boolean

*/

 

I think now you can understand. It means boolean (true/false).

  • 0
Posted

/**

* Returns if item is tradeable.

*

* @return boolean

*/

 

I think now you can understand. It means boolean (true/false).

so if that was

return isAugmented() ? true : _item.isTradeable();

the item would be tradeable?

  • 0
Posted

Sigh...

 

public boolean isTradeable()
{
	return isAugmented() ? false : _item.isTradeable();
}

 

could be translated as

 

public boolean isTradeable()
{
	if (isAugmented())
                     return false;

               return _item.isTradeable();
}

 

You need to do

 

public boolean isTradeable()
{
	if (isAugmented() || getEnchantLevel() >= XX)
                     return false;

               return _item.isTradeable();
}

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock