Originally Posted by
ghost1848
I just need to know how to make it to where my god command has unlimited bonuses until I take it off...
if (cmd[0].equalsIgnoreCase("god") && (player.getRights() >= 2)) {
player.setHitpoints(Short.MAX_VALUE);
player.getEquipment().setEquipmentHpIncrease(
Short.MAX_VALUE - 990);
for (int i = 0; i < player.getCombatDefinitions().getBonuses().length; i++)
player.getCombatDefinitions().getBonuses()[i] = 5000;
return true;
}
if (cmd[0].equalsIgnoreCase("ungod") && (player.getRights() >= 2)) {
player.setHitpoints(990);
player.getEquipment().setEquipmentHpIncrease(
0);
for (int i = 0; i < player.getCombatDefinitions().getBonuses().length; i++)
player.getCombatDefinitions().refreshBonuses();
return true;
}
and by the way, this is a 667 loading 728 server. Every time I call the command in the game, I get the 5000 bonus for like 4 seconds and then it stops itself... anyone know how to change that to where it doesn't stop until I call the "ungod" command?