Skip to content
Permalink
Browse files
Script Command Updates:
- *countitem:
-- Added cartcountitem
-- Added storagecountitem
-- Added cartcountitem2
-- Added storagecountitem2
-- Added a new param 'AccountID'
- *delitem:
-- Added cartdelitem
-- Added storagedelitem
-- Added cartdelitem2
-- Added storagedelitem2

Signed-off-by: Cydh Ramdh <house.bad@gmail.com>
  • Loading branch information
cydh committed Mar 22, 2014
1 parent cfa4d3c commit 01c30bf5056869b63d42612dd711b5d718ccc69d
Showing with 231 additions and 70 deletions.
  1. +40 −0 doc/script_commands.txt
  2. +191 −70 src/map/script.c
@@ -4428,6 +4428,16 @@ database. If the name is not found, nothing will be deleted.

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

*cartdelitem <item id>,<amount>{,<account ID>};
*cartdelitem "<item name>",<amount>{,<account ID>};
*storagedelitem <item id>,<amount>{,<account ID>};
*storagedelitem "<item name>",<amount>{,<account ID>};

Same like delitem, but deletes item from cart or storage.
If cart is not mounted, it will be failed.

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

*delitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
*delitem2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};

@@ -4436,6 +4446,16 @@ See 'getitem2' for an explanation of the expanded parameters.

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

*cartdelitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
*cartdelitem2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
*storageitem2 <item id>,<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};
*storageitem2 "<item name>",<amount>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>{,<account ID>};

Same like delitem2, but deletes item from cart or storage.
If cart is not mounted, it will be failed.

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

*countitem(<item id>)
*countitem("<item name>")

@@ -4458,6 +4478,16 @@ adding up strings:

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

*cartcountitem(<item id>)
*cartcountitem("<item name>")
*storagecountitem(<item id>)
*storagecountitem("<item name>")

Same like countitem, but counts item from cart or storage.
If cart is not mounted, -1 will be returned.

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

*countitem2(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>)
*countitem2("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>)

@@ -4469,6 +4499,16 @@ See 'getitem2' for an explanation of the expanded parameters.

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

*cartcountitem2(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>)
*cartcountitem2("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>)
*storagecountitem2(<item id>,<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>)
*storagecountitem2("<item name>",<identify>,<refine>,<attribute>,<card1>,<card2>,<card3>,<card4>)

Same like countitem2, but counts item from cart or storage.
If cart is not mounted, -1 will be returned.

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

*countbound({<bound type>})

This function will return the number of bounded items in the character's

0 comments on commit 01c30bf

Please sign in to comment.