Jump to content
  • 0

Item Information


M4karov

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   36
  • Joined:  04/01/13
  • Last Seen:  

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.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  08/09/17
  • Last Seen:  

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...

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   19
  • Joined:  10/27/12
  • Last Seen:  

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?

Link to comment
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.

×
×
  • Create New...