Amalgam 1 Posted July 18, 2013 Hello, Can anybody help me to make the guild message to be the last to load? I mean I have a login notice(using dispbottom), but the Guild message is popping out first. I want it to be the very last to appear. Quote Share this post Link to post Share on other sites
0 KeyWorld 87 Posted July 18, 2013 (edited) Hmmm... The guild notice is send with some others guild informations to the client before some parameters to avoid some display problems. All npc events runs after all this parameters. So... It can be done, but there is high chances to have big problems with data not initialized before running the scripts so I don't recommend to do this modification. Or you have to send guild informations without the notice, and send it after running script event, but I'm not sure if the function is used somewhere else. It will look to something like: src/map/guild.c if(sd->state.connect_new) { //Note that this works because it is invoked in parse_LoadEndAck before connect_new is cleared. clif->guild_belonginfo(sd,g);- clif->guild_notice(sd,g);+ //clif->guild_notice(sd,g); sd->guild_emblem_id = g->emblem_id; }src/map/clif.c //Login Event npc_script_event(sd, NPCE_LOGIN);++ if(sd->status.guild_id) {+ struct guild *g = guild_search(sd->status.guild_id);+ if(g!=NULL) {+ clif_guild_notice(sd,g);+ }+ } Edited July 18, 2013 by KeyWorld Quote Share this post Link to post Share on other sites
0 Amalgam 1 Posted July 18, 2013 Okay so the other option is okay right? but im having some compilation errors. srcmapclif.c(9874): error C2065: 'guild' : undeclared identifiersrcmapclif.c(9874): error C2223: left of '->search' must point to struct/unionsrcmapclif.c(9876): error C2065: 'clif' : undeclared identifiersrcmapclif.c(9876): error C2223: left of '->guild_notice' must point to struct/union Quote Share this post Link to post Share on other sites
0 Amalgam 1 Posted July 18, 2013 Thank you so much! KeyWorld, one more question. This is okay to the server right? Quote Share this post Link to post Share on other sites
0 KeyWorld 87 Posted July 18, 2013 Yeah it is. Quote Share this post Link to post Share on other sites
0 Amalgam 1 Posted July 18, 2013 Thank you so much again! Quote Share this post Link to post Share on other sites
Hello, Can anybody help me to make the guild message to be the last to load?
I mean I have a login notice(using dispbottom), but the Guild message is popping out first. I want it to be the very last to appear.
Share this post
Link to post
Share on other sites