Jump to content
  • 0

Request: Monster Bestiary


Nokia

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

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..

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 ?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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 ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

hum, so i have to add every existing mob id in the script? o.o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   5
  • Joined:  12/28/11
  • Last Seen:  

thats what i planned o.o

should count, save and list every monster kill.. like an pokedex xd

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  1315
  • Reputation:   372
  • Joined:  12/10/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  117
  • Reputation:   8
  • Joined:  05/07/12
  • Last Seen:  

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.

Link to comment
Share on other sites

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.

×
×
  • Create New...