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();
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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