Canownueasy`
June 26th, 2010, 18:11
Hyperion 2 Alpha 1.667
By Canownueasy
Here is my first release of Hyperion 2, it's at Alpha stage 1.667. This includes the full Tom Script system, a decent combat system (with auto-retaliate), teleporting, and running.
BEFORE YOU DOWNLOAD IT WOULD BE APPRECIATED IF YOU JOIN MY SUPPORTERS GROUP
Only the registered members can see the link.
[DOWNLOAD] (Only the registered members can see the link.)
Only the registered members can see the link.
Only the registered members can see the link.
Only the registered members can see the link.
For Script Commenting
Add this under every handle (PlayerScript & ScriptReader)
if(s.startsWith("//")) {
return;
}
Combat Fix
Replace calculateMaxHit
public static int calculateMaxHit(Player player) {
double effectiveStrength = player.getSkills().getLevel(Skills.STRENGTH) + styleBonus(player);
double baseDamage = 1.2677 + (effectiveStrength / 10) + styleBonus(player) + 0.091;
double div = 1;
if(player.getAttackStyle() == ACCURATE) {
div += 0.34399087304;
}
double sub = 0.07;
if(player.getAttackStyle() == AGGRESSIVE) {
sub += 0.1198;
}
if(player.getAttackStyle() == ACCURATE) {
sub += 0.0627;
}
return Misc.random((int) (baseDamage * 1.087) / (Misc.random((int)(div + 0.0017 - sub)) + (int)div));
}
Replace styleBonus:
private static double styleBonus(Player player) {
if (player.getAttackStyle() == AGGRESSIVE) {
return 3.3137;
}
if (player.getAttackStyle() == ACCURATE) {
return 2.812339;
}
if (player.getAttackStyle() == CONTROLLED) {
return 1.759294;
}
if (player.getAttackStyle() == DEFENSIVE) {
return 1.219289959;
}
if (player.getAttackStyle() == RAPID) {
return 1.395;
}
if (player.getAttackStyle() == LONGRANGE) {
return 1.295847;
}
return 1.56873623937004;
}
In Depth Overlook
-- Server --
The performance
The higher the speed the better a server is running. Using benchmarks, we've measured about 15 log in requests. All were done in under 10ms on an Intel dual core processor.
-- Scripting Engine --
The performance
Our scripting system is both fast and reliable. With speeds up to 0.30ms per line, you never have to worry about slow loading scripts... think fast!
By Canownueasy
Here is my first release of Hyperion 2, it's at Alpha stage 1.667. This includes the full Tom Script system, a decent combat system (with auto-retaliate), teleporting, and running.
BEFORE YOU DOWNLOAD IT WOULD BE APPRECIATED IF YOU JOIN MY SUPPORTERS GROUP
Only the registered members can see the link.
[DOWNLOAD] (Only the registered members can see the link.)
Only the registered members can see the link.
Only the registered members can see the link.
Only the registered members can see the link.
For Script Commenting
Add this under every handle (PlayerScript & ScriptReader)
if(s.startsWith("//")) {
return;
}
Combat Fix
Replace calculateMaxHit
public static int calculateMaxHit(Player player) {
double effectiveStrength = player.getSkills().getLevel(Skills.STRENGTH) + styleBonus(player);
double baseDamage = 1.2677 + (effectiveStrength / 10) + styleBonus(player) + 0.091;
double div = 1;
if(player.getAttackStyle() == ACCURATE) {
div += 0.34399087304;
}
double sub = 0.07;
if(player.getAttackStyle() == AGGRESSIVE) {
sub += 0.1198;
}
if(player.getAttackStyle() == ACCURATE) {
sub += 0.0627;
}
return Misc.random((int) (baseDamage * 1.087) / (Misc.random((int)(div + 0.0017 - sub)) + (int)div));
}
Replace styleBonus:
private static double styleBonus(Player player) {
if (player.getAttackStyle() == AGGRESSIVE) {
return 3.3137;
}
if (player.getAttackStyle() == ACCURATE) {
return 2.812339;
}
if (player.getAttackStyle() == CONTROLLED) {
return 1.759294;
}
if (player.getAttackStyle() == DEFENSIVE) {
return 1.219289959;
}
if (player.getAttackStyle() == RAPID) {
return 1.395;
}
if (player.getAttackStyle() == LONGRANGE) {
return 1.295847;
}
return 1.56873623937004;
}
In Depth Overlook
-- Server --
The performance
The higher the speed the better a server is running. Using benchmarks, we've measured about 15 log in requests. All were done in under 10ms on an Intel dual core processor.
-- Scripting Engine --
The performance
Our scripting system is both fast and reliable. With speeds up to 0.30ms per line, you never have to worry about slow loading scripts... think fast!