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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Check for Region Event?
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
Check for Region Event?
Code:
[REGIONTYPE r_blocked]
ON=@ENTER
IF !(<SRC.ISNPC>)
SRC.SYSMESSAGE TEST.
ENDIF

Code:
[AREADEF a_pvp]
EVENTS=r_blocked,r_default
NAME=Test
FLAGS=my|flags|here
P=xxxx,xxxx
RECT=xxxx,xxxx,xxxx,xxxx

I got this AREA with a REGIONTYPE.
The message works and the area too.
But how can I check for this AREA EVENT when I use an item for example?
I want to search for r_blocked.

I tried:

Code:
IF (<SRC.REGION.EVENTS> == r_blocked)
SRC.SYSMESSAGE Can't use it here...
RETURN 1

Works, but this blocks everywhere, without really checking (I think) the r_blocked.

Code:
IF (<SRC.REGION.TYPE> == r_blocked)
SRC.SYSMESSAGE Can't use it here...
RETURN 1

Nope too. But doesn't make sense anyway. xD

I could use this on the item, but since it's a "virtual map", I'm going to set new AREAS with NAMES and everything, so it's not very practical to be adding every region name to the item...

Code:
IF STRMATCH( "Test", "<SRC.REGION.TYPE>" )
SRC.SYSMESSAGE Can't use it here...
RETURN 1

Can someone help me?

Thanks!
(This post was last modified: 12-04-2013 02:27 AM by pinku.)
12-04-2013 02:24 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Check for Region Event? - pinku - 12-04-2013 02:24 AM
RE: Check for Region Event? - Extreme - 12-04-2013, 02:52 AM
RE: Check for Region Event? - XuN - 12-04-2013, 03:37 AM
RE: Check for Region Event? - pinku - 12-04-2013, 03:40 AM
RE: Check for Region Event? - Shamino - 12-04-2013, 05:37 AM
RE: Check for Region Event? - XuN - 12-04-2013, 05:49 AM
RE: Check for Region Event? - pinku - 12-04-2013, 07:12 AM
RE: Check for Region Event? - XuN - 12-04-2013, 08:24 AM

Forum Jump:


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