-
Posts
1,627 -
Joined
-
Last visited
-
Days Won
2 -
Feedback
0%
Content Type
Articles
Profiles
Forums
Store
Everything posted by Red-Hair-Shanks
-
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;
-
WTB Interlude Pvp Files?
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Marketplace [L2Packs & Files]
up -
hallo..anybody sell interlude pack with stable and balance files? only serius ppl post pliz !
-
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
yes i make lvl zone..1-60 lvl -
LF Lf Interlude High Pvp Server
Red-Hair-Shanks replied to kiduu93's topic in [Request] Private Servers
http://www.maxcheaters.com/topic/182039-l2j-l2trinity/ open today -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
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! -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
tnx man ;) server grand opening today at 18:00 :D -
2hour untl the grand opening !! :D
-
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
-
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
ok tnx again man..i have add you in skype...if i have probleam i will tell you ;) -
WTS [L2J] Interlude Project & More
Red-Hair-Shanks replied to VeteransOfficial's topic in Marketplace [L2Packs & Files]
-
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
i will my friend ;) dont worry :D -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
tnx my friend :) add mmotop.ru :D wait for russian ppl now :D -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
tommorow at 18:00...forum is under construction.. -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
no my friend :) -
LF Lf Interlude New Pvp Server X1000+Xp No Custom!
Red-Hair-Shanks replied to ~melody~'s topic in [Request] Private Servers
http://www.maxcheaters.com/topic/180538-l2jtrinity-grand-opening-18/ grand opening 1/8 -
http://www.maxcheaters.com/topic/180538-l2jtrinity-grand-opening-18/ open 1/8
-
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
updated! -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
GrandOpening 1/8/2014 18:00 GMT+2 -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
in a few hours website will be ready :D l2trinity.eu stay tuned guys :D -
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
top manager add adult image hosting -
Help Delicated
Red-Hair-Shanks replied to Red-Hair-Shanks's question in Request Server Development Help [Greek]
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?? -
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
-
[L2J]Trinity Server Is Online!
Red-Hair-Shanks replied to Red-Hair-Shanks's topic in Private Servers
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 ! :)
