Count gold in a container/chest by ragebunnyz
Description: This script just counts the gold inside a container. Great for when you need to split gold with mates (why doesn't the distribution chest do this?)
1// Select a chest and the script will tell you how much gold is inside
2clearignore
3overhead "Select the chest containing gold" 88
4@setvar! chest_to_count
5if counttype 'gold coin' chest_to_count as found_gold
6 setvar! gold_count 'found_gold'
7 overhead 'gold count= {{gold_count}}'
8else
9 overhead "gold count= 0"
10endif