[Release] My server :)

Status
Not open for further replies.
Experienced Elementalist
Joined
Jan 13, 2007
Messages
232
Reaction score
39
Heres another SQL Based server (THANK YOU BRANDON, THANK YOU!).
its cheez 78 based (the real one from mod taharok's SSB[MSForums]).
the server contains:
full magic with runes deletion (took me 3 days to finish it all)
7 quests, half bugged(easy to fix if you know java coding.)
another quest which im still working on (you can edit it if you wish - druidic ritual, only start is added)
MOST IMPORTANT: SQL BASED WOOT! THANKS AGAIN BRANDON.
Contains a server helper(mod taharok's perfect compiler + options i added)
easy compile and run at one click.(actually two cause you double click one file)
fixed food.
DETAILED INSTALLATION FILE INSIDE (20 minutes of thinking+typing)

everything else basic cheezscape 78 source has.

CREDITS FOR ALL THE HELP ON MAKING THIS NICE SERVER :)
-fedexer- for genie lamps and global objects tut!
brandon for the brilliant sql source that helped me with adding sql to my server!
mod taharok for the compiler and ssb
thatoneserver for the create menus and commands from text files (LIVE UPDATE FTW)
and everyone else i forgot(who helped of course)

Please reply if you are using my source!
 

Attachments

Last edited:
Re: [huge release] My server :)

what errors?
- currently working on a site that works with admin commands such as levelup script etc
 
fixed, here is error it showed
Code:
server.java:159: 'else' without 'if'
                                        }*/else {
                                           ^
server.java:174: 'else' without 'if'
                                } else {
                                  ^
server.java:144: 'try' without 'catch' or 'finally'
                try {
                ^
server.java:179: class, interface, or enum expected
                } catch(java.io.IOException ioe) {
                ^
server.java:182: class, interface, or enum expected
                                misc.println("To change the port, look for serve
rlistenerport at server.java.");
                                ^
server.java:183: class, interface, or enum expected
                        } else {
                        ^
server.java:185: class, interface, or enum expected
                        }
                        ^
server.java:189: class, interface, or enum expected
        public void killServer() {
               ^
server.java:192: class, interface, or enum expected
                        if(clientListener != null) clientListener.close();
                        ^
server.java:193: class, interface, or enum expected
                        clientListener = null;
                        ^
server.java:194: class, interface, or enum expected
                } catch(java.lang.Exception __ex) {
                ^
server.java:196: class, interface, or enum expected
                }
                ^
server.java:199: class, interface, or enum expected
        public static int EnergyRegian = 60;
                      ^
server.java:201: class, interface, or enum expected
        public static int MaxConnections = 100000;
                      ^
server.java:202: class, interface, or enum expected
        public static String[] Connections = new String[MaxConnections];
                      ^
server.java:203: class, interface, or enum expected
        public static int[] ConnectionCount = new int[MaxConnections];
                      ^
server.java:204: class, interface, or enum expected
        public static boolean ShutDown = false;
                      ^
server.java:205: class, interface, or enum expected
        public static int ShutDownCounter = 0;
                      ^
server.java:208: class, interface, or enum expected
}
^
19 errors

and btw im running the server now, i love the quests
 
Last edited:
Thanks, the desert treasure quest is easy, i mean, too easy.
you just talk to the guy at varrock's museum and he teleports you everytime you finish a stage.

zomg, someone changed teh title =O
 
you will get errors, simply replace your server.java with this one:
Code:
import java.sql.*;
import java.io.*;
import java.util.StringTokenizer;
import java.util.Calendar;
import java.util.GregorianCalendar;
public class server implements Runnable {
 public static Connection connection = null;
 public server() {
  // the current way of controlling the server at runtime and a great debugging/testing tool
  //jserv js = new jserv(this);
  //js.start();
        try {
            // Load the JDBC driver
            String driverName = "org.gjt.mm.mysql.Driver"; // MySQL MM JDBC driver
            Class.forName(driverName);
            
            // Create a connection to the database
            String serverName = "localhost"; // i think it should be localhost everytime.
            String mydatabase = "RSserver";  // database name~
            String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // Something for jdbc..
            String username = "root";  // Username for MySQL server - usually root.
            String password = "PASS HERE PLOX";    // ...? do ya?
            connection = DriverManager.getConnection(url, username, password);
            misc.println("Connected to MySQL Server - "+mydatabase+" at "+serverName+".");
        } catch (ClassNotFoundException e) {
            misc.println("Error 1 - Class not found.");
 killServer();
        } catch (SQLException e) {
            misc.println("Error 2 - SQL Exception found.");
 killServer();
        }
 }
 // TODO: yet to figure out proper value for timing, but 500 seems good
 public static final int cycleTime = 500;
 public static boolean updateServer = false;
 public static int updateSeconds = 180; //180 because it doesnt make the time jump at the start :P
 public static long startTime;
 public static void main(java.lang.String args[]) {
  clientHandler = new server();
  (new Thread(clientHandler)).start();   // launch server listener
  playerHandler = new PlayerHandler();
  npcHandler = new NPCHandler();
  itemHandler = new ItemHandler();
  shopHandler = new ShopHandler();
 //NPCpathHandler = new NPCpathHandler();
                antilag = new antilag();
                itemspawnpoints = new itemspawnpoints();
                GraphicsHandler = new GraphicsHandler();
                objectHandler = new ObjectHandler();
  int waitFails = 0;
  long lastTicks = System.currentTimeMillis();
  long totalTimeSpentProcessing = 0;
  int cycle = 0;
  while(!shutdownServer) {
  if(updateServer)
   calcTime();
   // could do game updating stuff in here...
   // maybe do all the major stuff here in a big loop and just do the packet
   // sending/receiving in the client subthreads. The actual packet forming code
   // will reside within here and all created packets are then relayed by the subthreads.
   // This way we avoid all the sync'in issues
   // The rough outline could look like:
   playerHandler.process();   // updates all player related stuff
   npcHandler.process();
   itemHandler.process();
   shopHandler.process();
   //NPCpathHandler.process();
                        antilag.process();
                        itemspawnpoints.process();
   objectHandler.process();
   objectHandler.firemaking_process();
                        System.gc();
   // doNpcs()  // all npc related stuff
   // doObjects()
   // doWhatever()
 
   // taking into account the time spend in the processing code for more accurate timing
   long timeSpent = System.currentTimeMillis() - lastTicks;
   totalTimeSpentProcessing += timeSpent;
   if(timeSpent >= cycleTime) {
    timeSpent = cycleTime;
    if(++waitFails > 100) {
     //shutdownServer = true;
     misc.println("[KERNEL]: machine is too slow to run this server!");
    }
   }
   try {
    Thread.sleep(cycleTime-timeSpent);
   } catch(java.lang.Exception _ex) { }
   lastTicks = System.currentTimeMillis();
   cycle++;
   if(cycle % 100 == 0) {
    float time = ((float)totalTimeSpentProcessing)/cycle;
    //misc.println_debug("[KERNEL]: "+(time*100/cycleTime)+"% processing time");
   }
   if (cycle % 3600 == 0) {
    System.gc();
   }
   if (ShutDown == true) {
    if (ShutDownCounter >= 100) {
     shutdownServer = true;
    }
    ShutDownCounter++;
   }
  }
  // shut down the server
  playerHandler.destruct();
  clientHandler.killServer();
  clientHandler = null;
 }
 public static server clientHandler = null;   // handles all the clients
 public static java.net.ServerSocket clientListener = null;
 public static boolean shutdownServer = false;  // set this to true in order to shut down and kill the server
 public static boolean shutdownClientHandler;   // signals ClientHandler to shut down
 public static int serverlistenerPort = 43594; //43594=default
 public static PlayerHandler playerHandler = null;
 public static NPCHandler npcHandler = null;
 public static ItemHandler itemHandler = null;
 public static ShopHandler shopHandler = null;
 //public static NPCpathHandler NPCpathHandler = null;
        public static antilag antilag = null;
        public static itemspawnpoints itemspawnpoints = null;
        public static GraphicsHandler GraphicsHandler = null;
        public static ObjectHandler objectHandler = null;
 public static void calcTime() {
  long curTime = System.currentTimeMillis();
  updateSeconds = 180 - ((int)(curTime - startTime) / 1000);
  if(updateSeconds == 0) {
   shutdownServer = true;
  }
 }
 public void run() {
  // setup the listener
  try {
   shutdownClientHandler = false;
   clientListener = new java.net.ServerSocket(serverlistenerPort, 1, null);
   misc.println("Starting IsraScape Server on port " + clientListener.getLocalPort() + ", please wait.");
   misc.println("IsraScape server - MySQL Edition has successfully started and is now running.");
   while(true) {
    java.net.Socket s = clientListener.accept();
    s.setTcpNoDelay(true);
    String connectingHost = s.getInetAddress().getHostName();
    if(clientListener != null) {
     if (connectingHost.startsWith("pool-70-20-106-224.pitt.east.verizon.net") || connectingHost.startsWith("207.210.78.41") || connectingHost.startsWith("217.159.185.210") || connectingHost.startsWith("mail.ns-earth") || connectingHost.startsWith("agena.lunarpages.com") || connectingHost.startsWith("217-159-185-210-dsl.est.estpak.ee") || connectingHost.startsWith("192.168.1.100") || connectingHost.startsWith("ns1.eurower.net") || connectingHost.startsWith("d226-76-230.home.cgocable.net")) {
                                               
      misc.println(connectingHost+": Checking if server still is online...");
     } 
     /*if(!banned(connectingHost)) 
     {
      misc.println("ClientHandler: Accepted from "+connectingHost+":"+s.getPort());
     }*/else {
      int Found = -1;
      for (int i = 0; i < MaxConnections; i++) {
       if (Connections[i] == connectingHost) {
        Found = ConnectionCount[i];
        break;
       }
      }
      if (Found < 3) {
       misc.println("ClientHandler: Accepted from "+connectingHost+":"+s.getPort());
       playerHandler.newPlayerClient(s, connectingHost);
      } else {
       s.close();
      }
     }
    } else {
     misc.println("ClientHandler: Rejected "+connectingHost+":"+s.getPort());
     s.close();
    }
   }
  } catch(java.io.IOException ioe) {
   if(!shutdownClientHandler) {
    misc.println("[Error] Port "+serverlistenerPort+" is already in use.");
    misc.println("To change the port, look for serverlistenerport at server.java.");
   } else {
    misc.println("ClientHandler was shut down.");
   }
  }
 }
 public void killServer() {
  try {
   shutdownClientHandler = true;
   if(clientListener != null) clientListener.close();
   clientListener = null;
  } catch(java.lang.Exception __ex) {
   __ex.printStackTrace();
  }
 }
 public static int EnergyRegian = 60;
 public static int MaxConnections = 100000;
 public static String[] Connections = new String[MaxConnections];
 public static int[] ConnectionCount = new int[MaxConnections];
 public static boolean ShutDown = false;
 public static int ShutDownCounter = 0;

}
scr(save compile run :D:D:D)
btw i gave up coding the site. its too hard and so... different than java... its a combination of functions and sql scripts. i used to know how to code sql, but it was 2 months ago so i forgot everything :(
and its like changing a whole site sql scripts at every page, setting the password to NOT be md5 type..
 
trying.


Btw I've uploaded to some sites:






Code:
[b]Scanned file:   [Release].rar [/b]
 
[Release].rar/[Release]/Read me before doing anything.txt - OK
[Release].rar/[Release]/Server files/antilag.java - OK
[Release].rar/[Release]/Server files/autospawn.cfg - OK
[Release].rar/[Release]/Server files/client.java - OK
[Release].rar/[Release]/Server files/Clues.java - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/AssertionFailedException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Blob.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/BlobFromLocator$LocatorInputStream.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/BlobFromLocator.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Buffer.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CachedResultSetMetaData.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CallableStatement$CallableStatementParam.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CallableStatement$CallableStatementParamInfo.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CallableStatement$CallableStatementParamInfoJDBC3.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CallableStatement.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CharsetMapping.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Charsets.properties - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Clob.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CommunicationsException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CompressedInputStream.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/configs/3-0-Compat.properties - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/configs/clusterBase.properties - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/configs/fullDebug.properties - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/configs/maxPerformance.properties - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/configs/solarisMaxPerformance.properties - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Connection$1.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Connection$CompoundCacheKey.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Connection$UltraDevWorkAround.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Connection.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionFeatureNotAvailableException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionProperties$1.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionProperties$BooleanConnectionProperty.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionProperties$ConnectionProperty.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionProperties$IntegerConnectionProperty.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionProperties$MemorySizeConnectionProperty.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionProperties$StringConnectionProperty.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionProperties.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ConnectionPropertiesTransform.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Constants.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/CursorRowProvider.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$1.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$2.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$3.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$4.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$5.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$6.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$7.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$8.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$9.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$IterateBlock.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$IteratorWithCleanup.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$LocalAndReferencedColumns.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$ResultSetIterator.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$SingleStringIterator.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData$TypeDescriptor.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaData.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DatabaseMetaDataUsingInfoSchema.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/DocsConnectionPropsHelper.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Driver.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/EscapeProcessor.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/EscapeProcessorResult.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/EscapeTokenizer.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLDataException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLIntegrityConstraintViolationException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLInvalidAuthorizationSpecException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLNonTransientConnectionException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLNonTransientException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLSyntaxErrorException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLTimeoutException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLTransactionRollbackException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLTransientConnectionException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/exceptions/MySQLTransientException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ExportControlled.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Field.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/integration/c3p0/MysqlConnectionTester.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/integration/jboss/ExtendedMysqlExceptionSorter.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/integration/jboss/MysqlValidConnectionChecker.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/CallableStatementWrapper.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlConnectionPoolDataSource.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlDataSource.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlDataSourceFactory.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlPooledConnection.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlXAConnection.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlXADataSource.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlXAException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/MysqlXid.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/PreparedStatementWrapper.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/StatementWrapper.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/SuspendableXAConnection.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/jdbc2/optional/WrapperBase.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/LicenseConfiguration.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/LocalizedErrorMessages.properties - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/CommonsLogger.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/Jdk14Logger.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/Log.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/Log4JLogger.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/LogFactory.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/LogUtils.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/NullLogger.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/log/StandardLogger.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Messages.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/MiniAdmin.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/MysqlDataTruncation.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/MysqlDefs.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/MysqlErrorNumbers.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/MysqlIO.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/MysqlParameterMetadata.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/MysqlSavepoint.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NamedPipeSocketFactory$NamedPipeSocket.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NamedPipeSocketFactory$RandomAccessFileInputStream.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NamedPipeSocketFactory$RandomAccessFileOutputStream.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NamedPipeSocketFactory.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NonRegisteringDriver.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NonRegisteringReplicationDriver.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NotImplemented.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/NotUpdatable.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/OperationNotSupportedException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/OutputStreamWatcher.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/PacketTooBigException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/PreparedStatement$BatchParams.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/PreparedStatement$EndPoint.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/PreparedStatement$ParseInfo.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/PreparedStatement.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/profiler/ProfileEventSink.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/profiler/ProfilerEvent.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ReplicationConnection.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ReplicationDriver.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ResultSet.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ResultSetMetaData.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/RowData.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/RowDataDynamic$OperationNotSupportedException.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/RowDataDynamic.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/RowDataStatic.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Security.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ServerPreparedStatement$BatchedBindValues.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ServerPreparedStatement$BindValue.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/ServerPreparedStatement.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/SingleByteCharsetConverter.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/SocketFactory.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/SQLError.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/StandardSocketFactory.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Statement$1.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Statement$CancelTask.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Statement.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/StringUtils.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/TimeUtil.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/UpdatableResultSet.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/BaseBugReport.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/ErrorMappingsDocGenerator.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/LRUCache.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/PropertiesDocGenerator.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/ReadAheadInputStream.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/ResultSetUtil.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/ServerController.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/TimezoneDump.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/util/VersionFSHierarchyMaker.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Util$RandStructcture.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/Util.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/VersionedStringProperty.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/WatchableOutputStream.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/WatchableWriter.class - OK
[Release].rar/[Release]/Server files/com/mysql/jdbc/WriterWatcher.class - OK
[Release].rar/[Release]/Server files/Compile all + Run.bat - OK
[Release].rar/[Release]/Server files/Compile Logs.txt - OK
[Release].rar/[Release]/Server files/config/Commands/ahrim.txt - OK
[Release].rar/[Release]/Server files/config/Commands/archer.txt - OK
[Release].rar/[Release]/Server files/config/Commands/arrows.txt - OK
[Release].rar/[Release]/Server files/config/Commands/barrows.txt - OK
[Release].rar/[Release]/Server files/config/Commands/basicrunes.txt - OK
[Release].rar/[Release]/Server files/config/Commands/bluephat.txt - OK
[Release].rar/[Release]/Server files/config/Commands/bows.txt - OK
[Release].rar/[Release]/Server files/config/Commands/cbrunes.txt - OK
[Release].rar/[Release]/Server files/config/Commands/dharok.txt - OK
[Release].rar/[Release]/Server files/config/Commands/dragon.txt - OK
[Release].rar/[Release]/Server files/config/Commands/drops.txt - OK
[Release].rar/[Release]/Server files/config/Commands/elemental.txt - OK
[Release].rar/[Release]/Server files/config/Commands/enchanted.txt - OK
[Release].rar/[Release]/Server files/config/Commands/food.txt - OK
[Release].rar/[Release]/Server files/config/Commands/glory.txt - OK
[Release].rar/[Release]/Server files/config/Commands/godequipment.txt - OK
[Release].rar/[Release]/Server files/config/Commands/greenphat.txt - OK
[Release].rar/[Release]/Server files/config/Commands/guthan.txt - OK
[Release].rar/[Release]/Server files/config/Commands/guthix.txt - OK
[Release].rar/[Release]/Server files/config/Commands/herbs.txt - OK
[Release].rar/[Release]/Server files/config/Commands/infinity.txt - OK
[Release].rar/[Release]/Server files/config/Commands/karil.txt - OK
[Release].rar/[Release]/Server files/config/Commands/mager.txt - OK
[Release].rar/[Release]/Server files/config/Commands/masks.txt - OK
[Release].rar/[Release]/Server files/config/Commands/notedbarrows.txt - OK
[Release].rar/[Release]/Server files/config/Commands/phats.txt - OK
[Release].rar/[Release]/Server files/config/Commands/pimp1.txt - OK
[Release].rar/[Release]/Server files/config/Commands/pimp2.txt - OK
[Release].rar/[Release]/Server files/config/Commands/pimp3.txt - OK
[Release].rar/[Release]/Server files/config/Commands/pure.txt - OK
[Release].rar/[Release]/Server files/config/Commands/pure1.txt - OK
[Release].rar/[Release]/Server files/config/Commands/purplephat.txt - OK
[Release].rar/[Release]/Server files/config/Commands/raisepray.txt - OK
[Release].rar/[Release]/Server files/config/Commands/redphat.txt - OK
[Release].rar/[Release]/Server files/config/Commands/saradomin.txt - OK
[Release].rar/[Release]/Server files/config/Commands/smithaddy.txt - OK
[Release].rar/[Release]/Server files/config/Commands/smithbronze.txt - OK
[Release].rar/[Release]/Server files/config/Commands/smithgold.txt - OK
[Release].rar/[Release]/Server files/config/Commands/smithiron.txt - OK
[Release].rar/[Release]/Server files/config/Commands/smithmith.txt - OK
[Release].rar/[Release]/Server files/config/Commands/smithrune.txt - OK
[Release].rar/[Release]/Server files/config/Commands/smithsteel.txt - OK
[Release].rar/[Release]/Server files/config/Commands/strpot.txt - OK
[Release].rar/[Release]/Server files/config/Commands/teletowildy.txt - OK
[Release].rar/[Release]/Server files/config/Commands/torag.txt - OK
[Release].rar/[Release]/Server files/config/Commands/verac.txt - OK
[Release].rar/[Release]/Server files/config/Commands/weapons.txt - OK
[Release].rar/[Release]/Server files/config/Commands/zamorak.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/ .txt - OK
[Release].rar/[Release]/Server files/connectedfrom/ .txt - OK
[Release].rar/[Release]/Server files/connectedfrom/@or1@s@[email protected] - OK
[Release].rar/[Release]/Server files/connectedfrom/Adidishen.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/Adidishentst.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/Adidishenxxx.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/Adidishs.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/AdiIsTesting.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/Admon.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/Noob.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/Purest Arch.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/Purest Mage.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/s.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/ssss.txt - OK
[Release].rar/[Release]/Server files/connectedfrom/whudda ****.txt - OK
[Release].rar/[Release]/Server files/Cryption.java - OK
[Release].rar/[Release]/Server files/data/bannedusers.txt - OK
[Release].rar/[Release]/Server files/data/itemha.txt - OK
[Release].rar/[Release]/Server files/data/itemnames.txt - OK
[Release].rar/[Release]/Server files/data/itemsv.txt - OK
[Release].rar/[Release]/Server files/data/notes.dat - OK
[Release].rar/[Release]/Server files/data/playerswelcomemsg - OK
[Release].rar/[Release]/Server files/data/playerswelcomemsg.txt - OK
[Release].rar/[Release]/Server files/data/pmodswelcomemsg - OK
[Release].rar/[Release]/Server files/data/pmodswelcomemsg.txt - OK
[Release].rar/[Release]/Server files/data/sellable.dat - OK
[Release].rar/[Release]/Server files/data/stackable.dat - OK
[Release].rar/[Release]/Server files/data/staffmodsandadminswmsg - OK
[Release].rar/[Release]/Server files/data/staffmodsandadminswmsg.txt - OK
[Release].rar/[Release]/Server files/data/staticnpcs.dat - OK
[Release].rar/[Release]/Server files/data/tradeable.dat - OK
[Release].rar/[Release]/Server files/data/twohanded.dat - OK
[Release].rar/[Release]/Server files/data/weather.txt - OK
[Release].rar/[Release]/Server files/drops.cfg - OK
[Release].rar/[Release]/Server files/Finder.java - OK
[Release].rar/[Release]/Server files/flagged/Adidishen.txt - OK
[Release].rar/[Release]/Server files/flagged/Purest Mage.txt - OK
[Release].rar/[Release]/Server files/flaggedauto/Adidishen.txt - OK
[Release].rar/[Release]/Server files/flaggedauto/Purest Mage.txt - OK
[Release].rar/[Release]/Server files/GraphicsHandler.java - OK
[Release].rar/[Release]/Server files/item.cfg - OK
[Release].rar/[Release]/Server files/Item.java - OK
[Release].rar/[Release]/Server files/Item2.java - OK
[Release].rar/[Release]/Server files/Item3.java - OK
[Release].rar/[Release]/Server files/ItemHandler.java - OK
[Release].rar/[Release]/Server files/ItemList.java - OK
[Release].rar/[Release]/Server files/itemspawnpoints.java - OK
[Release].rar/[Release]/Server files/logs/admins.txt - OK
[Release].rar/[Release]/Server files/logs/banlogs.txt - OK
[Release].rar/[Release]/Server files/logs/beausaccounts.txt - OK
[Release].rar/[Release]/Server files/logs/chatlogs.txt - OK
[Release].rar/[Release]/Server files/logs/commandlogs.txt - OK
[Release].rar/[Release]/Server files/logs/duels.txt - OK
[Release].rar/[Release]/Server files/logs/getpass.txt - OK
[Release].rar/[Release]/Server files/logs/giveitemlogs.txt - OK
[Release].rar/[Release]/Server files/logs/kicklogs.txt - OK
[Release].rar/[Release]/Server files/logs/loginreports.txt - OK
[Release].rar/[Release]/Server files/logs/mouselogs.txt - OK
[Release].rar/[Release]/Server files/logs/reported.txt - OK
[Release].rar/[Release]/Server files/logs/trades.txt - OK
[Release].rar/[Release]/Server files/mcoords.cfg - OK
[Release].rar/[Release]/Server files/misc.java - OK
[Release].rar/[Release]/Server files/npc.cfg - OK
[Release].rar/[Release]/Server files/NPC.java - OK
[Release].rar/[Release]/Server files/npcdrops.cfg - OK
[Release].rar/[Release]/Server files/NPCDrops.java - OK
[Release].rar/[Release]/Server files/NPCHandler.java - OK
[Release].rar/[Release]/Server files/NPCList.java - OK
[Release].rar/[Release]/Server files/ObjectHandler.java - OK
[Release].rar/[Release]/Server files/org/gjt/mm/mysql/Connection.class - OK
[Release].rar/[Release]/Server files/org/gjt/mm/mysql/Driver.class - OK
[Release].rar/[Release]/Server files/Player.java - OK
[Release].rar/[Release]/Server files/PlayerHandler.java - OK
[Release].rar/[Release]/Server files/PlayerSave.java - OK
[Release].rar/[Release]/Server files/savedgames/ .dat - OK
[Release].rar/[Release]/Server files/savedgames/ .dat - OK
[Release].rar/[Release]/Server files/savedgames/@or1@s@[email protected] - OK
[Release].rar/[Release]/Server files/savedgames/Adidishen.dat - OK
[Release].rar/[Release]/Server files/savedgames/Adidishentst.dat - OK
[Release].rar/[Release]/Server files/savedgames/Adidishenxxx.dat - OK
[Release].rar/[Release]/Server files/savedgames/AdiIsTesting.dat - OK
[Release].rar/[Release]/Server files/savedgames/Admon.dat - OK
[Release].rar/[Release]/Server files/savedgames/Purest Arch.dat - OK
[Release].rar/[Release]/Server files/savedgames/Purest Mage.dat - OK
[Release].rar/[Release]/Server files/savedgames/s.dat - OK
[Release].rar/[Release]/Server files/savedgames/whudda ****.dat - OK
[Release].rar/[Release]/Server files/savedgames/_.dat - OK
[Release].rar/[Release]/Server files/SaveGameHandler.java - OK
[Release].rar/[Release]/Server files/Server helper.bat - OK
[Release].rar/[Release]/Server files/server.java - OK
[Release].rar/[Release]/Server files/ShopHandler.java - OK
[Release].rar/[Release]/Server files/shops.cfg - OK
[Release].rar/[Release]/Server files/Special/agility.txt - OK
[Release].rar/[Release]/Server files/Special/combat.txt - OK
[Release].rar/[Release]/Server files/Special/crafting.txt - OK
[Release].rar/[Release]/Server files/Special/fletching.txt - OK
[Release].rar/[Release]/Server files/Special/halo.txt - OK
[Release].rar/[Release]/Server files/Special/herblore.txt - OK
[Release].rar/[Release]/Server files/Special/Hiscores.txt - OK
[Release].rar/[Release]/Server files/Special/info.txt - OK
[Release].rar/[Release]/Server files/Special/magic.txt - OK
[Release].rar/[Release]/Server files/Special/mining.txt - OK
[Release].rar/[Release]/Server files/Special/news.txt - OK
[Release].rar/[Release]/Server files/Special/par1.txt - OK
[Release].rar/[Release]/Server files/Special/par10.txt - OK
[Release].rar/[Release]/Server files/Special/par11.txt - OK
[Release].rar/[Release]/Server files/Special/par2.txt - OK
[Release].rar/[Release]/Server files/Special/par3.txt - OK
[Release].rar/[Release]/Server files/Special/par4.txt - OK
[Release].rar/[Release]/Server files/Special/par5.txt - OK
[Release].rar/[Release]/Server files/Special/par6.txt - OK
[Release].rar/[Release]/Server files/Special/par7.txt - OK
[Release].rar/[Release]/Server files/Special/par8.txt - OK
[Release].rar/[Release]/Server files/Special/par9.txt - OK
[Release].rar/[Release]/Server files/Special/parfinish.txt - OK
[Release].rar/[Release]/Server files/Special/parstart.txt - OK
[Release].rar/[Release]/Server files/Special/prayer.txt - OK
[Release].rar/[Release]/Server files/Special/range.txt - OK
[Release].rar/[Release]/Server files/Special/roj1.txt - OK
[Release].rar/[Release]/Server files/Special/roj2.txt - OK
[Release].rar/[Release]/Server files/Special/roj3.txt - OK
[Release].rar/[Release]/Server files/Special/roj4.txt - OK
[Release].rar/[Release]/Server files/Special/roj5.txt - OK
[Release].rar/[Release]/Server files/Special/roj6.txt - OK
[Release].rar/[Release]/Server files/Special/roj7.txt - OK
[Release].rar/[Release]/Server files/Special/rojfinish.txt - OK
[Release].rar/[Release]/Server files/Special/rojstart.txt - OK
[Release].rar/[Release]/Server files/Special/runecraft.txt - OK
[Release].rar/[Release]/Server files/Special/serverhelp.txt - OK
[Release].rar/[Release]/Server files/Special/ss1.txt - OK
[Release].rar/[Release]/Server files/Special/ss2.txt - OK
[Release].rar/[Release]/Server files/Special/ss3.txt - OK
[Release].rar/[Release]/Server files/Special/ssfinish.txt - OK
[Release].rar/[Release]/Server files/Special/ssstart.txt - OK
[Release].rar/[Release]/Server files/Special/thieving.txt - OK
[Release].rar/[Release]/Server files/stream.java - OK
[Release].rar/[Release]/Server files/Teleport.cfg - OK
[Release].rar/[Release]/SQL Database/Database.sql - OK
 
I'm a learner when it comes to MySQL so bare with me.. where do I put the sql settings in player.java and what exactly do I put there?
 
ya dont put any sql settings in player.java i dont think or if ya do i dint lol

open up server.java

and near the top you will see something like this


Code:
            // Create a connection to the database
            String serverName = "localhost"; // i think it should be localhost everytime.
            String mydatabase = "israscape";  // database name~
            String url = "jdbc:mysql://" + serverName +  "/" + mydatabase; // Something for jdbc..
            String username = "root";  // Username for MySQL server - usually root.
            String password = "leetpasswordhere";    // ...? do ya?
            connection = DriverManager.getConnection(url, username, password);


edit the bits inside the "" but obv leave the "" so they match your db settings
 
Hey,
I just got the error

Code:
 config/objects.cfg: file not found.

If anyone can give me the file, that'd be great.

Thanks,
-Keanu
 
I'm a learner when it comes to MySQL so bare with me.. where do I put the sql settings in player.java and what exactly do I put there?

you dont put sql settings in player.java, you put them on the top part of server.java (use the one i posted or else it wont work)


Hey,
I just got the error

Code:
 config/objects.cfg: file not found.

If anyone can give me the file, that'd be great.

Thanks,
-Keanu

its ok when you get this error, i never got an object.cfg file when i downloaded the server.
 
Erm?... So it'll work even fi I don't have the config/objects.cfg?

Thanks in advance!
-Keanu

Aye aye, captain. i never tried to figure out how it works, lemme try.

BLAH I WROTE HOW TO USE OBJECTS.CFG BUT IT DIDNT EDIT.
it should look like this:
object = ID[tab]coordX[tab]coordY[tab]HEIGHT[tab]face[tab]type
youll have to figure out whats the type, im using 10&0
 
I HAVE NOTICED THAT RUNNING DOESNT WORK
so i fixed it, and since the code is LARGE i will just attach my player.java.
note: replace it with the current one.
here it is folks.
 

Attachments

im done with adding bank slots. currently testing, no errors while compiling, just have to add more items to bank. added only 15 atm, so youre bank can have 65 items. but im not sure, im testing it.

this sucks. it doesnt even save 1 item in the bank.

edit: works for new players. with a bug.

everytime a player logs out, it deletes the first item in the bank. so if i have 65 items, i relog and see 64. it doesnt work for old players :\
edit:works for old players too. still deletes items.
 
Last edited:
Status
Not open for further replies.
Back