How to check if player has inventory item?

Started by JudgeDeadd, Mon 24/11/2003 15:25:06

Previous topic - Next topic

JudgeDeadd

How do I check (in scripts) if player has an inventory item?
You know what they say... no... wait... you don't. What a shame.

Paper Carnival

#1
if (character[CHARID].inv[invnum]!=0) {
//do what you want
}

You will need to replace CHARID with the script name of your character (default is EGO) and invnum with the number of the inventory item.

SMF spam blocked by CleanTalk