Jump to content
  • 0
Sign in to follow this  
Beret

Global message

Question

10 answers to this question

Recommended Posts

  • 0

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);

Share this post


Link to post
Share on other sites
  • 0

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

 

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

Share this post


Link to post
Share on other sites
  • 0

Is it possible to do something like:

 
- Only on the map
- Only for friends
- Only for party
- Only guild
Edited by Beret

Share this post


Link to post
Share on other sites
  • 0

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. 

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites
  • 0

Tell Me only one more thing Xgear. It is possible to use the function OnClock in src ?

Edited by Beret

Share this post


Link to post
Share on other sites
  • 0
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);

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.