Jump to content
  • 0
Nagad

MvP Tomb - how to do not show minutes?

Question

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

15 answers to this question

Recommended Posts

  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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);}

Share this post


Link to post
Share on other sites
  • 0

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 by Nagad

Share this post


Link to post
Share on other sites
  • 0

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 by Nagad

Share this post


Link to post
Share on other sites
  • 0

Make sure ./configure and then make clean, it have to work :/

Share this post


Link to post
Share on other sites
  • 0

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 by Nagad

Share this post


Link to post
Share on other sites
  • 0

Im not sure what can be the problem XD Did you check if its right npc.c?

Share this post


Link to post
Share on other sites
  • 0

try recompiling main server aswell XD if its possible just to see if its k :D

Share this post


Link to post
Share on other sites
  • 0

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 doing

make sql

And post the logs(maybe there's some error you are missing to see)

Share this post


Link to post
Share on other sites
  • 0

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:


inPggQN.jpg

 

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 by Nagad

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.