Completed last minute bugs and cleanup

main
Joshua Sigona 3 years ago
parent b3ebaab817
commit 843740204b
  1. BIN
      bin/sig/RabiRandomTeleportation.class
  2. 11
      src/sig/RabiRandomTeleportation.java

@ -36,8 +36,8 @@ public class RabiRandomTeleportation {
long areaAddress = 0; long areaAddress = 0;
long fightingBossAddress = 0; long fightingBossAddress = 0;
long MIN_ALIVE_TIME=4500; long MIN_ALIVE_TIME=45000;
long MAX_ALIVE_TIME=7500; long MAX_ALIVE_TIME=75000;
long LAST_TELEPORT_TIME=System.currentTimeMillis(); long LAST_TELEPORT_TIME=System.currentTimeMillis();
long NEXT_TELEPORT_TIME=(long)(Math.random()*(MAX_ALIVE_TIME-MIN_ALIVE_TIME))+MIN_ALIVE_TIME+LAST_TELEPORT_TIME; long NEXT_TELEPORT_TIME=(long)(Math.random()*(MAX_ALIVE_TIME-MIN_ALIVE_TIME))+MIN_ALIVE_TIME+LAST_TELEPORT_TIME;
@ -204,12 +204,12 @@ public class RabiRandomTeleportation {
bunnyTeleportingAddress = 0xA73054; bunnyTeleportingAddress = 0xA73054;
fightingBossAddress = 0xA72E08; fightingBossAddress = 0xA72E08;
areaAddress = 0xA600AC; areaAddress = 0xA600AC;
System.out.println("Erina X:"+readFloatFromPointer(0xC,entityArrayPtr)); /*System.out.println("Erina X:"+readFloatFromPointer(0xC,entityArrayPtr));
System.out.println("Erina Y:"+readFloatFromPointer(0xC+0x4,entityArrayPtr)); System.out.println("Erina Y:"+readFloatFromPointer(0xC+0x4,entityArrayPtr));
System.out.println("Map: "+readIntFromMemory(mapAreaXAddress)+","+readIntFromMemory(mapAreaYAddress)); System.out.println("Map: "+readIntFromMemory(mapAreaXAddress)+","+readIntFromMemory(mapAreaYAddress));
long entityArrayPtrOffset = readIntFromMemory(0x96DA3C)-rabiRibiMemOffset; long entityArrayPtrOffset = readIntFromMemory(0x96DA3C)-rabiRibiMemOffset;
writeFloatToMemory(entityArrayPtrOffset+0xC,9600); writeFloatToMemory(entityArrayPtrOffset+0xC,9600);
writeFloatToMemory(entityArrayPtrOffset+0xC+0x4,9240); writeFloatToMemory(entityArrayPtrOffset+0xC+0x4,9240);*/
//updateEventValue((short)166,16,12,15,7); //updateEventValue((short)166,16,12,15,7);
//20x11 //20x11
//TeleportBunnyToRandomLocation(); //TeleportBunnyToRandomLocation();
@ -220,6 +220,7 @@ public class RabiRandomTeleportation {
LAST_TELEPORT_TIME=System.currentTimeMillis(); LAST_TELEPORT_TIME=System.currentTimeMillis();
NEXT_TELEPORT_TIME=(long)(Math.random()*(MAX_ALIVE_TIME-MIN_ALIVE_TIME))+MIN_ALIVE_TIME+LAST_TELEPORT_TIME; NEXT_TELEPORT_TIME=(long)(Math.random()*(MAX_ALIVE_TIME-MIN_ALIVE_TIME))+MIN_ALIVE_TIME+LAST_TELEPORT_TIME;
//System.out.println(NEXT_TELEPORT_TIME); //System.out.println(NEXT_TELEPORT_TIME);
} }
try { try {
Thread.sleep(1000); Thread.sleep(1000);
@ -248,7 +249,7 @@ public class RabiRandomTeleportation {
} while (tries<200&&readIntFromMemory(areaAddress)!=chosenLoc.area); } while (tries<200&&readIntFromMemory(areaAddress)!=chosenLoc.area);
try { try {
Thread.sleep(500); Thread.sleep(200);
} catch (InterruptedException e) { } catch (InterruptedException e) {
e.printStackTrace(); e.printStackTrace();
} }

Loading…
Cancel
Save