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: #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
Post Reply 


Messages In This Thread
Identify all items - Sum - 03-10-2017, 03:49 AM
RE: Identify all items - darksun84 - 03-10-2017, 04:30 AM
RE: Identify all items - Sum - 03-10-2017, 06:53 AM
RE: Identify all items - Criminal - 03-10-2017, 07:23 AM
RE: Identify all items - Sum - 03-10-2017 07:26 AM
RE: Identify all items - bmanny - 05-08-2017, 02:28 PM

Forum Jump:


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