Jump to content
  • 0

Item Information


Question

Posted

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.

3 answers to this question

Recommended Posts

  • 0
Posted

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

  • 0
Posted

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

  • 0
Posted

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?

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...