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

    • Inventory restock: Premium business accounts are now available.   ✔ Wallester Business EU 🇪🇺|💳 Unlimited virtual cards, physical cards, 🏦 multi-currency IBAN, ₿ crypto & stablecoin deposits. ✔ Stripe Business UK 🇬🇧|💳 Instant virtual cards (Visa/Mastercard), high-conversion checkout, multi-currency payouts, ₿ crypto payments, no-code payment links. ✔ Mercury Business US 🇺🇸|🏦 US checking & savings, 💳 unlimited virtual cards, domestic & International wires, native stablecoin settlement. ✔ Payset Business EU 🇪🇺|🏦 Multiple IBANs, UK sort code, SEPA Instant, 💳 unlimited virtual cards, multi-currency accounts. ✔ Novo Business US 🇺🇸|🏦 Business checking account, ACH payments & invoicing, 💳 virtual & physical cards, novo boost.
    • Let me see if I understand correctly, older gentlemen, when a newcomer shows up to create modern things with the help of AI, doing what you charge them to do, you point the finger and laugh. I believe that's why everything is stagnant. The product isn't for programming experts, it's for newcomers. Don't buy from you if they can do it themselves using this base. You're going to deliver a similar product, maybe even worse than this one, so why are you complaining? PowerShell, as you well know, started with it, then came new platforms and new apps, new creation models, all with different languages; I chose the simplest one for my taste. This is about being organized and knowing how to choose the right words for each situation. It's not 100%, but it already gives a good impression. Nothing is 100%, so a topic written by AI, and all the code that you charge an absurd amount for to prohibit and sell hacks, could be open source so that everyone can create new practices, new models, new information for passing packets, prohibiting the use of cheats that cause server owners to break so much. Let's remember that the Admin doesn't always shut down the server; it's the players who find problems and take advantage by buying and reselling items, and they say that the GM shuts down the server every week, but that's a lie. What they do is duplicate items with packages and sell them, but perhaps this could give some future developers a starting point to create their own protection following the model in the initial documentation. Because none of you answer a question from a newbie, you think you're superior because you have knowledge, but with AI, people like that can have the same knowledge as you, but with less practice. And if they practice a lot, 10,000 hours, they can be as good as all of you older developers in the L2J field.
    • ✨ Exclusive Offer for Marketplace Growth 🔥 Elevate your performance with a premium bonus. 💲 Top up your balance with $100 or more and receive an additional $5 credit — seamlessly added to your account. ⭐️ Designed for those who value efficiency, scale, and results. ⚡️ Effortless. Refined. Effective. 💥 Enhance your strategy today 💥
  • 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..