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
TAGS TAGS TAGS
Author Message
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #1
TAGS TAGS TAGS
Hi

I've been reviewing a few scripts, the "resource storage" types to be precise, such as reagent vase, scroll cases, etc.

These scripts rely very heavily on TAGS, usually assigned to the item that you dclick to access the dialog.

Is this the most efficient way of doing it? Or is there a better way?

On modern day hardware and internet connections would it unduly lag the server/player if you were working on a script/dialog which used say 150+ tags to calculate stored resources, for example?

Thanks
08-12-2014 10:42 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #2
RE: TAGS TAGS TAGS
Maybe there is a better way, can you post an example ?
08-14-2014 04:24 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #3
RE: TAGS TAGS TAGS
Hi

Well its a resource storage system, so i need a TAG i think to store the amount of resource stored, but it will do potions/logs (including custom)/ingots (inc. custom)/scrolls/cloths (inc custom) which is well over 200 tags :/

so in the gump section
I would need this, times about 200?

<eval <tag0.resource_name_amount_stored>>


was just wondering if there is a better and/or more efficient way... or whether it doesnt actually matter about how many tags i use?

thanks Smile
08-14-2014 04:49 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #4
RE: TAGS TAGS TAGS
You can try to use LIST for this case.

http://wiki.sphere.torfo.org/index.php/LIST
(This post was last modified: 08-14-2014 05:12 AM by darksun84.)
08-14-2014 05:09 AM
Find all posts by this user Like Post Quote this message in a reply
richm
Journeyman
*

Posts: 58
Likes Given: 4
Likes Received: 4 in 3 posts
Joined: Aug 2014
Reputation: 0



Post: #5
RE: TAGS TAGS TAGS
Thanks ill give it a look Smile
08-14-2014 05:30 AM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #6
RE: TAGS TAGS TAGS
Or the sqlite.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-15-2014 05:55 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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