Jump to content

Question

Posted (edited)

recently i've come over a way to put multiple weapon meshes in 1 ukx HOWEVER it creates a visual bug which can be somewhat 'masked' by what i believe to be server side fix. since this also has client related issues to it, i feel the fix is doable from java by replicating a player DISARMING the weapon than equipping a item

 

so, the thing is that

1: equip weapon using custom ukx

2: equip another weapon using custom ukx

3: they will 'stick' together as in weapon 1 wont dissappear

 

the fix to this is

1: equip weapon using custom ukx

2: UNEQUIP the weapon

3: equip weapon 2

from what ive been trying you have to unequip the weapon in order to 'fix' the 2nd weapon

 

what i know is

1: dropping makes the 'ghost' weapon stay

2: destroying a item makes it go away

3: breaking it with enchant makes it go away

4: crystallizing makes it go away

-----------------------------------------------------------------------------------

im not sure where or what to do for this, but ive tried adding stuff like in inventory.java in equipItem

setPaperdollItem(PAPERDOLL_RHAND, null);
 
unEquipItemInBodySlotAndRecord(slot);
Edited by LE MEMER MASTER xD

9 answers to this question

Recommended Posts

  • 0
Posted

how would i modify the char/user info? or did you mean to  

 

userinfo line:

writeD(_activeChar.getActiveWeaponItem() != null ? 40 : 20);

 

char info line:

writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));

 

what would i have to add/change? ive tried putting something like writeD(0x00) above it but when i log i get a critical error

 

 

Don't change anything, create a static charInfo packet containing uneqquiped weapon data, and send it right before the original charInfo

 

I can't detail this more its more easy for me to do it for you. What project is it?

  • 0
Posted

Its not server side, even if the weapon is not unequipped server-side your client will ignore one of the two weapons making it like client will think that the previous weapon is unequipped

 

The happens cause the server writes only one itemId on the weapon packet

 

 

What you explained above can only happen, when the two weapons have different slots server or client side

  • 0
Posted

But you can send a userInfo with itemId=0 and on the next line a userInfo with the normal itemId, that could work

  • 0
Posted

ye it will work, sending an extra userinfo/charinfo with all weaponIds as 0 right before the real userinfo/charinfo will solve the problem for sure, and its efficient and easy also

  • 0
Posted (edited)

how would i modify the char/user info? or did you mean to  

 

userinfo line:

writeD(_activeChar.getActiveWeaponItem() != null ? 40 : 20);

 

char info line:

writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));

 

what would i have to add/change? ive tried putting something like writeD(0x00) above it but when i log i get a critical error

Edited by LE MEMER MASTER xD
  • 0
Posted

how would i modify the char/user info? or did you mean to  

 

userinfo line:

writeD(_activeChar.getActiveWeaponItem() != null ? 40 : 20);

 

char info line:

writeD(_inv.getPaperdollItemId(Inventory.PAPERDOLL_RHAND));

 

what would i have to add/chance? ive tried putting something like writeD(0x00) above it but when i log i get a critical error

WolfGiaS3na, on 08 Jun 2014 - 02:17 AM, said:snapback.png

i am not dumb i can prove u in other things that u are the dumb if u want  :)

u are the dumb

are the dumb

the dumb

dumb

 

 

Thanks for this u make me famous <333333333333333333333

  • 0
Posted (edited)

http://www.twitch.tv/lememermasterxd/b/538906715 - this video contains a animated weapon in INTERLUDE

http://www.twitch.tv/lememermasterxd/b/538909346

 

thanks to xdem i can add stuff like this in interlude, without his help this would prob not make it into a live server but it will

Edited by LE MEMER MASTER xD
Guest
This topic is now closed to further replies.


  • Posts

    • this site is "close" to 20 years old man xd
    • competitive prices shyeed bow+10/ maj light set/maj jwl sets  pm me here or / discord : gabe9410
    • L2 NEXUM — SERVER FEATURES High Five · PvP · x300 · GMT+3 Play. Fight. Earn SOL. ✨ SERVER FEATURES ──────────────── ⚡ XP / SP: x300 💰 Adena: x50 👥 Party Exp / Party SP: x1.1 🐉 Raid Boss Drop: x2 🔥 Epic Boss Drop: x2 📜 Quest: x5 💚 Vitality: ON (up to x2) 🛡️ ENCHANT ──────────────── Safe Enchant: +6 Max Enchant: +30 Normal 60% · Blessed 80% · Crystal 65% · Divine 100% Olympiad field: +6 / +6 / +6 💻 WINDOWS / HWID ──────────────── 2 free · up to 4 windows VIP (HWID) 🎮 GAMEPLAY ──────────────── AutoFarm · Community Board (ALT+B) · Custom Hi5 interface DressMe · Active AntiCheat · Newbie / Safe / PvP farm zones Daily events: TvT · CTF · Domination · DM Weekly Olympiad · Weekly Sieges 📅 SCHEDULE (GMT+3) ──────────────── 🏰 Castle Sieges: Sun 20:00–22:00 (Lord 16:00 or 20:00) ⚔️ Territory War: Sat 20:00–22:00 🏆 Olympiad: Thu / Fri / Sat 18:00–00:00 · non-class 🐉 Baium: Sat random 20:00–21:00 🌋 Antharas / Valakas: Sun every 2 weeks 22:30–23:30 🧪 QA / Core / Orfen: 18–24h after death 💎 PLAY TO EARN ──────────────── Farm & fight like High Five. Crypto Auction — sell rare items for SOL. One SOL balance on the panel (Donate + Auction). ──────────────────────────────── SERVER BETA  OPENING Saturday 17 October · 20:00 GMT+3 · PvP x300 https://l2nexum.com    https://discord.com/invite/TmHftynKe5
    • I'm in to help test and trial stuff. L2 Pride brings back memories of countless farming in Cave of Trials
    • Version 0.4.0 - A geodata generator and L2J format support have been added   - Now, you can generate geodata for the server directly from the client. Most regions match server files at 99-100%. - Cruma opens and saves geodata in L2J format (.l2j). - Geodata can be converted from L2OFF to L2J and vice versa. - When exporting to L2OFF, you can immediately build a path node even if the original format is L2J. - Zones and NPCs are only displayed where there is geodata and no longer appear in mid-air.   Download
  • Topics

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