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
ID of item in @ResourceGather
Author Message
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #1
ID of item in @ResourceGather
Hi,

I use the trigger @ResourceGather on my ressource.

This argument Local.ResourceID is suppose to return the ID of the item.

Code:
[ITEMDEF  i_log_cryptomeria]
DEFNAME= i_log_cryptomeria
NAME=Buche de cryptomeria

IF I DO:
serv.log <Local.ResourceID>
I GET: 014297 and not i_log_cryptomeria

2 questions?
1- How I can know the number ID of an ITEMDEF i_xxxxx
2- This ID change are it,s ALWAYS the same?


THX

https://www.uocryptonite.com/
(This post was last modified: 12-18-2019 02:50 AM by Jhobean.)
12-18-2019 02:19 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: ID of item in @ResourceGather
Every chardef/itemdef/etc is an resource, and each one have an unique internal ID. So 014297 is the internal resource ID of i_log_cryptomeria

This internal value is only used by sphere internal functions, to get the real "readable" info about of this resource you must use <SERV.ITEMDEF.014297.NAME>, <SERV.ITEMDEF.014297.ID>, <SERV.ITEMDEF.014297.BASEID>, etc
12-18-2019 08:21 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes Coruja's post
Jhobean
Journeyman
*

Posts: 98
Likes Given: 11
Likes Received: 9 in 3 posts
Joined: Jun 2019
Reputation: 2



Post: #3
RE: ID of item in @ResourceGather
Thx so much. it's work perfect.

Question. It's possible The number 014297 can change between 2 differents boot? or it's always fix?

https://www.uocryptonite.com/
12-18-2019 09:54 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: ID of item in @ResourceGather
Honestly I don't know exactly how this resource ID list is built, probably sphere fill the resource ID's list at server startup as it read script files. So maybe resources should keep the same value if you don't change any script. But content of script files doesn't stay the same forever, so its better assume that these resource IDs can change too
12-20-2019 04:46 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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