|
Size: 420
Comment:
|
Size: 452
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 4: | Line 4: |
| m_context.ItemCount("full.item.name") | m_context.ItemCount("full.item.id") ItemCount("full.item.id") |
| Line 11: | Line 12: |
| will output how many of the 50% food buffs you have that came with the Halloween promo. | will output how many of the 50% food buffs you have that came with the Halloween 2013 promo. |
| Line 15: | Line 17: |
| if m_context.ItemCount(item) execute "useitem "+item if m_context.ItemCount(item) repeat |
if ItemCount(item) execute "useitem {item}" if ItemCount(item) repeat |
| Line 19: | Line 20: |
| Line 22: | Line 21: |
| ---- CategoryFunctions |
Function
usage:
m_context.ItemCount("full.item.id") ItemCount("full.item.id")
examples:
echo m_context.ItemCount("player.candy.corn.2013")will output how many of the 50% food buffs you have that came with the Halloween 2013 promo.
item = "player.box.gambling.3"
if ItemCount(item) execute "useitem {item}"
if ItemCount(item) repeatwill use all of your amulets

![[+]](/moin_static/explorer/img/toggle1.png)

![[-]](/moin_static/explorer/img/toggle0.png)
