Nokia Posted May 24, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Share Posted May 24, 2012 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.. Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 24, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 5 hours ago Share Posted May 24, 2012 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 ? Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 24, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 5 hours ago Share Posted May 24, 2012 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 ... Quote Link to comment Share on other sites More sharing options...
Nokia Posted May 24, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Author Share Posted May 24, 2012 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? Quote Link to comment Share on other sites More sharing options...
Emistry Posted May 24, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 5 hours ago Share Posted May 24, 2012 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; Quote Link to comment Share on other sites More sharing options...
Nokia Posted May 24, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Author Share Posted May 24, 2012 hum, so i have to add every existing mob id in the script? o.o Quote Link to comment Share on other sites More sharing options...
Nokia Posted May 24, 2012 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 150 Reputation: 5 Joined: 12/28/11 Last Seen: May 10, 2013 Author Share Posted May 24, 2012 thats what i planned o.o should count, save and list every monster kill.. like an pokedex xd Quote Link to comment Share on other sites More sharing options...
Arcenciel Posted May 24, 2012 Group: Members Topic Count: 69 Topics Per Day: 0.01 Content Count: 1315 Reputation: 372 Joined: 12/10/11 Last Seen: August 31, 2013 Share Posted May 24, 2012 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. Quote Link to comment Share on other sites More sharing options...
Docubo Posted May 24, 2012 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 117 Reputation: 8 Joined: 05/07/12 Last Seen: May 12, 2024 Share Posted May 24, 2012 Hmm, the picklog also logs every kill and drop, isnt it the same? 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. Quote Link to comment Share on other sites More sharing options...
Question
Nokia
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.