* Telnet/SSH Applet from http://javassh.org. The files have been
* modified and are supplied under the terms of the original license.
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* You should have received a copy of the GNU General Public
* License along with this program; if not, write to the Free Software
TerminalPanel.this, KeyEvent.KEY_PRESSED,
System.currentTimeMillis(), ks.getModifiers(),
if (version.startsWith("1.4")) {
if (fm != null) {
if (buffer.update != null) {
if (debug > 0) {
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* <p/>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
String osName = System.getProperty("os.name");
if (osName.startsWith("Mac OS")) {
double version = Double.valueOf(majorMRJVersion).doubleValue();
if (version == 2) {
}
else if (version >= 2.1 && version < 3) {
}
else if (version >= 3.1) {
}
else if (osName.startsWith("Windows")) {
if (osName.indexOf("9") != -1) {
jvm = WINDOWS_9x;
* <p>
* Yes, this is platform-specific code, and yes, it may rely on classes on certain platforms
* that are not part of the standard JDK. What we're trying to do, though, is to take something
* that's frequently desirable but inherently platform-specific -- opening a default browser --
* Anyway, this code is completely in Java and will run on all JDK 1.1-compliant systems without
* modification or a need for additional libraries. All classes that are required on certain
* platforms to allow this to run are dynamically loaded at runtime via reflection and, if not
* found, will not cause this to do anything other than returning an error when opening the
double version = Double.valueOf(majorMRJVersion).doubleValue();
if (version == 2) {
jvm = MRJ_2_0;
}
} else if (osName.startsWith("Windows")) {
if (osName.contains("9")) {
jvm = WINDOWS_9x;
// Created: April 29, 2006
// Modified: March 30, 2008
// Create property items
menuGameNewGameSingle = CreateMenuItem( menuGameNewGame, ITEM_PLAIN, "Single-Player Game", null, 'S', null, AForceMenu.Identification.NewSinglePlayerGame);
menuGameNewGameMulti = CreateMenuItem( menuGameNewGame, ITEM_PLAIN, "Multi-Player Game", null, 'M', null, AForceMenu.Identification.NewMultiPlayerGame);
menuGameNewGameCustom = CreateMenuItem( menuGameNewGame, ITEM_PLAIN, "Custom (Requires Root)", null, 'C', null, AForceMenu.Identification.NewCustomGame);
menuGamePauseResume = CreateMenuItem(menuGame, ITEM_PLAIN, "Pause/Resume", null, 'r', "Pause/Resume Game", AForceMenu.Identification.PauseResume);
menuGamePauseResume = CreateMenuItem(menuGame, ITEM_PLAIN, "High Scores", null, 'r', "High Score List", AForceMenu.Identification.HighScores);
menuGameScreenShot = CreateMenuItem(menuGame, ITEM_PLAIN, "Capture ScreenShot", null, 'c', "Capture ScreenShot", AForceMenu.Identification.ScreenShot);
menuGameSave = CreateMenuItem(menuGame, ITEM_PLAIN, "Save", null, 's', "Save", AForceMenu.Identification.Save);
@ScriptManifest(authors = { "Conderoga" }, keywords = "Woodcutting", name = "C's Yew Chopper", version = 1.32,description = "Chops and banks yews at the GE, Edgeville, and Rimmington.")
final int welcome = JOptionPane.showConfirmDialog(null,"Before using my script, would you like to thank me\nby clicking some adverts?","Welcome", JOptionPane.YES_NO_OPTION);
if (welcome == 0) {
RSGroundItem o = groundItems.getNearest(BNIDs);
if(o!=null && !inventory.isFull())
if(getMyPlayer().getAnimation()==867||getMyPlayer().getAnimation()==2846)
status = "Starting up.";
if(location.equals("Grand Exchange"))
}
else if(check1[i].getID()==1309&&!tree1Status)
}
else if(check1[i].getID()==1309)
tree1TimeAlive = System.currentTimeMillis()-tree1AliveTime;}
else if(check1[i].getID()==7402)
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* Given a "work directory" this class creates a sub-directory with a
* name that uses locale specific characters. It the creates a jar
* manifest file in the work directory with a Boot-Class-Path that
* encodes the created sub-directory. Finally it creates a file
public static void main(String[] args) throws Exception {
if (args.length < 2) {
String manifestFile = workDir + fileSeparator + "MANIFEST.MF";
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* Given a "work directory" this class creates a sub-directory with a
* name that uses locale specific characters. It the creates a jar
* manifest file in the work directory with a Boot-Class-Path that
* encodes the created sub-directory. Finally it creates a file
public static void main(String[] args) throws Exception {
if (args.length < 2) {
String manifestFile = workDir + fileSeparator + "MANIFEST.MF";
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
if (osName.startsWith("Windows")) {
Matcher matcher = GOGRID_OS_PATTERN.matcher(from.getName());
if (matcher.find()) {
Matcher matcher = GOGRID_VERSION_PATTERN.matcher(osName);
if (matcher.find()) {
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
if (osName.startsWith("Windows")) {
Matcher matcher = GOGRID_OS_PATTERN.matcher(from.getName());
if (matcher.find()) {
Matcher matcher = GOGRID_VERSION_PATTERN.matcher(osName);
if (matcher.find()) {
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
if (debugLevel != null && !debugLevel.equals("false")) {
logger = PlatformLogger.getLogger("sun.java2d");
if (debugLevel.equals("warning")) {
logger.setLevel(PlatformLogger.WARNING);
} else if (debugLevel.equals("severe")) {
if (debugFonts) {
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
for (int i = 0; i < devnames.length; i++) {
if (new File(devnames[i]).isFile() ||
new File(devnames[i] + ".txt").isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
for (int i = 0; i < devnames.length; i++) {
if (new File(devnames[i]).isFile() ||
new File(devnames[i] + ".txt").isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
for (int i = 0; i < devnames.length; i++) {
if (new File(devnames[i]).isFile() ||
new File(devnames[i] + ".txt").isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
for (int i = 0; i < devnames.length; i++) {
if (new File(devnames[i]).isFile() ||
new File(devnames[i] + ".txt").isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
for (int i = 0; i < devnames.length; i++) {
if (new File(devnames[i]).isFile() ||
new File(devnames[i] + ".txt").isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
for (int i = 0; i < devnames.length; i++) {
if (new File(devnames[i]).isFile() ||
new File(devnames[i] + ".txt").isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
for (int i = 0; i < devnames.length; i++) {
if (new File(devnames[i]).isFile() ||
new File(devnames[i] + ".txt").isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
File f = new File(name);
if (f.isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String osName = System.getProperty("os.name");
if (!osName.startsWith("Windows")) {
File f = new File(name);
if (f.isFile()) {
if ("CLOCK$".equals(devnames[i]) &&
(osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))) {
//"CLOCK$" is a reserved device name for NT
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
if(command.equals("pwd"))
}
else if(command.startsWith("cd "))
{
case '~':
// insert the home directory if the tilde
// is the last character on the line, or if
// the character after it is whitespace or
// a path separator.
if(i == command.length() - 1)