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.
A good day to everybody here on Max-Cheaters..! Or as they say in Thessaloniki, Greece. Kalispera. Ela re bros.
I am here to bring you another masterpiece archived in the very darkest corners of l2rr.ucoz where even this archaeologist Dwarf dares not venture.
However. Such a find must be revealed. After brushing off its dust from 2014 and polishing it up a bit to fit **MODERN USERS** (DXT3 compression, skin masking, 64x64 icons).
Behold, the absolutely shocking⚡ZeuS ThuNDeR⚡armor set. Once again. Another masterpiece immortalized in the museum known as the MaxCheaters Client-Development-Discussion section.
Credits: The17heroes Gracia Final
Download: https://l2jbaylee.dev/shares/ZeuSThuNDeRArmor.rar
Question
HARDECORE
how do i get a player to sell anything in npc for 1 adena?
Note: There is the option to go item by item and set the price to 1. but that would bring me a lot of work, in the code there is an easier way?
long totalPrice = 0; // Proceed the sell for (UniqueItemHolder i : _items) { L2ItemInstance item = player.checkItemManipulation(i.getObjectId(), i.getCount(), "sell"); if ((item == null) || (!item.isSellable())) { continue; } long price = item.getReferencePrice() / 100; totalPrice += price * i.getCount(); if (((MAX_ADENA / i.getCount()) < price) || (totalPrice > MAX_ADENA)) { Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " tried to purchase over " + MAX_ADENA + " adena worth of goods.", Config.DEFAULT_PUNISH); return; } if (Config.ALLOW_REFUND) { item = player.getInventory().transferItem("Sell", i.getObjectId(), i.getCount(), player.getRefund(), player, merchant); } else { item = player.getInventory().destroyItem("Sell", i.getObjectId(), i.getCount(), player, merchant); } } player.addAdena("Sell", totalPrice, merchant, false); // Update current load as well StatusUpdate su = player.makeStatusUpdate(StatusUpdate.CUR_LOAD); player.sendPacket(su); player.sendPacket(new ExBuySellList(player, taxRate, true)); }
20 answers to this question
Recommended Posts
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.