M4karov Posted January 25, 2019 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 149 Reputation: 37 Joined: 04/01/13 Last Seen: June 18, 2024 Share Posted January 25, 2019 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. Quote Link to comment Share on other sites More sharing options...
0 AnnieRuru Posted January 26, 2019 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted January 26, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 Sofia Posted January 26, 2019 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 08/09/17 Last Seen: June 21, 2020 Share Posted January 26, 2019 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... Quote Link to comment Share on other sites More sharing options...
0 utofaery Posted February 2, 2019 Group: Members Topic Count: 23 Topics Per Day: 0.01 Content Count: 228 Reputation: 19 Joined: 10/27/12 Last Seen: March 17, 2019 Share Posted February 2, 2019 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? Quote Link to comment Share on other sites More sharing options...
Question
M4karov
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.