Jump to content
  • 0

R>successremovecards modification


Venomenon

Question


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/21/11
  • Last Seen:  

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,

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   4
  • Joined:  11/10/11
  • Last Seen:  

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;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  587
  • Reputation:   104
  • Joined:  11/19/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   0
  • Joined:  11/21/11
  • Last Seen:  

Thanks! It seems the Card Remover 1.2a answered all my problem! Thanks guys.

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

×
×
  • Create New...