Jayz Posted November 19, 2012 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
goddameit Posted November 19, 2012 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
Cydh Posted November 19, 2012 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
Question
Jayz
how to make that for mapannounce only?
solved by cydh
Edited by Zack-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.