PDA

View Full Version : 508 Summoning effecting Combat level



vahshir
July 7th, 2010, 11:55
hey Guys im new to the site and i havent seen any one post anything about summoning level effecting the combat level of characters.

Go to playerupdatemasks.java and search for

int attack = p.getLevelForXP(0);

and under this code

int attack = p.getLevelForXP(0);
int defence = p.getLevelForXP(1);
int strength = p.getLevelForXP(2);
int hp = p.getLevelForXP(3);
int prayer = p.getLevelForXP(5);
int ranged = p.getLevelForXP(4);
int magic = p.getLevelForXP(6);

put this

int summoning = p.getLevelForXP(23);

and replace

p.combatLevel = (int) (defence + hp + Math.floor(prayer / 2) * 0.25) + 1;

with this

p.combatLevel = (int) ((defence + hp + Math.floor(prayer / 2) + (Math.floor(summoning / 2))) * 0.25) + 1;

if you know what you are doing you can tidy it up the line above a bit, but other wise it works :D

Enjoy

Phat
July 7th, 2010, 12:13
Nice when i used bubly it would be nice on some bases but too unstable.

vahshir
July 7th, 2010, 12:47
it doesn't seem unstable on my server tbh but it might be how it is structured.