Jump to content

Red-Hair-Shanks

Members
  • Posts

    1,627
  • Joined

  • Last visited

  • Days Won

    2
  • Feedback

    0%

Everything posted by Red-Hair-Shanks

  1. this is the fixed! is fixed on frozen source! just check the updates...and also check forum for other fixes! L2ItemInstance.java return; try { - CharacterEntity characterEntity; - final L2PcInstance player = L2World.getInstance().getPlayer(getOwnerId()); - if (player != null) - { - characterEntity = player.getCharacter(); - } - else - { - characterEntity = CharacterManager.getInstance().get(_ownerId); - } + final CharacterItemEntity item = CommonManager.getInstance().getObject(CharacterItemEntity.class, (new Integer(getObjectId()).longValue())); + + if(item==null) + throw new Exception("Item " + getObjectId() + " is not present in Database and cannot be updated"); + + CharacterEntity owner; + final L2PcInstance ownerPlayer = L2World.getInstance().getPlayer(_ownerId); + if (ownerPlayer != null) + { + owner = ownerPlayer.getCharacter(); + } + else + { + owner = CharacterManager.getInstance().get(_ownerId); + } + + if(item.getCharacter().getId() != getOwnerId()){ + LOGGER.debug("ITEM "+item.getId()+" updating owner from "+item.getCharacter().getId()+" to "+getOwnerId()+" .."); + + //this update has to be done only if new owner is not the ground + if(getOwnerId()!=0){ + + CharacterEntity oldOwner; + final L2PcInstance oldOwnerPlayer = L2World.getInstance().getPlayer(new Long(item.getCharacter().getId()).intValue()); + if (oldOwnerPlayer != null) + { + oldOwner = oldOwnerPlayer.getCharacter(); + } + else + { + oldOwner = CharacterManager.getInstance().get(item.getCharacter().getId()); + } + + oldOwner.getItems().remove(item.getId()); + //newOwner.getItems().put(item.getId(), item); + item.setCharacter(owner); + //CommonManager.getInstance().update(newOwner); + CommonManager.getInstance().update(oldOwner); + + }else + throw new Exception("Item " + getObjectId() + " has not a new owner, so it should be deleted from database"); + + + } - final CharacterItemEntity item = characterEntity.getItems().get(((Number) getObjectId()).longValue()); - if (!item.getCharacter().getId().equals(characterEntity.getId())) - { - item.setCharacter(characterEntity); - LOGGER.info("update owner"); - } item.setItemId(getItemId()); item.setCount(getCount()); item.setLoc(getLocation()); item.setCustomType1(getCustomType1()); item.setCustomType2(getCustomType2()); item.setManaLeft(getMana()); - characterEntity.getItems().put(item.getId(), item); + owner.getItems().put(item.getId(), item); CommonManager.getInstance().update(item); _existsInDb = true; _storedInDb = true;
  2. hallo..anybody sell interlude pack with stable and balance files? only serius ppl post pliz !
  3. yes i make lvl zone..1-60 lvl
  4. http://www.maxcheaters.com/topic/182039-l2j-l2trinity/ open today
  5. because server base on old school servers....i dont like servers when you killed one mob you go 80 lvl....this is not lineage i know! i will put lvl up zone with all mobs lvl!
  6. tnx man ;) server grand opening today at 18:00 :D
  7. 2hour untl the grand opening !! :D
  8. we work on a new project..more information soon! we need peoples to test our server...if anybody intresting just pm me.... ~Server features~ Char's Will Be Start 1 Lvl Rates: Xp: 1000x Sp: 1000x Party Xp = 500x Party Sp = 500x Adena: 2000x Enchant: Safe Enchant: +3 Max Enchant: +20 Normal Weapon/armor/jewel/Scroll rate = 70% Blessed Weapon/armor/jewel/ Scroll rate =85% We have 3 farm zones and 1 raid boss area ~Farm zones: Gludio town (safe zone) Garden of eva Wall Of Argos Raid Boss Area:Baium ...is not easy ..you need party to kill him.Baium repsawn every 4hours Baium drop all clan eggs x2 and you can take skills to your clan! also drop medals,Ancient adena,life stones and gold bar! Augmentation: Life-Stone Skill Chance: 5% Mid Life-Stone Skill Chance: 7% High Life-Stone Skill Chance: 9% Top Life-Stone Skill Chance: 12% General Info: Interlude skills: 90% working Interlude Raidbosses: 100% working Clan skills: 100% working Seven signs: 100% working Olympiad System Every 2 weeks: 100% working Nobless: 100% working Fishing: 100% working Wedding: 100% working NPC Walkers: 100% working Cursed weapons: 100% working Balanced Classes: 100% working No Clan Penalty: 100% working Castle Siege System: 100% working No Weight Penalty: 100% working No Grade Penalty: 100% working Sub-Class System: 100% working All Noblesse Skills: 100% working All Hero Skills: 100% working All Augmentation Skills: 100% working Retail-Like Enchant Skills System: 100% working Every Buff / Dance / Song / Chant Lasts 1 Hours: 100% working C4 / C5 / Interlude Skills: 100% working Auto Loot Auto Learn Skills Unlimited Weight Subclass without Quest (Max 3) Maximum number of buffs: 60 Maximum number of Debuffs: 6 Maximum number of Clan in Ally: 3 Clan Penalty: Disabled Drop Items: Disabled Warehouse Wedding Community Board Inventory Space: 250 unstuck time: 20 second Spawn Protection: 10 second Npc report! Custom Info: Announce castle lords on enter game Heal Monsters, Raid Bosses: Disabled Vote Reward System Pvp/Pk Reward Noble via quest! top manager add(tnx Viral Dragon For share it) Events: Team VS Team (Automatic) Capture the Flag (Automatic) Death Match (Automatic) server website : http://l2trinity.eu/ site template is temporary Skype: l2trinitypvp
  9. ok tnx again man..i have add you in skype...if i have probleam i will tell you ;)
  10. i will my friend ;) dont worry :D
  11. tnx my friend :) add mmotop.ru :D wait for russian ppl now :D
  12. tommorow at 18:00...forum is under construction..
  13. http://www.maxcheaters.com/topic/180538-l2jtrinity-grand-opening-18/ grand opening 1/8
  14. http://www.maxcheaters.com/topic/180538-l2jtrinity-grand-opening-18/ open 1/8
  15. GrandOpening 1/8/2014 18:00 GMT+2
  16. in a few hours website will be ready :D l2trinity.eu stay tuned guys :D
  17. top manager add adult image hosting
  18. more to 3erw oti einai kalo kai afto..apla den mporw na katalabw gt ton ssd ton idia timi alla me mikrotero xwro... an pari kapoios ssd gia poio logo 8a ton pari? ti mporeis na sikwsis me ton ssd??
  19. magkes 8a paragkilw delicated twra..alla den 3erw poio na parw HDD skliro i SSD [40]giga CPU: 2x Intel Xeon E3 1225v2 RAM: 8 GB HDD: 300 GB ( SATA ) Virtualization: VMWare VDS Managment System: Include
  20. add npc bug report..so you can report any bug or any probleam you have when admin or gm is not online! Server is online for test..if you want join and help us to fix everything ! :)
×
×
  • Create New...

Important Information

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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock