Jump to content

Custom delitem() delitem2() script - Deleting for inventory, cart, storage, guild storage


Cydh

Recommended Posts


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  2285
  • Reputation:   748
  • 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.

 
Informations

This custom will customize current delitem() becomes

  • delitem <item id>,<amount>{,<location>}{,<account ID>};
  • delitem "<item name>",<amount>{,<location>}{,<account ID>};
  • delitem <item id>,<amount>{,<location>}{,"<char name>"};
  • delitem "<item name>",<amount>{,<location>}{,"<char name>"};

 

-- Rev.1 changelog

This custom will customize current delitem2() becomes

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

 
What are the different?

<location> is used to delete item(s) in:

  • 0 - inventory
  • 1 - cart
  • 2 - storage
  • 3 - guild storage

<account id> can be replaced by "<char name>" is used to delete other online player's item

 
Download
.patch files
Rev.1 release: delitem-modifiedWithLocation-Cydh-rA-svn17167.patch


sample NPCs: 
delitem.txt
delitem_.txt
delitem_1.txt
delitem_2.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...