Element Reistance Cap Change ?

rifqithea

New member
Messages
9
Points
0
Hellow All of Hercules Master

I want to ask what should i change to make my element resist cap become 120%

im new on herc i need this to implement on my server please help me hehe
default_smile.png


 
src/map/pc.c

Find

sd->subele += val;Replace with
Code:
sd->subele[i] += min(sd->subele[i]+val, 120);
Find

Code:
sd->subele[type2] += val;
Replace with
Code:
sd->subele[type2] = min(sd->subele[type2]+val, 120);
 
hmmm thanks for reply..

BTW i try this but when i use 100% al elemnt card resist people still miss when attacking hmm

doest work it should have 20% damage more..

please help me more
default_biggrin.png


src/map/pc.c
Find

sd->subele += val;Replace with
Code:
sd->subele[i] += min(sd->subele[i]+val, 120);
Find
Code:
sd->subele[type2] += val;
Replace with
Code:
sd->subele[type2] = min(sd->subele[type2]+val, 120);
i mean normal element to miss is 100% i want it to become 120% to make element miss i try this still cap at 100 hmm..

 
I think he meant it a bit differently than what Dastgir suggested. I'd say he needs to change battle.c:

Line 1047 change

(100 - ele_fix)

into

(120 - ele_fix)

Same in lines 1215 and 1275.

 
Back
Top