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
Open Door Macro
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #9
RE: Open Door Macro
That will resolve problems you posted in another posts, however if you are going to use a foritems loop I would place the check for the type inside (as the isneartype function is a loop itself).
Also, avoid the usage of STR*functions as much as you can, they are slower than a simple comparison with ==.
Code:
IF (<SRC.UID.<SRC.REGION.UID>.TYPE>==t_multi) || (<SRC.UID.<SRC.REGION.UID>.TYPE>==t_multi_custom)
    FORITEMS 3
      if (<Type>==t_door) || (<Type>==t_door_locked)
       UseItem
      endif
    ENDFOR
ENDIF
03-13-2014 07:25 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Open Door Macro - Avatar - 02-23-2014, 03:06 AM
RE: Open Door Macro - Extreme - 02-23-2014, 01:45 PM
RE: Open Door Macro - pinku - 02-23-2014, 03:40 PM
RE: Open Door Macro - XuN - 02-23-2014, 07:32 PM
RE: Open Door Macro - Avatar - 02-24-2014, 07:49 AM
RE: Open Door Macro - Avatar - 02-24-2014, 12:31 PM
RE: Open Door Macro - Mordaunt - 02-24-2014, 09:42 AM
RE: Open Door Macro - Staff_Stanic - 03-13-2014, 10:57 AM
RE: Open Door Macro - XuN - 03-13-2014 07:25 PM
RE: Open Door Macro - Avatar - 03-14-2014, 09:07 AM

Forum Jump:


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