mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-02 16:49:03 +00:00
Compare commits
155 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f3b47bb0d6 | |||
| dc4694c24c | |||
| a9d720fbae | |||
| ba7daa72d5 | |||
| 55a35a26b2 | |||
| 8e524cdcda | |||
| 9c21669609 | |||
| 06798c5e90 | |||
| 8317f3f031 | |||
| d9d450f61e | |||
| 8af938548b | |||
| 9fb110bb41 | |||
| 402d732975 | |||
| 199df17cf9 | |||
| 256452114c | |||
| e2cf6d2998 | |||
| 705f624a2b | |||
| fdac3e1422 | |||
| 414c9c3d0d | |||
| bbb33d243e | |||
| 930bc8d37b | |||
| d4b16a25aa | |||
| 680a0c2ee0 | |||
| 68256e41d8 | |||
| 20303071de | |||
| d876a923b9 | |||
| 3d1ae1b288 | |||
| f1ea4810dd | |||
| c9c3888c20 | |||
| a50f7d548b | |||
| fd31f57f5d | |||
| 3650170a84 | |||
| 4e8832cded | |||
| 4b78f6c136 | |||
| 8393c0c928 | |||
| 564f400007 | |||
| c3f4e831a3 | |||
| 9d57cb6d1a | |||
| ab57946a01 | |||
| f7d719c811 | |||
| 2498cff188 | |||
| 209b3b3bf3 | |||
| 4f5c808298 | |||
| 8920ff512a | |||
| 66cc2e47fe | |||
| e110ba296e | |||
| 2104fd9918 | |||
| 576bee32c3 | |||
| c91027f25f | |||
| 64ce050d10 | |||
| bda929229e | |||
| 05a3a912f6 | |||
| 4c42557332 | |||
| f4ea14f2bf | |||
| e42394fdbe | |||
| 28b7163c6d | |||
| ded7cd28b8 | |||
| 626d237a8e | |||
| 4445fc0871 | |||
| e519d1b00b | |||
| 2b93d72a15 | |||
| 2683ab888b | |||
| 3a4895590e | |||
| a1ff2458f1 | |||
| 5a520fa316 | |||
| aa61fc5cbf | |||
| b920549af0 | |||
| 10c7adf74d | |||
| d2cf6fac12 | |||
| b940e8e859 | |||
| e0925538c7 | |||
| ca12809861 | |||
| 3afb44615e | |||
| bff9e44d8f | |||
| d6ec93b199 | |||
| abc3a9859f | |||
| ae883964af | |||
| d62e5a8d70 | |||
| 544f266c8f | |||
| 23081c0eac | |||
| 8b4969a882 | |||
| e282778f22 | |||
| b6a590d44f | |||
| 7627ed80eb | |||
| 0543919ed1 | |||
| a91dc597e9 | |||
| 07472a9a90 | |||
| 6e3f76329a | |||
| 03721c5c1a | |||
| 3c332cd653 | |||
| 34f2665858 | |||
| 447fc738d9 | |||
| 4b3bb7ade7 | |||
| 92688def31 | |||
| c0c6b40387 | |||
| 820c6fafba | |||
| 27b5f075bc | |||
| 925c91406d | |||
| e5a0f84fcc | |||
| 26ff191af3 | |||
| 2b6ff7db02 | |||
| 855f4b9ab7 | |||
| 4a2358945c | |||
| 92c5ac1f7e | |||
| e28bada221 | |||
| 8570b5f531 | |||
| 9dcc1eee0b | |||
| 9ed8ea8ae7 | |||
| e8cbb975bc | |||
| 3592cb7af9 | |||
| b13fa89de2 | |||
| 165f156814 | |||
| 7366de67e1 | |||
| 982ae74d37 | |||
| c827d46ca0 | |||
| a4e4b89d99 | |||
| d14f4e5044 | |||
| e26f32439a | |||
| 2f26fbe5fb | |||
| 2aef86ed25 | |||
| 6cda5d5c78 | |||
| d53ed61064 | |||
| 679fad7b18 | |||
| dc3f561868 | |||
| c6155eb529 | |||
| 4db7ee6761 | |||
| 8d14d76313 | |||
| aaf0a48140 | |||
| 68013f3498 | |||
| afd1da91e1 | |||
| 4490de88c4 | |||
| 58dab39d3b | |||
| 8ef0b3662e | |||
| 6b4b1eddf7 | |||
| c2a768a354 | |||
| 3a50391304 | |||
| c152a1c8d9 | |||
| e2f700de67 | |||
| f13f0af171 | |||
| 2ade1073b9 | |||
| 452ee7a637 | |||
| 87440ecd2a | |||
| dcc7984e27 | |||
| 0a11ce01d1 | |||
| 9db31e52c9 | |||
| ff75851cad | |||
| a176bfa9cb | |||
| 16b23be1d5 | |||
| bb936bf809 | |||
| 5c4ca489ef | |||
| fcb3fa255f | |||
| b02950045c | |||
| dcf6cbdc45 | |||
| efc6b3c8be | |||
| 9950dbe315 |
@@ -1 +1,5 @@
|
||||
2006Redone\ Server/data/characters/
|
||||
.idea/
|
||||
.idea/workspace.xml
|
||||
**/.idea/workspace.xml
|
||||
**/.idea/*
|
||||
|
||||
Generated
+1
-1
@@ -7,7 +7,7 @@
|
||||
<sourceFolder url="file://$MODULE_DIR$/2006Redone file_server/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/2006Redone Client/src" isTestSource="false" />
|
||||
</content>
|
||||
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module-library">
|
||||
<library>
|
||||
|
||||
Generated
+11
@@ -0,0 +1,11 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="2006rebotted:jar">
|
||||
<output-path>$PROJECT_DIR$/CompiledServer/artifacts/2006rebotted_jar</output-path>
|
||||
<root id="archive" name="2006rebotted.jar">
|
||||
<element id="directory" name="META-INF">
|
||||
<element id="file-copy" path="$PROJECT_DIR$/2006Redone Client/METAs/Client Meta/META-INF/MANIFEST.MF" />
|
||||
</element>
|
||||
<element id="module-output" name="2006rebotted" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="localhost_2006rebotted:jar">
|
||||
<output-path>$PROJECT_DIR$/CompiledServer/artifacts/localhost_2006rebotted_jar</output-path>
|
||||
<root id="archive" name="localhost_2006rebotted.jar">
|
||||
<element id="directory" name="META-INF">
|
||||
<element id="file-copy" path="$PROJECT_DIR$/2006Redone Client/METAs/Local Client Meta/META-INF/MANIFEST.MF" />
|
||||
</element>
|
||||
<element id="module-output" name="2006rebotted" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
||||
Generated
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CheckStyle-IDEA">
|
||||
<option name="configuration">
|
||||
<map>
|
||||
<entry key="checkstyle-version" value="8.25" />
|
||||
<entry key="copy-libs" value="true" />
|
||||
<entry key="location-0" value="BUNDLED:(bundled):Sun Checks" />
|
||||
<entry key="location-1" value="BUNDLED:(bundled):Google Checks" />
|
||||
<entry key="scan-before-checkin" value="false" />
|
||||
<entry key="scanscope" value="JavaOnly" />
|
||||
<entry key="suppress-errors" value="false" />
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+140
@@ -0,0 +1,140 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ArtifactsWorkspaceSettings">
|
||||
<artifacts-to-build>
|
||||
<artifact name="localhost_2006rebotted:jar" />
|
||||
</artifacts-to-build>
|
||||
</component>
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="9c1d485e-b413-4c80-b742-7c5a88c1c73c" name="Default Changelist" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
|
||||
</list>
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FindInProjectRecents">
|
||||
<findStrings>
|
||||
<find>math.sq</find>
|
||||
</findStrings>
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="ProjectFrameBounds">
|
||||
<option name="x" value="-7" />
|
||||
<option name="width" value="1294" />
|
||||
<option name="height" value="1407" />
|
||||
</component>
|
||||
<component name="ProjectId" id="1Sr1PyvKre5eWJ6XgOrqWrHM5hp" />
|
||||
<component name="PropertiesComponent">
|
||||
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$/2006Redone Client/METAs/Client Meta" />
|
||||
<property name="project.structure.last.edited" value="Project" />
|
||||
<property name="project.structure.proportion" value="0.15" />
|
||||
<property name="project.structure.side.proportion" value="0.2" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="RunManager" selected="Application.GameEngine">
|
||||
<configuration name="Client" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="Client" />
|
||||
<module name="2006rebotted" />
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<configuration name="FileServer" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="org.apollo.jagcached.FileServer" />
|
||||
<module name="2006rebotted" />
|
||||
<option name="WORKING_DIRECTORY" value="2006Redone file_server" />
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
<option name="PATTERN" value="org.apollo.jagcached.*" />
|
||||
<option name="ENABLED" value="true" />
|
||||
</pattern>
|
||||
</extension>
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<configuration name="GameEngine" type="Application" factoryName="Application" temporary="true" nameIsGenerated="true">
|
||||
<option name="MAIN_CLASS_NAME" value="com.rebotted.GameEngine" />
|
||||
<module name="2006rebotted" />
|
||||
<option name="WORKING_DIRECTORY" value="2006Redone Server" />
|
||||
<extension name="coverage">
|
||||
<pattern>
|
||||
<option name="PATTERN" value="redone.*" />
|
||||
<option name="ENABLED" value="true" />
|
||||
</pattern>
|
||||
</extension>
|
||||
<method v="2">
|
||||
<option name="Make" enabled="true" />
|
||||
</method>
|
||||
</configuration>
|
||||
<list>
|
||||
<item itemvalue="Application.FileServer" />
|
||||
<item itemvalue="Application.GameEngine" />
|
||||
<item itemvalue="Application.Client" />
|
||||
</list>
|
||||
<recent_temporary>
|
||||
<list>
|
||||
<item itemvalue="Application.GameEngine" />
|
||||
<item itemvalue="Application.FileServer" />
|
||||
<item itemvalue="Application.Client" />
|
||||
</list>
|
||||
</recent_temporary>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="9c1d485e-b413-4c80-b742-7c5a88c1c73c" name="Default Changelist" comment="" />
|
||||
<created>1572306880139</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1572306880139</updated>
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="Vcs.Log.Tabs.Properties">
|
||||
<option name="TAB_STATES">
|
||||
<map>
|
||||
<entry key="MAIN">
|
||||
<value>
|
||||
<State>
|
||||
<option name="COLUMN_ORDER" />
|
||||
</State>
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
<option name="RECENT_FILTERS">
|
||||
<map>
|
||||
<entry key="Branch">
|
||||
<value>
|
||||
<list />
|
||||
</value>
|
||||
</entry>
|
||||
<entry key="User">
|
||||
<value>
|
||||
<list />
|
||||
</value>
|
||||
</entry>
|
||||
</map>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,3 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: Client
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
/Client.class
|
||||
/LocalGame.class
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
/* AUTOMATICALLY GENERATED ON Tue Apr 16 17:20:59 EDT 2002*/
|
||||
/* DO NOT EDIT */
|
||||
|
||||
grant {
|
||||
permission java.security.AllPermission;
|
||||
};
|
||||
|
||||
@@ -10,20 +10,19 @@ public class ClientSettings {
|
||||
/**
|
||||
* The Servers Name
|
||||
*/
|
||||
public final static String SERVER_NAME = "2006Redone";
|
||||
public final static String SERVER_NAME = "2006rebotted";
|
||||
/**
|
||||
* The Servers Website
|
||||
*/
|
||||
public final static String SERVER_WEBSITE = "www.2006redone.org";
|
||||
public final static String SERVER_WEBSITE = "www.2006rebotted.tk";
|
||||
/**
|
||||
* The Servers Ip
|
||||
*
|
||||
* You dont have to change this, the client will automatically connect to the server
|
||||
* on localhost
|
||||
* You don't have to change this, the client will automatically connect to the server
|
||||
* on localhost (Assuming you're running Client and LocalGame respectively)
|
||||
*
|
||||
*/
|
||||
public static String SERVER_IP = "35.226.247.68";
|
||||
//public final static String SERVER_IP = "127.0.0.1;
|
||||
public static String SERVER_IP = "2006rebotted.hopto.org";
|
||||
/**
|
||||
* The Npc Bits for the Server
|
||||
*/
|
||||
|
||||
@@ -1,8 +1,11 @@
|
||||
/**
|
||||
* NOTICE: IF YOU CHANGE ANYTHING IN GAME.JAVA, PLEASE COPY-PASTE THE WHOLE CLASS OVER TO LOCALGAME.JAVA
|
||||
* THIS IS TO ALLOW LOCAL PARABOT TO CONTINUE TO WORK
|
||||
*/
|
||||
|
||||
import javax.swing.*;
|
||||
import java.applet.AppletContext;
|
||||
import java.awt.Color;
|
||||
import java.awt.Component;
|
||||
import java.awt.Font;
|
||||
import java.awt.Graphics;
|
||||
import java.awt.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.DataInputStream;
|
||||
@@ -20,8 +23,13 @@ import java.text.DecimalFormatSymbols;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* NOTICE: IF YOU CHANGE ANYTHING IN GAME.JAVA, PLEASE COPY-PASTE THE WHOLE CLASS OVER TO LOCALGAME.JAVA
|
||||
* THIS IS TO ALLOW LOCAL PARABOT TO CONTINUE TO WORK
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class Game extends RSApplet {
|
||||
private boolean graphicsEnabled = true;
|
||||
|
||||
public static String intToKOrMilLongName(int i) {
|
||||
String s = String.valueOf(i);
|
||||
@@ -4761,6 +4769,9 @@ public class Game extends RSApplet {
|
||||
inputTaken = true;
|
||||
}
|
||||
if ((j == 13 || j == 10) && inputString.length() > 0) {
|
||||
if (inputString.equals("::gfxtgl") || inputString.equals("::tglgfx") || inputString.equals("::togglerender") || inputString.equals("::togglegfx")) {
|
||||
graphicsEnabled = !graphicsEnabled;
|
||||
}
|
||||
if (myPrivilege == 2) {
|
||||
if (inputString.equals("::clientdrop")) {
|
||||
dropClient();
|
||||
@@ -9761,8 +9772,10 @@ public class Game extends RSApplet {
|
||||
int j13 = stream.readUnsignedByte();
|
||||
int k15 = anInt1268 + (j13 >> 4 & 7);
|
||||
int l16 = anInt1269 + (j13 & 7);
|
||||
if (k15 >= 0 && l16 >= 0 && k15 < 104 && l16 < 104)
|
||||
|
||||
if (k15 >= 0 && l16 >= 0 && k15 < 104 && l16 < 104) {
|
||||
method130(-1, -1, j8, i11, l16, k5, plane, k15, 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (j == 151) {
|
||||
@@ -9774,6 +9787,7 @@ public class Game extends RSApplet {
|
||||
int i15 = k12 >> 2;
|
||||
int k16 = k12 & 3;
|
||||
int l17 = anIntArray1177[i15];
|
||||
//System.out.println("id: " + j10 + " x:" + (this.baseX + anInt1268) + " y:" + (this.baseY + anInt1269));
|
||||
if (l4 >= 0 && k7 >= 0 && l4 < 104 && k7 < 104)
|
||||
method130(-1, j10, k16, l17, k7, i15, plane, l4, 0);
|
||||
return;
|
||||
@@ -10632,7 +10646,7 @@ public class Game extends RSApplet {
|
||||
}
|
||||
if (pktType == 174) {
|
||||
int id = inStream.readUnsignedWord();
|
||||
int type = inStream.readUnsignedByte();
|
||||
int type = /*inStream.readUnsignedByte()*/1;
|
||||
int delay = inStream.readUnsignedWord();
|
||||
int volume = inStream.readUnsignedByte();
|
||||
sound[currentSound] = id;
|
||||
@@ -11407,6 +11421,7 @@ public class Game extends RSApplet {
|
||||
|
||||
Signlink.reporterror(s2);
|
||||
resetLogout();
|
||||
exception.printStackTrace();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -11474,20 +11489,25 @@ public class Game extends RSApplet {
|
||||
Model.anInt1685 = super.mouseX - 4;
|
||||
Model.anInt1686 = super.mouseY - 4;
|
||||
DrawingArea.setAllPixelsToZero();
|
||||
// xxx disables graphics if(graphicsEnabled){
|
||||
worldController.method313(xCameraPos, yCameraPos, xCameraCurve, zCameraPos, j, yCameraCurve);
|
||||
worldController.clearObj5Cache();
|
||||
updateEntities();
|
||||
drawHeadIcon();
|
||||
if(graphicsEnabled){
|
||||
worldController.method313(xCameraPos, yCameraPos, xCameraCurve, zCameraPos, j, yCameraCurve);
|
||||
worldController.clearObj5Cache();
|
||||
updateEntities();
|
||||
drawHeadIcon();
|
||||
}
|
||||
// Allow tabs to work
|
||||
method37(k2);
|
||||
// Allow stuff inside the tabs to work
|
||||
draw3dScreen();
|
||||
// Show overlays on main screen
|
||||
aRSImageProducer_1165.drawGraphics(4, super.graphics, 4);
|
||||
xCameraPos = l;
|
||||
zCameraPos = i1;
|
||||
yCameraPos = j1;
|
||||
yCameraCurve = k1;
|
||||
xCameraCurve = l1;
|
||||
// }
|
||||
if(graphicsEnabled) {
|
||||
xCameraPos = l;
|
||||
zCameraPos = i1;
|
||||
yCameraPos = j1;
|
||||
yCameraCurve = k1;
|
||||
xCameraCurve = l1;
|
||||
}
|
||||
}
|
||||
|
||||
public void closeOpenInterfaces() {
|
||||
@@ -11515,6 +11535,16 @@ public class Game extends RSApplet {
|
||||
}
|
||||
|
||||
public Game() {
|
||||
//Test if they're on 32-bit, warn them if they are
|
||||
if (!System.getProperty("os.arch").contains("64"))
|
||||
{
|
||||
JOptionPane.showMessageDialog(null, "You're running 32-bit java. This will definitely cause problems.\nYou can get the right Java 8 at AdoptOpenJDK.net", "You're running 32-bit Java!", JOptionPane.INFORMATION_MESSAGE);
|
||||
System.out.println("Please upgrade to 64-bit java to avoid problems! (AdoptOpenJDK.net)");
|
||||
}
|
||||
if (Double.parseDouble(System.getProperty("java.specification.version")) >= 1.9) {
|
||||
JOptionPane.showMessageDialog(null, "You're not running Java 8. If you're using Parabot, this will cause problems!\nYou can get Java 8 from AdoptOpenJDK.net", "You're not running Java 8!", JOptionPane.INFORMATION_MESSAGE);
|
||||
System.out.println("Please downgrade to Java 8 to avoid problems! (AdoptOpenJDK.net)");
|
||||
}
|
||||
server = ClientSettings.SERVER_IP;
|
||||
anIntArrayArray825 = new int[104][104];
|
||||
friendsNodeIDs = new int[200];
|
||||
@@ -12149,7 +12179,7 @@ public class Game extends RSApplet {
|
||||
this.anInt1187 += (j << 1);
|
||||
}
|
||||
|
||||
public final void keyPressed(KeyEvent keyevent)
|
||||
public void keyPressed(KeyEvent keyevent)
|
||||
{
|
||||
super.keyPressed(keyevent);
|
||||
switch (keyevent.getKeyCode())
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
/**
|
||||
* NOTICE: IF YOU CHANGE ANYTHING IN GAME.JAVA, PLEASE COPY-PASTE THE WHOLE CLASS OVER TO LOCALGAME.JAVA
|
||||
* THIS IS TO ALLOW LOCAL PARABOT TO CONTINUE TO WORK
|
||||
*/
|
||||
|
||||
import java.applet.AppletContext;
|
||||
import java.awt.*;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.io.*;
|
||||
import java.net.InetAddress;
|
||||
import java.net.Socket;
|
||||
import java.net.URL;
|
||||
import java.text.DecimalFormat;
|
||||
import java.text.DecimalFormatSymbols;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* NOTICE: IF YOU CHANGE ANYTHING IN GAME.JAVA, PLEASE COPY-PASTE THE WHOLE CLASS OVER TO LOCALGAME.JAVA
|
||||
* THIS IS TO ALLOW LOCAL PARABOT TO CONTINUE TO WORK
|
||||
*/
|
||||
@SuppressWarnings("serial")
|
||||
public class LocalGame extends Game {
|
||||
public LocalGame() {
|
||||
super();
|
||||
server = "127.0.0.1";
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,7 @@ public final class Main {
|
||||
*/
|
||||
|
||||
public static void main(String[] args) {
|
||||
ClientSettings.SERVER_IP = "2006rebotted.hopto.org";
|
||||
if (args.length > 1)
|
||||
{
|
||||
System.out.println("Running local");
|
||||
|
||||
@@ -284,7 +284,7 @@ public class RSApplet extends Applet implements Runnable, MouseListener, MouseMo
|
||||
}
|
||||
|
||||
@Override
|
||||
public final void mouseMoved(MouseEvent mouseevent) {
|
||||
public void mouseMoved(MouseEvent mouseevent) {
|
||||
int i = mouseevent.getX();
|
||||
int j = mouseevent.getY();
|
||||
if (gameFrame != null) {
|
||||
|
||||
@@ -111,6 +111,14 @@ public final class RSInterface {
|
||||
rsInterface.actions[l3] = null;
|
||||
}
|
||||
}
|
||||
if(rsInterface.parentID == 3822) {
|
||||
rsInterface.actions[2] = "Sell 10";
|
||||
rsInterface.actions[3] = "Sell X";
|
||||
}
|
||||
if(rsInterface.id == 3900) {
|
||||
rsInterface.actions[2] = "Buy 10";
|
||||
rsInterface.actions[3] = "Buy X";
|
||||
}
|
||||
}
|
||||
if (rsInterface.type == 3) {
|
||||
rsInterface.aBoolean227 = stream.readUnsignedByte() == 1;
|
||||
|
||||
@@ -278,7 +278,7 @@ public final class Signlink implements Runnable {
|
||||
public static Synthesizer synthesizer = null;
|
||||
|
||||
public static String findcachedir() {
|
||||
String path = System.getProperty("user.home") + "/.2006redone_file_system/";
|
||||
String path = System.getProperty("user.home") + "/.2006rebotted_file_system/";
|
||||
File file = new File(path);
|
||||
if (!file.exists()) {
|
||||
if (!file.mkdirs()) {
|
||||
@@ -289,7 +289,7 @@ public final class Signlink implements Runnable {
|
||||
}
|
||||
|
||||
public static String secondDir() {
|
||||
File file = new File("C:/.2006redone_file_system/");
|
||||
File file = new File("C:/.2006rebotted_file_system/");
|
||||
if (!file.exists()) {
|
||||
file.mkdirs();
|
||||
}
|
||||
|
||||
@@ -34,31 +34,31 @@ final class SizeConstants {
|
||||
173, 228, 121, 83, 133, 68, 0
|
||||
};
|
||||
public static final int[] packetSizes = {
|
||||
0, 0, 0, 0, 6, 0, 0, 0, 4, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 1, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, -2, 4, 3, 0, 0, 0,
|
||||
0, 0, 0, 0, 5, 0, 0, 6, 0, 0,
|
||||
9, 0, 0, -2, 0, 0, 0, 0, 0, 0,
|
||||
-2, 1, 0, 0, 2, -2, 0, 0, 0, 0,
|
||||
6, 3, 2, 4, 2, 4, 0, 0, 0, 4,
|
||||
0, -2, 0, 0, 7, 2, 0, 6, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 2, 0, 1,
|
||||
0, 2, 0, 0, -1, 4, 1, 0, 0, 0,
|
||||
1, 0, 0, 0, 2, 0, 0, 15, 0, 0,
|
||||
0, 4, 4, 0, 0, 0, -2, 0, 0, 0,
|
||||
0, 0, 0, 0, 6, 0, 0, 0, 0, 0,
|
||||
0, 0, 2, 0, 0, 0, 0, 14, 0, 0,
|
||||
0, 4, 0, 0, 0, 0, 3, 0, 0, 0,
|
||||
4, 0, 0, 0, 2, 0, 6, 0, 0, 0,
|
||||
0, 3, 0, 0, 5, 0, 10, 6, 0, 0,
|
||||
0, 0, 0, 0, 0, 2, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, -1, 0, 0, 0,
|
||||
4, 0, 0, 0, 0, 0, 3, 0, 2, 0,
|
||||
0, 0, 0, 0, -2, 7, 0, 0, 2, 0,
|
||||
0, 1, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
8, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
2, -2, 0, 0, 0, 0, 6, 0, 4, 3,
|
||||
0, 0, 0, -1, 6, 0, 0
|
||||
0, 0, 0, 0, 6, 0, 0, 0, 4, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, //10
|
||||
0, 0, 0, 0, 1, 0, 0, 0, 0, 0, //20
|
||||
0, 0, 0, 0, -2, 4, 3, 0, 0, 0, //30
|
||||
0, 0, 0, 0, 5, 0, 0, 6, 0, 0, //40
|
||||
9, 0, 0, -2, 0, 0, 0, 0, 0, 0, //50
|
||||
-2, 1, 0, 0, 2, -2, 0, 0, 0, 0, //60
|
||||
6, 3, 2, 4, 2, 4, 0, 0, 0, 4, //70
|
||||
0, -2, 0, 0, 7, 2, 0, 6, 0, 0, //80
|
||||
0, 0, 0, 0, 0, 0, 0, 2, 0, 1, //90
|
||||
0, 2, 0, 0, -1, 4, 1, 0, 0, 0, //100
|
||||
1, 0, 0, 0, 2, 0, 0, 15, 0, 0, //110
|
||||
0, 4, 4, 0, 0, 0, -2, 0, 0, 0, //120
|
||||
0, 0, 0, 0, 6, 0, 0, 0, 0, 0, //130
|
||||
0, 0, 2, 0, 0, 0, 0, 14, 0, 0, //140
|
||||
0, 4, 0, 0, 0, 0, 3, 0, 0, 0, //150
|
||||
4, 0, 0, 0, 2, 0, 6, 0, 0, 0, //160
|
||||
0, 3, 0, 0, 5, 0, 10, 6, 0, 0, //170
|
||||
0, 0, 0, 0, 0, 2, 0, 0, 0, 0, //180
|
||||
0, 0, 0, 0, 0, 0, -1, 0, 0, 0, //190
|
||||
4, 0, 0, 0, 0, 0, 3, 0, 2, 0, //200
|
||||
0, 0, 0, 0, -2, 7, 0, 0, 2, 0, //210
|
||||
0, 1, 0, 0, 0, 0, 0, 0, 0, 0, //220
|
||||
8, 0, 0, 0, 0, 0, 0, 0, 0, 0, //230
|
||||
2, -2, 0, 0, 0, 0, 6, 0, 4, 3, //240
|
||||
0, 0, 0, -1, 6, 0, 0//250
|
||||
};
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user