SphereCommunity
Messages under combat triggers - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Messages under combat triggers (/Thread-Messages-under-combat-triggers)



Messages under combat triggers - Mad Gunther - 11-11-2017 01:10 AM

When I try to use messages under combat triggers (let´s say for example @Attack), if I want to send two different messages via script to <src> and <uid> it works ok, but on the other hand the message to <uid> is not displayed on his screen and instead of that it does on <src> screen. So both messages are displayed over the head of each player but only <src> can see the two different messages in his game screen.

Supposedly messages should work to only been seen on the player who is calling for it, and not like ignoring to show the message to the legit player and display them both only to the player who is being attacked, don´t know if it´s bugged or if it just works this way under combat triggers, since this behavior can be extrapolated to other combat triggers. By the way, I´m using build 426.

I also noticed that every time you attack someone your game screen gets auto refreshed (like if you were using .update or .resend commands), is there any way to avoid this update while initiating an attack? It doesn´t affect the playstyle but I was curious to see if that is possible like older versions of sphere or runuo.

If someone can bring some help is very welcome, greetings.


RE: Messages under combat triggers - darksun84 - 11-11-2017 01:23 AM

MESSAGE is always sent to the src, so try to use trysrc:

Code:
src.message blabla
trysrc <uid> message blablabal



RE: Messages under combat triggers - Mad Gunther - 11-11-2017 03:09 AM

I dind´t recall this one lol... Thanks very much, seems like i just finished the whole combat system after two years with this.

About the second one, you got any idea why it works like that? Right now i´m not even wondering how to remove it, but i just feel curious about why this behaviour in the latest sphere version.


RE: Messages under combat triggers - darksun84 - 11-11-2017 03:19 AM

I can't actually notice the difference, maybe it's the client? I am using 7.0.58.12

Make sure you don't have any "sneaky" update/updatex in @start/@skillstart/@attack


RE: Messages under combat triggers - Mad Gunther - 11-11-2017 03:41 AM

I have not seen any naughty .update around there. Been trying with 2.0.3 and 4.0.11c clients, and in both it happends the same. Gonna try one of the 7.0.x series to see the difference, let´s see what´s going on.

Thanks for your time and help, really appreciated.