Global message

Beret

High Council
Messages
245
Points
28
Age
31
Emulator
Is there any function that would allow me to send a global message using src ?

 
intif_broadcast(message, strlen(message)+1, type)

type = 0x10 for blue, 0x20 for WoE, 0 for regular broadcast

 
Is it possible to do something like:

 
- Only on the map
- Only for friends
- Only for party
- Only guild
 
Last edited by a moderator:
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. 

 
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
 
I still don't understand what are you trying to say, could you elaborate more?

 
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
 
Oh no, intif is a broadcast.

If I am not wrong you can use the different send_target clif->broadcast

Code:
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);
 
Tell Me only one more thing Xgear. It is possible to use the function OnClock in src ?

 
Last edited by a moderator:
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)
 
Code:
iTimer->add_timer_interval(iTimer->gettick()+1000, my_func, 0, 0, 1000);
 
I understand, thanks for the help Xgear, can close the topic.

 
Back
Top