Beret 50 Posted July 13, 2013 Is there any function that would allow me to send a global message using src ? Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted July 13, 2013 intif_broadcast(message, strlen(message)+1, type) type = 0x10 for blue, 0x20 for WoE, 0 for regular broadcast Quote Share this post Link to post Share on other sites
0 Beret 50 Posted July 13, 2013 (edited) Is it possible to do something like: - Only on the map - Only for friends - Only for party - Only guild Edited July 13, 2013 by Beret Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted July 13, 2013 intif_broadcast(msg_txt(line number), strlen(msg_txt(line number))+1, type) Replace line number with the line where the text you added is, if you're adding a new line make sure you add it at the bottom to avoid conflicts with every other core message As for your @speed comment, didnt quite get it. Quote Share this post Link to post Share on other sites
0 Beret 50 Posted July 13, 2013 It worked and this is possible? Is it possible to do something like: - Only on the map - Only for friends - Only for party - Only guild Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted July 14, 2013 I still don't understand what are you trying to say, could you elaborate more? Quote Share this post Link to post Share on other sites
0 Beret 50 Posted July 14, 2013 I still don't understand what are you trying to say, could you elaborate more? Want to know if it is possible to use intif_broadcast to send a message to: - Map - Party - Guild Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted July 14, 2013 Oh no, intif is a broadcast. If I am not wrong you can use the different send_target clif->broadcast clif->brodcast(bl, msg_txt(line), strlen(msg_txt(line))+1, 0, ALL_SAMEMAP);clif->brodcast(bl, msg_txt(line), strlen(msg_txt(line))+1, 0, PARTY);clif->brodcast(bl, msg_txt(line), strlen(msg_txt(line))+1, 0, GUILD); Quote Share this post Link to post Share on other sites
0 Beret 50 Posted July 14, 2013 (edited) Tell Me only one more thing Xgear. It is possible to use the function OnClock in src ? Edited July 14, 2013 by Beret Quote Share this post Link to post Share on other sites
0 Xgear 44 Posted July 15, 2013 Nope, what you could do is add a timer to execute a function every second to check the current time (and check if it should ontinue execution) iTimer->add_timer_interval(iTimer->gettick()+1000, my_func, 0, 0, 1000); Quote Share this post Link to post Share on other sites
0 Beret 50 Posted July 15, 2013 I understand, thanks for the help Xgear, can close the topic. Quote Share this post Link to post Share on other sites
Is there any function that would allow me to send a global message using src ?
Share this post
Link to post
Share on other sites