Thread: ::god command help

Results 1 to 2 of 2
  1. #1 ::god command help 
    Registered Member
    Join Date
    Mar 2012
    Posts
    6
    Thanks given
    0
    Thanks received
    0
    Rep Power
    0
    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?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jun 2012
    Posts
    10
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Quote Originally Posted by ghost1848 View Post
    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?
    Its your source auto updating the stats why dont u just mke an item with all those stats cause everytime your client loads or auto refreshes it gonna put u back to the original stats
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 50
    Last Post: 04-17-2014, 02:19 PM
  2. Replies: 3
    Last Post: 07-02-2011, 01:57 AM
  3. Replies: 4
    Last Post: 12-21-2010, 09:36 PM
  4. Replies: 4
    Last Post: 12-19-2010, 11:46 PM
  5. Replies: 4
    Last Post: 02-13-2009, 12:32 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •