Keep effect/buff on dying?

Helena

New member
Messages
238
Points
0
Emulator
rAthena
Hello hercules. Can someone help me?

I've made a potion that temp increases the HP/SP by 10% and I'm trying to make the effect "SC_INCMHPRATE" and "SC_INCMSPRATE" stay on dying, but I can't get it to.

I've already located in status.c and made the following change:

if(type == 0){
if( iStatus->get_sc_type(i)&SC_NO_REM_DEATH ){
switch (i) {
case SC_ARMOR_PROPERTY://Only when its Holy or Dark that it doesn't dispell on death
if( sc->data->val2 != ELE_HOLY && sc->data->val2 != ELE_DARK )
break;
switch (i){
case SC_INCMHPRATE:
case SC_INCMSPRATE:
default:
continue;
}
}
}
}
 
_________________________________________________
 
But no difference. My SP still goes back to default after dying.
 

Anyone please?
default_sad.png


 

Thank you.

 
Thank you so much annie! I didn't know it didn't require a src mod. ^^;

 
Back
Top