Page 1 of 1

Item handler rework

Posted: Tue Apr 28, 2009 5:24 pm
by threat
Hi...
I instal this patch http://www.l2jserver.com/old-forum/thre ... adid=33257 and little corrected
Where I compiled, I have error:

Code: Select all

     [javac] J:\L2jServer\java\net\sf\l2j\gameserver\model\itemcontainer\Inventory.java:314: <identifier> expected    [javac]                     player.sendSkillList();    [javac]                                         ^    [javac] J:\L2jServer\java\net\sf\l2j\gameserver\model\itemcontainer\Inventory.java:441: class, interface, or enum expected    [javac]                     player.sendSkillList();    [javac]                     ^    [javac] J:\L2jServer\java\net\sf\l2j\gameserver\model\itemcontainer\Inventory.java:442: class, interface, or enum expected    [javac]             }    [javac]             ^    [javac] J:\L2jServer\java\net\sf\l2j\gameserver\model\itemcontainer\Inventory.java:450: illegal start of expression    [javac]             }    [javac]             ^    [javac] J:\L2jServer\java\net\sf\l2j\gameserver\model\itemcontainer\Inventory.java:801: invalid method declaration; return type required    [javac]     protected Inventory()    [javac]               ^    [javac] 5 errors 
help please :(

patch with my correct for top revision

Re: Item handler rework

Posted: Wed Apr 29, 2009 11:29 am
by threat
help please correct this patch

Re: Item handler rework

Posted: Sat May 02, 2009 9:05 am
by threat
upppp
I compiled this, but in game I can't use weapon and armor. And when I enter world, I have 0 hp and 0 mp
and server show error:

Code: Select all

 Failed loading character.java.lang.NullPointerException        at net.sf.l2j.gameserver.templates.item.L2Item.checkCondition(L2Item.java:617)        at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.checkItemRestriction(L2PcInstance.java:12497)        at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.rewardSkills(L2PcInstance.java:2473)        at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.restore(L2PcInstance.java:6936)        at net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.load(L2PcInstance.java:998)        at net.sf.l2j.gameserver.network.L2GameClient.loadCharFromDisk(L2GameClient.java:459)        at net.sf.l2j.gameserver.network.clientpackets.CharacterSelect.runImpl(CharacterSelect.java:87)        at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:76)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)        at java.lang.Thread.run(Unknown Source) Client: [Character: *** - Account: *** - IP: **.***.**.**] - Failed running: [C] 14 UseItem - L2J Server Version: ${l2j.revision} - DP Revision: ${l2jdp.revision}java.lang.NullPointerException        at net.sf.l2j.gameserver.templates.item.L2Item.checkCondition(L2Item.java:617)        at net.sf.l2j.gameserver.network.clientpackets.UseItem.runImpl(UseItem.java:211)        at net.sf.l2j.gameserver.network.clientpackets.L2GameClientPacket.run(L2GameClientPacket.java:76)        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)        at java.lang.Thread.run(Unknown Source) 
maybe someone know how fix this?