Jump to content

custom countitem() countitem2() script - Counting for inventory, cart, storage, guild storage


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

If you met my previous posts, I realize the script naming and worse line editing.

storagecountitem() & storagedelitem() script - Count or delete certain item in player's storage

cartcountitem() & cartdelitem() script - Count or delete certain item in cart inventory

I want to separate them to countitem and delitem.

 

 

What are the different?

This custom will customize current countitem() becomes

  • countitem (<item_id>{,<location>}{,<account id>})
  • countitem ("<item name>"{,<location>}{,<account id>})
  • countitem (<item_id>{,<location>}{,"<char name>"})
  • countitem ("<item name>"{,<location>}{,"<char name>"})
- Rev.1 Changelog

 

This custom will customize current countitem2() becomes

  • countitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<location>}{,<account ID>};
  • countitem2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<location>}{,<account ID>};
  • countitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<location>}{,"<char name>"};
  • countitem2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<location>}{,"<char name>"};
Additional parameters

<location> is used to check in:

  • 0 - inventory
  • 1 - cart
  • 2 - storage
  • 3 - guild storage
<account id> or "<char name>" is used to count other online player item
 

Download

.patch files

Rev.1: countitem-modifiedWithLocation-Cydh-rA-svn17167.patch

sample NPCs: 

countitem.txt

countitem_.txt

Edited by Cydh
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...