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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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