MvP Tomb - how to do not show minutes?

Nagad

New member
Messages
109
Points
0
Like title says, I want to delete the minutes from the MvP Tomb, showing just the hour. How to do that? 

Thanks
default_smile.png


 
map/npc.c

Code:
// 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);}
 
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
default_sad.png


 
Last edited by a moderator:
Did you recompile server?

change this line:

strftime(time, sizeof(time), "%H:%M", localtime(&nd->u.tomb.kill_time));
to that:

Code:
strftime(time, sizeof(time), "%H", localtime(&nd->u.tomb.kill_time));
and recompile the server after. It should be working perfectly.
 
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

 
Last edited by a moderator:
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)

 
Last edited by a moderator:
Last edited by a moderator:
Hi Dastgir
default_smile.png
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

 
Last edited by a moderator:
Back
Top