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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
checking set armor
Author Message
kn4tseb
Master
**

Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0



Post: #1
checking set armor
Hey mates, i need some help with this, i havent been abled to find a match variable for what im trying to do....

when equipping an armor i'd like to check if it matches with a set of that armor.... tags might be used... its a bit late and cant figure a good way to do that... this is what came to my head in last few moments, hope you can help me to improve it...


Code:
ON=@Equip
local.leatherarmor = i_leather_leggings, i_leather_cap, i_leather_gloves, i_leather_gorget, i_leather_tunic, i_leather_sleeves
args=4,6,7,10,13,19 // layers used by leather armor
for 0 5
if strmatch(*i_leather_*,<src.findlayer.<argv[<dlocal._for>]>.baseid>
local.args .=, <src.findlayer.<argv[<dlocal._for>]>.baseid>
endif
endfor
args=<streat <local.args>>
local.armormatch1=<eval <argv0>+<argv1>+<argv2>+<argv3>+<argv4>+<argv5>>
args=<local.leatherarmor>
local.armormatch2=<eval <argv0>+<argv1>+<argv2>+<argv3>+<argv4>+<argv5>>
if <local.armormatch1> == <local.armormatch2>
serv.log <local.armormatch1> <local.armormatch2>
endif
ENDIF

Thx in advance
(This post was last modified: 08-07-2014 03:09 PM by kn4tseb.)
08-07-2014 03:03 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
checking set armor - kn4tseb - 08-07-2014 03:03 PM
RE: checking set armor - XuN - 08-07-2014, 05:19 PM
RE: checking set armor - XuN - 08-08-2014, 08:49 AM

Forum Jump:


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