
Bug Duplicate Gracia,Freya and High Five... Help Solution
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 10
- Joined: Sat Nov 29, 2014 6:55 am
Re: Bug Duplicate Gracia,Freya and High Five... Help Solution
okay, if you can update Freya for java 8 even better, surely I will use it
java 6 or oracle ta more available ...

- Zoey76
- L2j Inner Circle
- Posts: 7008
- Joined: Tue Aug 11, 2009 3:36 am
Re: Bug Duplicate Gracia,Freya and High Five... Help Solution
Updated in this commits https://github.com/L2J/L2J_Server/compa ... 3256b4d5f8l2draco wrote:okay, if you can update Freya for java 8 even better, surely I will use itjava 6 or oracle ta more available ...
After you port your work to GitHub you can share the patch and we can fix double login on Freya too

Powered by Eclipse 4.34
| Eclipse Temurin 21
| MariaDB 11.3.2
| L2J Server 2.6.3.0 - High Five 
Join our Discord! 

- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Bug Duplicate Gracia,Freya and High Five... Help Solution
For me THIS SOLUTION WORK PERFECTELLY based on 5143 (with any modifications)
( Prevent from double login not prevent this bug because ppls using any program is possible a make packt to fake login. Any ppls make this "OMS" and after this code i not have more this problem)
Index: java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java
===================================================================
--- java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (revision 5420)
+++ java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (working copy)
@@ -1573,10 +1591,17 @@
while (inv.next())
{
item = L2ItemInstance.restoreFromDb(getOwnerId(), inv);
if (item == null)
continue;
+ // Check if that item already exists in OID map.
+ if (L2World.getInstance().findObject(inv.getInt("object_id")) != null)
+ {
+ _log.log(Level.WARNING, "Item: "+ item.getObjectId() +" Has Duplied on World And Cannot be Load");
+ L2World.getInstance().removeObject(item);
+ continue;
+ }
+
if (getOwner() instanceof L2PcInstance)
{
L2PcInstance player = (L2PcInstance)getOwner();
( Prevent from double login not prevent this bug because ppls using any program is possible a make packt to fake login. Any ppls make this "OMS" and after this code i not have more this problem)
Index: java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java
===================================================================
--- java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (revision 5420)
+++ java/com/l2jserver/gameserver/model/itemcontainer/Inventory.java (working copy)
@@ -1573,10 +1591,17 @@
while (inv.next())
{
item = L2ItemInstance.restoreFromDb(getOwnerId(), inv);
if (item == null)
continue;
+ // Check if that item already exists in OID map.
+ if (L2World.getInstance().findObject(inv.getInt("object_id")) != null)
+ {
+ _log.log(Level.WARNING, "Item: "+ item.getObjectId() +" Has Duplied on World And Cannot be Load");
+ L2World.getInstance().removeObject(item);
+ continue;
+ }
+
if (getOwner() instanceof L2PcInstance)
{
L2PcInstance player = (L2PcInstance)getOwner();
Last edited by marcoviny on Sun Apr 12, 2015 6:44 pm, edited 1 time in total.
-
- Advanced User
- Posts: 1440
- Joined: Wed Apr 15, 2009 10:07 am
Re: Bug Duplicate Gracia,Freya and High Five... Help Solution
This has been patched for sometime now.
- marcoviny
- Posts: 45
- Joined: Sun Nov 07, 2010 6:22 pm
Re: Bug Duplicate Gracia,Freya and High Five... Help Solution
Every body say that fixed but work. i don't know if work on last rev,but many topics open with a same subject
I think that after listners implement maybe are fixed. But nobody share efective soluction to olders project. this soluction is fine.
To test, remove primary key from your table "Items" oon database, on duplied a item stacktable and object id (enter on world)
Zoey, i not understood, how olders commit can be identified on gidhub. I not understood nothing because not are identified by sequentials numbers...
I think that after listners implement maybe are fixed. But nobody share efective soluction to olders project. this soluction is fine.
To test, remove primary key from your table "Items" oon database, on duplied a item stacktable and object id (enter on world)
Zoey, i not understood, how olders commit can be identified on gidhub. I not understood nothing because not are identified by sequentials numbers...
-
- Posts: 3
- Joined: Tue Apr 11, 2017 3:05 pm
Re: Bug Duplicate Gracia,Freya and High Five... Help Solution
hi
i have the same problem in final server
can you tell me the code to fix it in server?
thanks
i have the same problem in final server
can you tell me the code to fix it in server?
thanks