• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "ItemCount"
    Differences between revisions 2 and 3
    Revision 2 as of 2013-11-25 05:09:21
    Size: 443
    Editor: tech
    Comment:
    Revision 3 as of 2014-12-15 15:26:07
    Size: 441
    Editor: Inanna
    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")

    Function

    usage:

    m_context.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 promo.

    item = "player.box.gambling.3"
    
    if m_context.ItemCount(item) execute "useitem "+item
    
    if m_context.ItemCount(item) repeat

    will use all of your amulets


    CategoryFunctions

    ItemCount (last edited 2015-08-10 00:33:58 by LKD70)