Virtue Posted January 16, 2023 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Share Posted January 16, 2023 (edited) Spoiler Hello rA, I was trying to include map name in rare drop announce and was able to manage to do it but it causes the issue below: Spoiler The mapserver crashes after clicking retry, and ignore does let the server continue. Here's what I did: //A Rare Drop Global Announce by Lupus if( mvp_sd && md->db->dropitem[i].rate <= battle_config.rare_drop_announce ) { char message[128]; sprintf (message, msg_txt(NULL,541), mvp_sd->status.name, md->name, mapindex_id2name(mvp_sd->bl.m), it->ename.c_str(), (float)drop_rate/100); //MSG: "'%s' won %s's %s (chance: %0.02f%%)" intif_broadcast(message,strlen(message)+1,BC_DEFAULT); } I was also looking to chance the color but I've tried replacing BC_DEFAULT to 0xFFFFFF just to check, but nothing happens. found the issue. now the color part is the only thing left. Edited January 16, 2023 by Virtue Quote Link to comment Share on other sites More sharing options...
0 Virtue Posted January 16, 2023 Group: Members Topic Count: 92 Topics Per Day: 0.02 Content Count: 354 Reputation: 22 Joined: 11/17/11 Last Seen: May 12, 2024 Author Share Posted January 16, 2023 Solved the Rare drop announce by increasing char message and using intif_broadcast2 instead of intif_broadcast to change the color. Quote Link to comment Share on other sites More sharing options...
Question
Virtue
Hello rA,I was trying to include map name in rare drop announce and was able to manage to do it but it causes the issue below:The mapserver crashes after clicking retry, and ignore does let the server continue.Here's what I did:I was also looking to chance the color but I've tried replacing BC_DEFAULT to 0xFFFFFF just to check, but nothing happens.found the issue. now the color part is the only thing left.
Edited by VirtueLink to comment
Share on other sites
1 answer 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.