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






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Identify all items
Author Message
Sum
Apprentice
*

Posts: 40
Likes Given: 32
Likes Received: 5 in 4 posts
Joined: Feb 2016
Reputation: 0



Post: #1
Identify all items
I have searched high and low and can not find anything on this. I want all items to have the attr "attr_identified" set . I want to get rid of the item ID skill and need this to work lol. Also something strange...every weapon in in the game show as "unidentified" in red even if i just add say i_pickaxe .
03-10-2017 03: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: #2
RE: Identify all items
In the sphere.ini, uncomment edit this line
// Events related to all items
EventsItem=your_event

then add the event in your script file

[TYPEDEF youreventname]
ON=@Create
attr |= attr_identified

It should works!
(This post was last modified: 03-10-2017 04:34 AM by darksun84.)
03-10-2017 04:30 AM
Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes darksun84's post
Sum
Apprentice
*

Posts: 40
Likes Given: 32
Likes Received: 5 in 4 posts
Joined: Feb 2016
Reputation: 0



Post: #3
RE: Identify all items
Still not working its so weird, i had tried on=@create and i also tried to make it change with @clienttooltip with an events on my playe.. I made sure to do a server restart as well with the same results. Just for kicks i also tried it as a TYPDEF but sphere didn't like that too much lol.
03-10-2017 06:53 AM
Find all posts by this user Like Post Quote this message in a reply
Criminal
Journeyman
*

Posts: 182
Likes Given: 38
Likes Received: 22 in 22 posts
Joined: Jun 2015
Reputation: 0

SantiagoUO.com

Post: #4
RE: Identify all items
[events yourevent]
on=@itemcreate
argo.attr = attr_identified

[Image: mfqAZnj.png]
Discord: SantiagoUO
Skype:
criminaluo
(This post was last modified: 03-10-2017 07:25 AM by Criminal.)
03-10-2017 07:23 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Sum
Apprentice
*

Posts: 40
Likes Given: 32
Likes Received: 5 in 4 posts
Joined: Feb 2016
Reputation: 0



Post: #5
RE: Identify all items
Sorted it with @itemclienttooltip and add the events to all players.

[EVENTS e_ident]
ON=@itemclienttooltip
if (<isplayer> == 1)
src.act.attr |= attr_identified
return 0
endif


This code above works for identifying but for some reason make it so items that are bounced into your backpack don't stack on each other.

I have resorted to doing this below for now.


Code:
[EVENTS e_ident]
ON=@itempickup_self
IF !(<argo.attr>&attr_identified)
argo.attr |= attr_identified
src.update
argo.update
return 0
endif



ON=@itempickup_ground
IF !(<src.act.attr>&attr_identified)
src.act.attr |= attr_identified
src.update
src.act.update
return 0
endif

ON=@itempickup_pack
IF !(<src.act.attr>&attr_identified)
src.act.attr |= attr_identified
src.update
src.act.update
return 0
endif
(This post was last modified: 03-21-2017 01:47 PM by Sum.)
03-10-2017 07:26 AM
Find all posts by this user Like Post Quote this message in a reply
bmanny
Apprentice
*

Posts: 25
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2017
Reputation: 0



Post: #6
RE: Identify all items
Was this ever solved?
05-08-2017 02:28 PM
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)