Jump to content
  • 0
Sign in to follow this  
Amalgam

How to enable equipment with mvp cards undroppable

Question

3 answers to this question

Recommended Posts

  • 0

int pc_dropitem(struct map_session_data *sd,int n,int amount)
find this function and then check that particular item

sd->status.inventory[n].card[0] and so on is a mvp card or not

 

should be just a few lines

 

and I don't have enough time recently to write stuffs

Share this post


Link to post
Share on other sites
  • 0

something like this

https://github.com/HerculesWS/Hercules/blob/master/src/map/pc.c#L4091

if(   sd->status.inventory[n].card[0] == MVP_CARD_ID1 ||  sd->status.inventory[n].card[0] == MVP_CARD_ID2 ||  sd->status.inventory[n].card[0] == MVP_CARD_ID3 ||  sd->status.inventory[n].card[0] == MVP_CARD_ID4 ) return 0;

you still have to check for slot 1 2 3 4 if it's weapon....or your equipment have more than 1 slot.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.