Looking for 5165 item downgrade code

10/24/2021 07:12 HeartlessBoiYang#1
There might already be post, I tried to search for it, but I can't seem to find code for it. Would be appropriate if anyone can provide me the codes for downgrade equipment.
10/24/2021 17:02 Relic#2
Not sure about 5165 but in 5517 you send the MsgAction packet to open the window and handle the sub type in the MsgItem packet. Try it out and if it doesn't work I'll take a look for you.

Open the window:

MsgAction ([Only registered and activated users can see links. Click Here To Register...])
Offset 4 = 116
Offset 8 = 3607


Handle downgrade:

MsgItem ([Only registered and activated users can see links. Click Here To Register...])
Offset 4 = 54
Offset 8 = ClientItemId
10/25/2021 04:58 classicxseries#3
#request close
Thanks for trying to help @[Only registered and activated users can see links. Click Here To Register...], the reference didn't help me at all since 5165 is totally different. But glad I was about to figure out a different ways of coding it.
10/25/2021 05:35 Relic#4
Yeah just checked, 5165 doesn't have the "Degrade Equipment" dialog. Should be easy enough to implement via NPC dialog.
10/25/2021 05:45 classicxseries#5
Quote:
Originally Posted by Relic View Post
Yeah just checked, 5165 doesn't have the "Degrade Equipment" dialog. Should be easy enough to implement via NPC dialog.
Yes, it should be easy, but ehehe I'm studying the source and codes so it took me 3 days for trying and figuring it out. Finally got it, my code might not be the best but it work for me.

Fact about me; I have 0 knowledge of coding. what I do/did was study the codes and copy paste edit.
10/25/2021 17:09 turk55#6
Just reverse the upgrading process, instead of going up go down. EZ
10/26/2021 03:04 HeartlessBoiYang#7
Will see if I want to share it once I'm finished. Don't know if it gonna worth or not. Or if people deserve it. Lol