Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Openkore not detecting correct Ammo count/Not detecting Ammo when equipped #3943

Open
Ome3370 opened this issue Jan 11, 2025 · 8 comments
Open
Labels
need info We are waiting for additional information from the author

Comments

@Ome3370
Copy link

Ome3370 commented Jan 11, 2025

------------------ Openkore Issues Template ------------------

  • Openkore version git:

-- OpenKore what-will-become-2.1 ( version ctime:2024_10_10 ) - Custom Ragnarok Online client

  • Server:
    RO ASIA
  • Bug Report / Feature Request:
    BUG
  • Summary:

Hi Guys,

I'm fairly new here so I apologize if it may look that I wanted to be spoonfed.
I'm having trouble with the openkore client not detecting the correct number of ammunition (GS/Rebel Bullet ) or not detecting them at all if equipped. Sometimes it detects the ammo when equipped but unable to count the right quantity. I noticed this happened after our recent server maintenance. This affects the capability of using the ammo as trigger to automatically get from Kafra.
I have tried searching but unable to find the exact issue. Thank you in advance.

Let me know if you need more information.

@ya4ept
Copy link
Contributor

ya4ept commented Jan 16, 2025

We need more logs

@ya4ept ya4ept added the need info We are waiting for additional information from the author label Jan 16, 2025
@alisonrag
Copy link
Contributor

provide servers.txt and more logs

@Ome3370
Copy link
Author

Ome3370 commented Jan 16, 2025

Thank you. I will gather the logs and send them here.

@Ome3370
Copy link
Author

Ome3370 commented Jan 16, 2025

console.txt
Image
Image
servers.txt

Hopefully got the needed files

@alisonrag
Copy link
Contributor

@Ome3370
did u manage to unecrypt the data from cdclient?

about issue:
go to:
src\Network\Receive\ServerType0.pm

and remove the following code:

if ( $args->{switch} eq '0B09' && $masterServer->{serverType} ne 'iRO_Renewal' && existsInList("10, 16, 17, 19", $item->{type}) ) { # workaround arrow/ammunition byte bug
    $item->{amount} = unpack("v", substr($args->{itemInfo}, $i+7, 2));
}

@Ome3370
Copy link
Author

Ome3370 commented Jan 16, 2025

Hi @alisonrag I apologize but I'm not sure where or how to do the encryption.
I will try your recommendation.
Thank you

@Ome3370
Copy link
Author

Ome3370 commented Jan 16, 2025

Hi @alisonrag so I was able to locate the file and delete the code mentioned above.
I then saved it and ran the program. However, still getting same issue. Random Arrow numbers which doesn't match or sometimes it totally disappears in the list.

Note: Not sure if this would be helpful but I found out that this only happens when the arrow is equipped. It does count it accurately when not equipped. I did a work around to unequip the arrows manually and then open the program and will equip there. It does work but kinda hassle to do everytime you need to re-open the program.

@ya4ept
Copy link
Contributor

ya4ept commented Jan 16, 2025

@Ome3370 How do you connect to the server? This server uses bot protection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need info We are waiting for additional information from the author
Projects
None yet
Development

No branches or pull requests

3 participants