Skip to content

Commit

Permalink
Cleaned up countitem-type script commands (#3657)
Browse files Browse the repository at this point in the history
* Fixes #3612.
* Separated the countitem-type script commands into their own functions.
* Created a global count function to be used between them.
Thanks to @kisuka, @Normynator and @Atemo!
  • Loading branch information
aleos89 committed Apr 12, 2019
1 parent 0602050 commit f047a6a
Show file tree
Hide file tree
Showing 2 changed files with 242 additions and 114 deletions.
12 changes: 6 additions & 6 deletions doc/script_commands.txt
Expand Up @@ -4941,8 +4941,8 @@ If player is not in a guild or storage is open, 'guildstoragedelitem2' will retu


--------------------------------------- ---------------------------------------


*countitem(<item id>) *countitem(<item id>{,<accountID>})
*countitem("<item name>") *countitem("<item name>"{,<accountID>})


This function will return the number of items for the specified item ID that the This function will return the number of items for the specified item ID that the
invoking character has in the inventory. invoking character has in the inventory.
Expand Down Expand Up @@ -4978,10 +4978,10 @@ If player is not in a guild or storage is open, 'guildstoragecountitem' will ret


--------------------------------------- ---------------------------------------


*countitem2(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>) *countitem2(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<accountID>})
*countitem2("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>) *countitem2("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<accountID>})
*countitem3(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>) *countitem3(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<accountID>})
*countitem3("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>) *countitem3("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>,<RandomIDArray>,<RandomValueArray>,<RandomParamArray>{,<accountID>})


Expanded version of 'countitem' function, used for created/carded/forged items. Expanded version of 'countitem' function, used for created/carded/forged items.


Expand Down

0 comments on commit f047a6a

Please sign in to comment.