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
storing / filtering massive items
Author Message
kn4tseb
Master
**

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



Post: #24
RE: storing / filtering massive items
(07-12-2014 07:07 AM)Extreme Wrote:  Strmatch(*rose*,<serv.itemdef.<hval <local.x>>.defname>)
Assuming you're using the for loops

But which values should i use at FOR LOOPS?

those custom items dont have a NUMBERED ID

the ID is the inhereted to another item

(07-12-2014 06:46 AM)Skul Wrote:  better off using the file.object, open up your .scp file and use file.readline, example:
Code:
if (<file.open <path to colored armor.scp>>)
  for line 1 <file.readline end>
    if (strmatch([itemdef *,<file.readline <local.line>>))
      local.x += 1
      local.obj<dlocal.x>=<strsub 10 <eval <eval strlen(<file.readline <local.line>>)> +-11> <file.readline <local.line>>
    endif
  endfor
endif
file.close
if (<local.x>)
  for x 1 <local.x>
    serv.log <local.obj<dlocal.x>>
  endfor
endif

18:41:ERROR:(sphere_system_1.scp,112)Can't resolve <scripts/items/sphere_item_provisions_armor_color.scp>
18:41:ERROR:(sphere_system_1.scp,112)Can't resolve <file.open >
18:41:ERROR:(sphere_system_1.scp,112)Undefined symbol ''
18:41:ERROR:(sphere_system_1.scp,120)Undefined keyword 'file.close'
(This post was last modified: 07-12-2014 07:38 AM by kn4tseb.)
07-12-2014 07:27 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: storing / filtering massive items - kn4tseb - 07-12-2014 07:27 AM

Forum Jump:


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