Rebel Posted August 19, 2012 Posted August 19, 2012 (edited) Just want to ask how can i cap all element resist to 80%?? Edited June 29, 2013 by Rebel Quote
Emistry Posted August 20, 2012 Posted August 20, 2012 https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/conf/battle/status.conf // Maximum resistance to status changes. (100 = 100%) // NOTE: Cards and equipment can go over this limit, so it only applies to natural resist. pc_max_status_def: 100 mob_max_status_def: 100 Quote
Rebel Posted August 21, 2012 Author Posted August 21, 2012 https://rathena.svn....tle/status.conf // Maximum resistance to status changes. (100 = 100%) // NOTE: Cards and equipment can go over this limit, so it only applies to natural resist. pc_max_status_def: 100 mob_max_status_def: 100 I want all resist not just natural resist.. all resist = including cards and equipments.. Quote
clydelion Posted August 25, 2012 Posted August 25, 2012 Maybe it's better if you cap the rate instead of the status def status.c rate -= rate*sd->sc.data[sC_COMMONSC_RESIST]->val1/100; } } + rate = cap_value(rate, 0, 8000); //capped to 80% if (!(rnd()%10000 < rate)) return 0; //Why would a status start with no duration? Presume it has //duration defined elsewhere. oh well, you were asking about def_ele in status.c return ELE_UNDEAD; if(sc->data[sC_ELEMENTALCHANGE]) return sc->data[sC_ELEMENTALCHANGE]->val2; if(sc->data[sC_SHAPESHIFT]) return sc->data[sC_SHAPESHIFT]->val2; return (unsigned char)cap_value(element,0,UCHAR_MAX); } UCHAR_MAX is the max value return, w/c is 255.. change it to whatever you want to use <255 Quote
Rebel Posted August 25, 2012 Author Posted August 25, 2012 Maybe it's better if you cap the rate instead of the status def status.c rate -= rate*sd->sc.data[sC_COMMONSC_RESIST]->val1/100; } } + rate = cap_value(rate, 0, 8000); //capped to 80% if (!(rnd()%10000 < rate)) return 0; //Why would a status start with no duration? Presume it has //duration defined elsewhere. oh well, you were asking about def_ele in status.c return ELE_UNDEAD; if(sc->data[sC_ELEMENTALCHANGE]) return sc->data[sC_ELEMENTALCHANGE]->val2; if(sc->data[sC_SHAPESHIFT]) return sc->data[sC_SHAPESHIFT]->val2; return (unsigned char)cap_value(element,0,UCHAR_MAX); } UCHAR_MAX is the max value return, w/c is 255.. change it to whatever you want to use <255 i think this is what i asking for rate = cap_value(rate, 0, 8000); //capped to 80% question.. correct me if im wrong if i put that code. does that mean the max resist of element will be capped to 80% because its possible to have a 100% resist to a certain element like FIRE ELEMENT, by using combination of cards and equipments.. mostly if i have custom items. and cards.. Quote
Rebel Posted June 28, 2013 Author Posted June 28, 2013 Hi. its not working and I only got this tested just now hahaha.. wearing 2 devilings will have 100% neutral but still cant attack. Quote
Question
Rebel
Just want to ask how can i cap all element resist to 80%??
Edited by Rebel6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.