How to enable equipment with mvp cards undroppable

int pc_dropitem(struct map_session_data *sd,int n,int amount)find this function and then check that particular itemsd->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

 
Can you guide me on this please.
default_sad.png


 
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.

 
Last edited by a moderator:
Back
Top