Jump to content
  • 0

[request](x) enchant = untradeable


Napster321

Question

9 answers to this question

Recommended Posts

  • 0

	/**
 * 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"

Link to comment
Share on other sites

  • 0

	/**
 * 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).

Link to comment
Share on other sites

  • 0

/**

* 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?

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

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...