Jump to content
  • 0

R>successremovecards modification


Question

Posted

I just want to know if it's possible to modify the successremovecards script that when it is used, even items in the slots will be received too. (For example a sword is slotted witha Mjolnir, when the script successremovecards is used, all the cards will go back to the inventory along with the Mjolnir) Because right now, when I use the script, only the cards go back to the inventory. I also plan to use this for the Hidden enchant system,

3 answers to this question

Recommended Posts

Posted

To remove an item just use this code along with your custom script.

Example

if(getequipid(EQI_GARMENT)==ID) {

   unequip ID;
   end;

}

or you can just use

 unequip ID;

Posted (edited)

http://www.eathena.w...er&showbug=4014

src mode

to use MAX_SLOTS instead of sd->inventory_data->slot

-for( c = sd->inventory_data[i]->slot - 1; c >= 0; --c )
+for( c = MAX_SLOTS - 1; c >= 0; --c )

and remove the conditon (red part)

if( sd->status.inventory.card[c] && itemdb_type(sd->status.inventory.card[c]) == IT_CARD )

script also can do

http://www.eathena.w...cessremovecards

Edited by QQfoolsorellina

Join the conversation

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

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...