Jump to content
  • 0

Request: Monster Bestiary


Question

Posted

Hello, i saw it on some servers, its very simple:

every monster kill, will be saved and can be displayed into the homepage (php i guess) and npc.

Like:

Poring / Kills: 5

Drops / Kills: 0

maybe some reward can be given, like if you killed every mob or 100 porings etc.

i would do it by myself if i know how..

8 answers to this question

Recommended Posts

Posted

O.O ? you wan to make count for all monster inside RO ?

then it would become an extremely huge table .....O.O ?

there is about...2000 ~ 3000 monster in RO...are you going to count for each of them ?

Posted

i think you would required to create a new table of SQL to store these information because you wanna display this result through php ...

create a npc..

and check for the monster id upon killed a monster..

if the monster id is the targeted monster..

then increase the monster count by 1

and save the data / update it in your SQL table.

and for php...sorry dunno how to write php ...

Posted

hm, if i got the script i would figure out how to display the information on php.. can you show me an example to check / save the monster kills?

Posted

not really this will work...havent test ...just some scratch...

OnNPCKillEvent:
if( killedrid == 1002 ){
query_sql("UPDATE `Table_Name` WHERE `Count`=`Count`+1 AND `CharacterName`='"+escape_sql( strcharinfo(0) )+"'");
}
end;

Posted

I'm not sure how viable this is.

Depending on how much players you have, the server that will host your SQL data will constantly be bombarded with queries.

Not sure how much resources will this consume, again with the number of processes that's going to be run in your server.

Posted

Hmm, the picklog also logs every kill and drop, isnt it the same? :o

why just dont make a script for reading the picklog file, if sql logs are enabled its saved into sql also.

... oh well, the picklog only logs items with their id / map / amount.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...