The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Messages under combat triggers
Author Message
Mad Gunther
Apprentice
*

Posts: 45
Likes Given: 11
Likes Received: 5 in 5 posts
Joined: Oct 2015
Reputation: 1



Post: #1
Messages under combat triggers
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.
11-11-2017 01:10 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: Messages under combat triggers
MESSAGE is always sent to the src, so try to use trysrc:

Code:
src.message blabla
trysrc <uid> message blablabal
11-11-2017 01:23 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
Mad Gunther
Apprentice
*

Posts: 45
Likes Given: 11
Likes Received: 5 in 5 posts
Joined: Oct 2015
Reputation: 1



Post: #3
RE: Messages under combat triggers
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.
11-11-2017 03:09 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: Messages under combat triggers
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
11-11-2017 03:19 AM
Find all posts by this user Like Post Quote this message in a reply
Mad Gunther
Apprentice
*

Posts: 45
Likes Given: 11
Likes Received: 5 in 5 posts
Joined: Oct 2015
Reputation: 1



Post: #5
RE: Messages under combat triggers
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.
11-11-2017 03:41 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)