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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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