Nagad 1 Posted July 1, 2015 Like title says, I want to delete the minutes from the MvP Tomb, showing just the hour. How to do that? Thanks Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 1, 2015 Did you recompile server? change this line: strftime(time, sizeof(time), "%H:%M", localtime(&nd->u.tomb.kill_time)); to that: strftime(time, sizeof(time), "%H", localtime(&nd->u.tomb.kill_time)); and recompile the server after. It should be working perfectly. Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 1, 2015 map/npc.c // MvP tomb [GreenBox]void run_tomb(struct map_session_data* sd, struct npc_data* nd) { char buffer[200]; char time[10]; strftime(time, sizeof(time), "%H:%M", localtime(&nd->u.tomb.kill_time)); // TODO: Find exact color? snprintf(buffer, sizeof(buffer), msg_sd(sd,857), nd->u.tomb.md->db->name); // "[ ^EE0000%s^000000 ]" clif->scriptmes(sd, nd->bl.id, buffer); clif->scriptmes(sd, nd->bl.id, msg_sd(sd,858)); // "Has met its demise" snprintf(buffer, sizeof(buffer), msg_sd(sd,859), time); // "Time of death : ^EE0000%s^000000" clif->scriptmes(sd, nd->bl.id, buffer); clif->scriptmes(sd, nd->bl.id, msg_sd(sd,860)); // "Defeated by" snprintf(buffer, sizeof(buffer), msg_sd(sd,861), nd->u.tomb.killer_name[0] ? nd->u.tomb.killer_name : msg_sd(sd,15)); // "[^EE0000%s^000000]" / "Unknown" clif->scriptmes(sd, nd->bl.id, buffer); clif->scriptclose(sd, nd->bl.id);} Quote Share this post Link to post Share on other sites
0 Nagad 1 Posted July 1, 2015 (edited) Hi Oxxy I appreciate your help, I was trying to work on it 5 hours ago, but I didn't manage to do what I want... Apparently, this row : strftime(time, sizeof(time), "%H:%M", localtime(&nd->u.tomb.kill_time)); doesn't change nothing, even if you remove it Edited July 1, 2015 by Nagad Quote Share this post Link to post Share on other sites
0 Nagad 1 Posted July 1, 2015 (edited) That is exactly what I did, nothing changed... As I said, I even tried to remove the entire row just to do an experiment, I recomplied all and the tomb was exactly the same, I don't understand how it is possible Edited July 1, 2015 by Nagad Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 1, 2015 Make sure ./configure and then make clean, it have to work :/ Quote Share this post Link to post Share on other sites
0 Nagad 1 Posted July 1, 2015 Ok I will try again and I will let you know Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 1, 2015 Tried it by myself. Doing the thing I did. It only shows hours for now. 1 Nagad reacted to this Quote Share this post Link to post Share on other sites
0 Nagad 1 Posted July 1, 2015 (edited) In this case I think I'm doing something wrong when recompiling then... I have CentOS, to recompile I follow this procedure: ./athena-start stop ./configure --enable-packetver=20140416 make clean make sql After that I get this message: checking... Check complete. Looks good, a nice Athena! Now Started Athena. So no errors. Then I restart the server with ./athena-start start and I log-in... If the MvP Tomb is not changing for me, means that the code is not recompiled for real. Is it possible that because it is a sub-server (login-server is disabled, only char-server and map-server are loaded) there are conflicts? Actually my server is organized in this way: Main (login+char+map) Dev (char+map only, using the same login used by Main) Actually I'm recompiling "Dev" (and no, I'm not recompilng "Main" by mistake ahahaha I triple-checked the path) Edited July 1, 2015 by Nagad Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 1, 2015 Im not sure what can be the problem XD Did you check if its right npc.c? Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 1, 2015 try recompiling main server aswell XD if its possible just to see if its k Quote Share this post Link to post Share on other sites
0 Nagad 1 Posted July 1, 2015 ahahahaha ok.. actually I'm following this guide http://herc.ws/wiki/Installation_(CentOS) another guy told me to use "make server" command but is not the case I think xD Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted July 1, 2015 ahahahaha ok.. actually I'm following this guide http://herc.ws/wiki/Installation_(CentOS) another guy told me to use "make server" command but is not the case I think xD Try doingmake sql And post the logs(maybe there's some error you are missing to see) Quote Share this post Link to post Share on other sites
0 Nagad 1 Posted July 1, 2015 (edited) Hi Dastgir this is what I do: http://herc.ws/board/topic/10032-mvp-tomb-how-to-do-not-show-minutes/#entry59200 However, I just tried to add errors on purpose, just to test if the compiler is compiling for real: It found all of them, so the compiler is working fine... I found the problem, my friend renamed map-server and char-server to map-server2 and char-server2 -.-'' Now everything is working fine, thank you all for your help and patience guys! <3 Edited July 1, 2015 by Nagad Quote Share this post Link to post Share on other sites
0 Mystery 594 Posted July 2, 2015 This was source support. Not client. Topic moved. Quote Share this post Link to post Share on other sites
Like title says, I want to delete the minutes from the MvP Tomb, showing just the hour. How to do that?
Thanks
Share this post
Link to post
Share on other sites