Skip to content

Featured Replies

Hello, I would like to ask you for help, is it possible to drop or trade an augmented weapon?

 


Get me that doubt, please!

l2jserver/gameserver/model/item/instance/L2ItemInstance.java

 

public boolean isDropable()
{
return isAugmented() ? Config.AUG_ITEM_DROP : _item.isDropable();
}
 
public boolean isTradeable()
{
return isAugmented() ? Config.AUG_ITEM_TRADE : _item.isTradeable();
}

 

public boolean isSellable()
{
return isAugmented() ? Config.AUG_ITEM_SELL : _item.isSellable();
}
 
 
------------------------------------------------------------------------------------------
 
 
l2jserver/Config.java
 
public static boolean AUG_ITEM_TRADE;
public static boolean AUG_ITEM_DROP;
public static boolean AUG_ITEM_SELL;
 
 
 
AUG_ITEM_TRADE = L2JMods.getBoolean("AugItemTrade", false);
AUG_ITEM_DROP = L2JMods.getBoolean("AugItemDrop", false);
AUG_ITEM_SELL = L2JMods.getBoolean("AugItemSell", false);
 
------------------------------------------------------------------------------------------
 
L2JMods.properties
 
# trade
AugItemTrade = True
 
# drop
AugItemDrop = True
 
# sell
AugItemSell = True
  • Author

 

l2jserver/gameserver/model/item/instance/L2ItemInstance.java

 

public boolean isDropable()
{
return isAugmented() ? Config.AUG_ITEM_DROP : _item.isDropable();
}
 
public boolean isTradeable()
{
return isAugmented() ? Config.AUG_ITEM_TRADE : _item.isTradeable();
}

 

public boolean isSellable()
{
return isAugmented() ? Config.AUG_ITEM_SELL : _item.isSellable();
}
 
 
------------------------------------------------------------------------------------------
 
 
l2jserver/Config.java
 
public static boolean AUG_ITEM_TRADE;
public static boolean AUG_ITEM_DROP;
public static boolean AUG_ITEM_SELL;
 
 
 
AUG_ITEM_TRADE = L2JMods.getBoolean("AugItemTrade", false);
AUG_ITEM_DROP = L2JMods.getBoolean("AugItemDrop", false);
AUG_ITEM_SELL = L2JMods.getBoolean("AugItemSell", false);
 
------------------------------------------------------------------------------------------
 
L2JMods.properties
 
# trade
AugItemTrade = True
 
# drop
AugItemDrop = True
 
# sell
AugItemSell = True

 

Thanks <3

  • Author

Sorry for posting, but how make also show augment when you trade.

Sure would be wonderful, I have not added this mod I asked for, but showing it in the trade would be perfect!

  • Author

Fr7QOXH.png

 

I can not edit or give spaces, how do I edit?

 

I can not edit or give spaces, how do I edit?

Fr7QOXH.png

 

I can not edit or give spaces, how do I edit?

 

I can not edit or give spaces, how do I edit?

public boolean isTradeable()
{
return isAugmented() ? false : _item.isTradeable();
}
 
 
change this.
 
 
public boolean isTradeable()
{
return isAugmented() ? Config.AUG_ITEM_TRADE : _item.isTradeable();
}
  • Author

 

 Thanks again! But my problem now is that I can not edit the java file in ECLIPSE. (I've never used java) so it's like I've locked the edit!

  • Author

i bet l2balance is going to be a great server

I'm sorry, but I'm learning, I know you're a long way away from having a server!

I'm sorry, but I'm learning, I know you're a long way away from having a server!

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.