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-nmm6 (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-nmm6 (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-nmm6 (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
something wrong under @callguards
Author Message
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #1
something wrong under @callguards
PHP Code:
ON=@CallGuards


ARGN1
=0
ARGN2
=0
RETURN 

If you call the guards, the guard will appear for 0.1 second, disappear and the REF1 will gain one kill.
09-12-2014 03:19 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #2
RE: something wrong under @callguards
Where are you getting ref1 from?

I just added

ON=@CallGuards
RETURN 1

To my all player event and the guards still came anyway. In the sphere_speech.scp file under ON=*GUARDS* i added return 1 and it stopped the player actually saying "guards" at all. So they didnt appear - but this is obviously server wide.

I presume your adding an event to players, and when they have that event you dont want them to be able to call the guards? If it is a certain area that you dont want the guards to be called, such as a PVP arena or something, can you not just edit the region?
09-12-2014 06:20 AM
Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #3
RE: something wrong under @callguards
I blocked the normal guards bcuz i decided to script new features with sphere_speech.
So actually i need to prevent the guards incoming.
I think this is a bug bcuz in the previous release this never happened.
09-12-2014 10:44 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #4
RE: something wrong under @callguards
try with RETURN 0... I think I may have found the issue...

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
09-13-2014 03:17 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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