This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..
Question
xMrPwN
Hey guys, I wan the only-adena autoloot option for l2j
I tried ripping the l2jfree once but I get too many unknown symbols and stupid errors....
This is the part of l2jfree at gameserver/datatables/ItemTable.java
// Create and Init the L2ItemInstance corresponding to the Item Identifier L2ItemInstance item = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId, itemId); if (process.equalsIgnoreCase("loot") && ((!Config.AUTO_LOOT && itemId != 57 && itemId != 5575 && itemId < 6360 && itemId > 6362) || (!Config.AUTO_LOOT_ADENA && (itemId == 57 || itemId == 5575 || itemId >= 6360 && itemId <= 6362)))) { ScheduledFuture<?> itemLootShedule; long delay = 0; // if in CommandChannel and was killing a World/RaidBoss if (reference instanceof L2Boss) { if (((L2Attackable) reference).getFirstCommandChannelAttacked() != null && ((L2Attackable) reference).getFirstCommandChannelAttacked().meetRaidWarCondition(reference)) { item.setOwnerId(((L2Attackable) reference).getFirstCommandChannelAttacked().getChannelLeader().getObjectId()); delay = 300000; } else { delay = 15000; item.setOwnerId(actor.getObjectId()); } } else { item.setOwnerId(actor.getObjectId()); delay = 15000; } itemLootShedule = ThreadPoolManager.getInstance().scheduleGeneral(new ResetOwner(item), delay); item.setItemLootShedule(itemLootShedule); } if (_log.isDebugEnabled()) _log.debug("ItemTable: Item created oid:" + item.getObjectId() + " itemid:" + itemId);And these are the errors I get...
[javac] *\L2_GameServer\java\net\sf\l2j\gameserver\datatables\ItemTable.java:767: cannot find symbol [javac] symbol : constructor L2ItemInstance(int,int,int) [javac] location: class net.sf.l2j.gameserver.model.L2ItemInstance [javac] L2ItemInstance item = new L2ItemInstance(IdFactory.getInstance().getNextId(), itemId, itemId); [javac] ^ [javac] *\L2_GameServer\java\net\sf\l2j\gameserver\datatables\ItemTable.java:774: cannot find symbol [javac] symbol : class L2Boss [javac] location: class net.sf.l2j.gameserver.datatables.ItemTable [javac] if (reference instanceof L2Boss) [javac] ^ [javac] *\L2_GameServer\java\net\sf\l2j\gameserver\datatables\ItemTable.java:793: cannot find symbol [javac] symbol : class ResetOwner [javac] location: class net.sf.l2j.gameserver.datatables.ItemTable [javac] itemLootShedule = ThreadPoolManager.getInstance().scheduleGeneral(new ResetOwner(item), delay); [javac] ^ [javac] *\java\net\sf\l2j\gameserver\datatables\ItemTable.java:797: cannot find symbol [javac] symbol : method isDebugEnabled() [javac] location: class java.util.logging.Logger [javac] if (_log.isDebugEnabled()) [javac] ^ [javac] *\L2_GameServer\java\net\sf\l2j\gameserver\datatables\ItemTable.java:798: cannot find symbol [javac] symbol : method debug(java.lang.String) [javac] location: class java.util.logging.Logger [javac] _log.debug("ItemTable: Item created oid:" + item.getObjectId() + " itemid:" + itemId); [javac] ^Can someone please adjust this code to L2J for me? :)
Thanks in advance...
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now