Where you took this, delta? or dont you just know about brackets? or are you goin' to say "anti l33ch pl0x", you're missick more brackets than methods what is needed![]()
|
|
By Lolzland ~ Mage K0
Difficulty: 2/10
Assumed Knowledge: Knowing where the attack void is
Server Base: My own should work on all (promise)
Classes Modified: Client.java
Procedure
Step 1: Alright Open client.java and search for
Step 2: Now in the boolean look forCode:public boolean Attack()
Step 3: Space and add thisCode:calculatemaxhit();
Step 4: Now Search ForCode:if (Hit(AttackingOn)) { hitDiff = misc.random(playerMaxHit); } else { hitDiff = 0;
Step 5: space and add this if you got it already dont add itCode:public class client extends Player implements Runnable {
If you dont have Checkbestbonus();Code:public boolean Hit(int index) { if (server.playerHandler.players[index] == null) { return false; } int BonusUsed = CheckBestBonus(); int enemyDef = server.playerHandler.players[index].playerBonus[BonusUsed + 5] + (server.playerHandler.players[index].playerLevel[1] / 4); int myBonus = playerBonus[BonusUsed] + (playerLevel[0] / 4); if (misc.random(myBonus) > misc.random(enemyDef)) { return true; } return false;
Add this somewhere its not a void
Save and CompileCode:public int CheckBestBonus() { if (playerBonus[1] > playerBonus[2] && playerBonus[1] > playerBonus[3]) { return 1; } if (playerBonus[2] > playerBonus[1] && playerBonus[2] > playerBonus[3]) { return 2; } if (playerBonus[3] > playerBonus[2] && playerBonus[3] > playerBonus[1]) { return 3; } return 1; }
Enjoy![]()

If only one lined is involved in an if statement you don't need brackets
Where as:Code:if(true) { System.out.println("Bad!"); }
Code:if(true) System.out.println("Good!");

I though in delta def mattered... like if u had 1 def u would always loose to someone with 99def

[Only registered and activated users can see links. ]
According to Java docs (which you cannot prove wrong), you FAIL SIR.Code:7.4 if, if-else, if else-if else Statements The if-else class of statements should have the following form: if (condition) { statements; } if (condition) { statements; } else { statements; } if (condition) { statements; } else if (condition) { statements; } else { statements; } Note: if statements always use braces {}. Avoid the following error-prone form: if (condition) //AVOID! THIS OMITS THE BRACES {}! statement;

actually just look in the client lots of if than statements don't have brackets for one line![]()
| « Adding Walls, Objects With commands. | Make your Client Require Official Client! Stops SYI, Nulls, Cheat Clients 100%! » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |