kn4tseb
Master
Posts: 392
Likes Given: 45
Likes Received: 10 in 10 posts
Joined: May 2014
Reputation: 0
|
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 |
|
|