• 0
Sign in to follow this  
M4karov

Item Information

Question

Hello guys! Is it possible to pick up information when using consumable items? Example, when using item 607 it identifies the id of the item used, or identifies the item's uid.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

healing item doesn't have unique ID, only equipment has
there's no way to trace an item that can stack

so to know which item used, just add something like

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ @itemuse = 501; itemheal rand(45,65),0; },{},{}

on every single item

 

or a source modification OnPCUseItemEvent ... seems its not floating in this forum

Share this post


Link to post
Share on other sites
  • 0

Something like that (?)

Quote

percentheal 100,100;
getitemname(ItemID);

???

I don't know what you want to do, so I don't know what youre trying to do...

You can use "getiteminfo" too...

Share this post


Link to post
Share on other sites
  • 0

Are you trying to create achievement by doing so?

eg.  player used 500 ygg berry in 20 minutes? and get achievement "super weak tofu"???

because the way you ask the question I simply thought that is what you meant

the quotes below explain all info you may need to achieve in doing that.

On 1/27/2019 at 2:56 AM, AnnieRuru said:

healing item doesn't have unique ID, only equipment has
there's no way to trace an item that can stack

so to know which item used, just add something like

501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ @itemuse = 501; itemheal rand(45,65),0; },{},{}

on every single item

 

or a source modification OnPCUseItemEvent ... seems its not floating in this forum

Unless you are planing on doing something else?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this