Is there a way to know the exact item drop rates?

Discussion about everything RO and OpenKore related. This place is NOT for ANY kind of support questions.

Moderator: Moderators

Message
Author
Pro Valkyrie Botter
Noob
Noob
Posts: 4
Joined: 05 Nov 2008, 00:00
Noob?: No

Is there a way to know the exact item drop rates?

#1 Post by Pro Valkyrie Botter »

I know there are many ragnarok database websites, but our server's item drops has been customized.


Is there a software that can extract data from ragnarok servers?


BTW, what is Aegis and Athena?

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Is there a way to know the exact item drop rates?

#2 Post by sli »

You'll have to write a plugin to calculate it for your server. That's about the best you can do. A macro might also be able to handle it, but retaining the data over multiple sessions would be, well, a total bitch.
cs : ee : realist

Barracks
Human
Human
Posts: 23
Joined: 19 Apr 2008, 13:00

Re: Is there a way to know the exact item drop rates?

#3 Post by Barracks »

Yeah I suppose what sli said would be the best method. A plugin that logged monster x's killed and item y's found?

sli
Perl Monk
Perl Monk
Posts: 810
Joined: 04 Apr 2008, 17:26
Noob?: No

Re: Is there a way to know the exact item drop rates?

#4 Post by sli »

Pretty much. You could easily have it stored in a tied hash, which would take care of storing the data across multiple sessions and allow you to easily dump the data into a readable formate. The plugin would be incredibly small. The data would pretty much be in this format:

Code: Select all

%drops = (
    'Poring' => (
        5,
        (
            'Jellopy' => 5,
            'Apple' => 2
        )
    )
);
Which would be 5 total Porings killed, which dropped a total of 5 jellopies (100% drop rate) and 2 apples (40% drop rate). You could calculate it like this:

Code: Select all

$p = ($drops{Poring}[1]{Apple} / $drops{Poring}[0]) * 100;  # $p will be 40
And if you wanted to dump the data into something readable (or a SQL schema, which would be best), you you just traverse the hash with a nested while each() loop.
cs : ee : realist

Post Reply