Identify all items - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Identify all items (/Thread-Identify-all-items) |
Identify all items - Sum - 03-10-2017 03:49 AM 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 . RE: Identify all items - darksun84 - 03-10-2017 04:30 AM 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! RE: Identify all items - Sum - 03-10-2017 06:53 AM 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. RE: Identify all items - Criminal - 03-10-2017 07:23 AM [events yourevent] on=@itemcreate argo.attr = attr_identified RE: Identify all items - Sum - 03-10-2017 07:26 AM 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] RE: Identify all items - bmanny - 05-08-2017 02:28 PM Was this ever solved? |