How to count items by part of their name?
Posted: Sat Dec 03, 2011 9:51 pm
I want to count all the fusion stones in my bags and when there are enough, send them with UMM.
There are only Fusion Stones in my bags, but there exist many different kinds, from NPC, mini games, shop e.g.
Have a look over here for them.
They all have different IDs, but I want to count them all and get one result.
They all have in common "Fusion" as part of their names. This refers to the us and de clients, do not no about others.
Sending them can be done by coz you can find a placeholder for all Fusion Stones in the file \micromacro\scripts\rom\cache\itemtypestable.lua. So
should do the job and send all or an amount of items belonging to the _itemTable entry "Fusion Stones". (I do not know how to make this independent from localization)
But how to count them before sending?
Ric
There are only Fusion Stones in my bags, but there exist many different kinds, from NPC, mini games, shop e.g.
Have a look over here for them.
They all have different IDs, but I want to count them all and get one result.
They all have in common "Fusion" as part of their names. This refers to the us and de clients, do not no about others.
Sending them can be done by
Code: Select all
UMM_SendByNameOrId(_recipient, _itemTable[, _amount])Code: Select all
UMM_SendByNameOrId(_recipient, "Fusion Stones", _amount])But how to count them before sending?
Ric