Jump to content

@deleteall


Brynner

Recommended Posts


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

can i make another request? since we have @dropall and @storeall. how about the @deleteall? it will delete both inventory and storage of your character? because if you have so many items and you accidentally use the @storeall. all the item will be putted there. and if you want to clean your storage. you need to drag it back one by one right? if we have @deleteall we do not need to do it. thanks in advance. /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  117
  • Reputation:   18
  • Joined:  01/06/12
  • Last Seen:  

I wonder if it's really needed, as of now you can macro @dropall and @cleanmap to get rid of items. Then again it might be useful to have a command like that for also cleaning up items that can't get drop like the trade restricted ones.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

I wonder if it's really needed, as of now you can macro @dropall and @cleanmap to get rid of items. Then again it might be useful to have a command like that for also cleaning up items that can't get drop like the trade restricted ones.

@dropall is useless when our item is located at storage. what if you got 100pcs diff. item stored on your storage?you need to drag them out of your storage to remove those 100.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  117
  • Reputation:   18
  • Joined:  01/06/12
  • Last Seen:  

Oh didn't read the part about the storage, then yes that would be useful for GMs mainly to get rid of items they used to test things and clean up.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Actually it's pretty easy.

Open your atcommand.c, search for:

ACMD_DEF(speed),

Then add this in a new line:

ACMD_DEF(deleteall),

Then add this code:

/*==========================================
* @deleteall by [nanakiwurtz]
* Delete all of your inventory & storage items.
*==========================================*/
ACMD_FUNC(deleteall)
{
int i;
nullpo_retr(-1, sd);

if (sd->state.storage_flag != 1)
{
if( storage_storageopen(sd) == 1 ) {
clif_displaymessage(fd, "You can't open the storage currently.");
return -1;
}
}

for (i = 0; i < MAX_INVENTORY; i++) {
if (sd->status.inventory[i].amount) {
if(sd->status.inventory[i].equip != 0)
pc_unequipitem(sd, i, 3);
pc_delitem(sd, i, sd->status.inventory[i].amount, 0, 0, LOG_TYPE_OTHER);
}
}

for (i = 0; i < MAX_STORAGE; i++) {
if(sd->status.storage.items[i].amount)
storage_delitem(sd,i,sd->status.storage.items[i].amount);
}
storage_storageclose(sd);
return 0;
}

Recompile,and voila! Instant clean up of your inventory & kafra storage /meh

(Please use with caution)

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

This is a good idea. I'd suggest naming it "@clearstorage", and adding a subsequent "@cleargstorage" for guild storage. Any thoughts?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

This is a good idea. I'd suggest naming it "@clearstorage", and adding a subsequent "@cleargstorage" for guild storage. Any thoughts?

I think it's a fine idea especially if you have a lot of junk in your storage and you don't wanna drag one by one into your inventory and then dropping it on the floor to get rid of it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

I'd suggest naming it "@clearstorage", and adding a subsequent "@cleargstorage" for guild storage.

Sounds good to me.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

+10 for this ^_^

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  67
  • Reputation:   75
  • Joined:  12/18/11
  • Last Seen:  

I like @clearstorage and @cleargstorage.

What about @clearcart, based on the same logic that it's time consuming to move items over ?

@itemreset is the existing one to clear inventory. Would it make sense to create an alias along the same lines as @clearinventory or not ? (or @storagereset, @gstoragereset, @cartreset)

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

+ACMD_FUNC(clearcart)
+{
+        nullpo_retr(-1, sd);
+        
+        if (pc_iscarton(sd) == 0) {
+                clif_displaymessage(fd, msg_txt(1396)); // You do not have a cart to be cleaned.
+                return -1;
+        }
+        
+        if (sd->state.vending == 1) { //Somehow...
+                return -1;
+        }
+        
+        clif_clearcart(fd);
+        
+        clif_displaymessage(fd, msg_txt(1397)); // Your cart was cleaned.
+        return 0;
+}

I think all that does is remove their cart (like clicking the Off button).

Link to comment
Share on other sites

×
×
  • Create New...