Based on the src mod "storeit" ( @Akinari), I would like to add a command that stores all inventory cards, including those present in inventory equipment, except those equipped.
Currently, the command "storecard" stores the cards present in inventory equipment only...
ACMD_FUNC(storecard){int i;
nullpo_retr(-1, sd);if(sd->npc_id){
clif_displaymessage(fd,"You cannot be talking to an NPC and use this command.");return-1;}if(sd->state.storage_flag !=1){//Open storage.switch(storage_storageopen(sd)){case2://Try again
clif_displaymessage(fd,"Run this command again..");return0;case1://Failure
clif_displaymessage(fd,"You can't open the storage currently.");return-1;}}for(i =0; i < MAX_INVENTORY; i++){if(sd->inventory.u.items_inventory[i].amount){if(sd->inventory.u.items_inventory[i].equip ==0)
storage_storageadd(sd,&sd->storage, i, sd->inventory.u.items_inventory[i].amount && sd->inventory.u.items_inventory[i].card[0]);}}
storage_storageclose(sd);
clif_displaymessage(fd,"All cards stored");return0;}
Question
Fenril
Hi everyone,
Based on the src mod "storeit" ( @Akinari ), I would like to add a command that stores all inventory cards, including those present in inventory equipment, except those equipped.
Currently, the command "storecard" stores the cards present in inventory equipment only...
Thanks for reply.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.