Jayz Posted November 19, 2012 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 407 Reputation: 55 Joined: 07/24/12 Last Seen: October 22, 2024 Share Posted November 19, 2012 (edited) [s]if(battle_config.drop_announce){ //check if announcement is active sprintf(output, "%s dropped %s %dx at %s", sd->status.name, item_data->jname, sd->status.inventory[i].amount, map[sd->bl.m].name); intif_broadcast2(output, strlen(output) + 1, battle_config.drop_announcecolor, 0x190, 12, 0, 0);[/s] how to make that for mapannounce only? solved by cydh Edited November 19, 2012 by Zack- Quote Link to comment Share on other sites More sharing options...
goddameit Posted November 19, 2012 Group: Members Topic Count: 60 Topics Per Day: 0.01 Content Count: 562 Reputation: 219 Joined: 11/22/11 Last Seen: August 3, 2024 Share Posted November 19, 2012 (edited) if (fontColor == 0xFE000000) // This is main chat message [LuzZza] clif_MainChatMessage(mes); else clif_broadcast2(NULL, mes, len, fontColor, fontType, fontSize, fontAlign, fontY, ALL_CLIENT); ALL_CLIENT ---> ALL_SAMEMAP EDIT : I didn't test it. Edited November 19, 2012 by goddameit Quote Link to comment Share on other sites More sharing options...
Cydh Posted November 19, 2012 Group: Developer Topic Count: 153 Topics Per Day: 0.03 Content Count: 2285 Reputation: 747 Joined: 06/16/12 Last Seen: February 21 Share Posted November 19, 2012 @goddameit, it won't works, for target except ALL_CLIENT, it must declare the bl.. struct block_list *bl; bl = map_id2bl(sd->bl.id); clif_broadcast2(bl, output, (int)strlen(output)+1, battle_config.drop_announcecolor, 0x190, 12, 0, 0, ALL_SAMEMAP); @Zack-, I'm done.. I'll send you the final file.. 2 Quote Link to comment Share on other sites More sharing options...
Jayz Posted November 19, 2012 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 407 Reputation: 55 Joined: 07/24/12 Last Seen: October 22, 2024 Author Share Posted November 19, 2012 Thanks cydh Solve. Quote Link to comment Share on other sites More sharing options...
Yohann Posted February 6, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/22/13 Last Seen: August 21, 2013 Share Posted February 6, 2013 hello where can i put this? Quote Link to comment Share on other sites More sharing options...
Yohann Posted February 8, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 18 Reputation: 0 Joined: 01/22/13 Last Seen: August 21, 2013 Share Posted February 8, 2013 bump Quote Link to comment Share on other sites More sharing options...
mrlongshen Posted March 21, 2013 Group: Members Topic Count: 98 Topics Per Day: 0.02 Content Count: 1302 Reputation: 79 Joined: 12/04/12 Last Seen: September 26, 2019 Share Posted March 21, 2013 please share the src Quote Link to comment Share on other sites More sharing options...
Question
Jayz
how to make that for mapannounce only?
solved by cydh
Edited by Zack-Link to comment
Share on other sites
6 answers 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.