Package l2p.gameserver.model.entity.residence

Examples of l2p.gameserver.model.entity.residence.Castle.addToTreasuryNoTax()


          player.sendPacket(html);
          return;
        }
        if(treasure > 0)
        {
          castle.addToTreasuryNoTax(-treasure, false, false);
          Log.add(castle.getName() + "|" + -treasure + "|CastleChamberlain", "treasury");
          player.addAdena(treasure);
        }
      }
      NpcHtmlMessage html = new NpcHtmlMessage(player, this);
View Full Code Here


          player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
          return;
        }
        if(treasure > 0)
        {
          castle.addToTreasuryNoTax(treasure, false, false);
          Log.add(castle.getName() + "|" + treasure + "|CastleChamberlain", "treasury");
          player.reduceAdena(treasure, true);
        }
      }
      NpcHtmlMessage html = new NpcHtmlMessage(player, this);
View Full Code Here

      sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      return;
    }
    player.reduceAdena(totalPrice, true);
    // Adding to treasury for Manor Castle
    castle.addToTreasuryNoTax((int) totalPrice, false, true);
    Log.add(castle.getName() + "|" + (int) totalPrice + "|BuySeed", "treasury");
    // Proceed the purchase
    for(int i = 0; i < _count; i++)
    {
      int seedId = (int) _items[i * 2 + 0];
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.