Tassadar Posted November 7, 2017 Posted November 7, 2017 Good morning everyone. How do I show npc how many "X" items the player is loading? Example: mes "This npc works with Revenge Coins!" mes "you have: (25) Coins of revenge!" I found the countitem command, but I did not understand the operation. Thank you very much in advance. Quote
0 Haziel Posted November 7, 2017 Posted November 7, 2017 (edited) To use that kind of command, you must understand that, countitem is a function, it means it gets a value and converts it based on it's parameters. The player who interacts with the NPC is the one countitem will count items from, so, if you want your npc to display how many red potions he has: mes "You have: " + countitem(501) + " Red Potions!"; Where 501 is the Red Potion ID. Edited November 7, 2017 by Haziel 1 Quote
Question
Tassadar
Good morning everyone.
How do I show npc how many "X" items the player is loading?
Example:
mes "This npc works with Revenge Coins!"
mes "you have: (25) Coins of revenge!"
I found the countitem command, but I did not understand the operation.
Thank you very much in advance.
1 answer 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.