Jump to content

Search the Community

Showing results for tags 'creating'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 72 results

  1. [CENTER]Hello there! Welcome to 'How to create a 508 RSPS', this thread will instruct you on how to create your own 508 server! Server Base: Palidino76/Bulby Revision: 508 Now I stated that they’re two bases above. Bulby was created off of Palidino76 and they’re almost identical. I suggest starting with a Palidino base because it is cleaner and is more popular. Although Bulby is jam packed with content, it is horribly written. Besides, if you download a server which is jam packed with content, what is there for you to do? As you can also see there is a revision number. The number changes when a new runescape update is released. Runescape is currently in the high 600s. The most known revisions are 317, 508 and 562. Please be aware that this tutorial is for users with the OS: Windows [U][B]Context[/B][/U] Step 1: Downloading Java Step 2: Downloading a Server Step 3: Downloading a Client Step 4: Understanding the Server and Client Step 5: Modifying your Server Step 6: Modifying your Client Step 7: Port Fowarding Step 7: Hosting your Server! [SIZE=5][U][B]Step 1: Downloading Java[/B][/U][/SIZE] First, head to this website. This is basic Java and is needed to play the actual Runescape game. [URL]http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html[/URL] It should be a very quick download and install. Once that is finished continue on. Now, lets begin on downloading the most updated JDK. The most updated JDK version at this time is 7u51. [B][SIZE=4]JAVA UPDATES THEIR KITS OFTEN. THESE NUMBERS WILL NOT ALWAYS GO ALONG WITH WHAT ARE IN THE PICTURES, BUT THE CONTENT IS ALL THE SAME.[/SIZE][/B] Now click the following button in the picture below: [IMG]http://i.imgur.com/ezw8i.png[/IMG] Once you have continued onto the next page be sure to focus on the part that looks like the picture below: [IMG]http://i.imgur.com/HPrHY.png[/IMG] Be sure to [U]accept[/U] the Terms and Conditions and then select your Windows System Type. [U]Don’t know your System Type? No problem![/U] [B] This is for Windows 7 Users[/B] Click on your start menu and right click on ‘Computer’ then select Properties. [IMG]http://i.imgur.com/BbjDg.png[/IMG] Once there, you should see a great deal about your computer! You can find your Manufacturer, amount of RAM in your system and [B]OF COURSE[/B] your System Type! Locate your System Type and then go back and download JDK with the new-found knowledge your have inherited. [B]System Type 64-bit: Windows x64 System Type 32-bit: Windows x86[/B] Once it is finished you can find it by going to your Program Files > Java and you should be able to view it there! [B] You will also notice you have downloaded JRE7! It can be used, but will not be for this server setup![/B] [COLOR=#008000][B]Good job so far! With your hard work you have completed step 1![/B][/COLOR]] [SIZE=5][B][U]Step 2: Downloading a Server [/U][/B][/SIZE] For this Tutorial we will be using [U]Palidino76 508 Server Version 3.1[/U] which can be found on the biggest Runescape Private Server community website Runelocus! This server has a good deal of content and is a great starter! Before you jump to that download, make sure you have WinRAR! [B]Downloading WinRAR[/B] WinRAR for Windows comes in two forms, 64-bit and 32-bit. Since you already looked up your System type, you can use that information to download the proper one for you! For 32-bit users: [URL]http://download.cnet.com/3001-2250_4-10007677.html?spi=222f96bb57aa00a9e989414cf09fdbf1[/URL] For 64-bit users: [URL]http://download.cnet.com/3001-2250_4-10965579.html?spi=867716b0067d2dc4c610d0dab9ec6da3[/URL] You just need to go through all the steps until it is finally installed! The install should only take around a minute. Now, since you have WinRAR we can continue with downloading the Server! (This is DavidScape. One of the ONLY 508 downloads I could find - I am not releasing mine. Simply click on: [URL]puu.sh/8vovr.rar[/URL] And your download will begin. Once it is completed downloading you need to open it in winRAR and it should look like this: [IMG]http://i.imgur.com/sct9l.png[/IMG] Now click on Extract and another window should appear. Select Desktop then ‘OK’ [IMG]http://i.imgur.com/gpEbt.png[/IMG] Your Server will now appear on your Desktop! [IMG]http://i.imgur.com/vankS.png[/IMG] [COLOR=#008000][B]Good job so far! With your hard work you have completed step 2![/B][/COLOR] [SIZE=5][B][U]Step 3: Downloading a Client[/U][/B][/SIZE] Since you have already downloaded WinRAR you a step ahead of the game! Now is time to download a client. A client is used to view the game, as the server runs it. I am supplying a blank 508 client with is set for you to use with ease. First go to: [URL]http://www.mediafire.com/?vaevvt4ned76kyw[/URL] A download should appear, let it download and once it is done it will open in WinRAR. Follow the same steps as you did above to extract it to your Desktop. Once that is finished, you now have a 508 Client compatible with your Server! [COLOR=#008000][b]Good job so far! With your hard work you have completed step 3![/b[/COLOR]] [SIZE=5][B][U]Step 4: Understanding your Server and Client[/U][/B][/SIZE] A Server and a Client are like having a desktop computer. Your Tower contains all of the information and your client monitor presents it. A Server is like your desktop tower and your client is like your monitor. (I am just putting this into terms for people who are new to it all). Server: Your server contains the content. This is where you add information for others to see and use. Client: This displays the content within your Server. You can add custom items to your client, but they will not work properly if not edited within the server also. [SIZE=5][SIZE=5][B][U]Step 5: Modifying your Server[/U][/B][/SIZE][/SIZE] I will be showing you how to make yourself an Admin and how to create your own welcome message. [B]Compiling and Running your new Server[/B] Open your Server file and go into cmd. You will see Instalize. Instalize is the same as run, clicking it will start your Server. Mithscape’s Run is not compatible with your JDK version, all you have to do is change it. Since you downloaded jdk1.7.0_51 All you have to do is change your Instalize.cmd to: PLEASE REMEMBER THAT JAVA UPDATES OFTEN, SO IF YOU DOWNLOAD THE NEWEST FORM OF JAVA, YOU MUST UPDATE THE NUMBER BELOW. CURRENTLY IT IS 7.0_51, BUT NEXT MONTH IT COULD BE 7.0_52. [/CENTER] [code] [MENTION=7458]echo[/MENTION] off cd ../bin title Running 508 Server "C:\Program Files\Java\jdk1.7.0_51\bin\java.exe" palidino76/rs2/Server 43594 pause cls [/code] Your Server should now be able to start! Since you’re going to be updating your Source, you must make the compiler compatible too! Create a new file named “rs2.cmd” And add the following to it. [code] [MENTION=7458]echo[/MENTION] off cd ../src "C:\Program Files\java\jdk1.7.0_51\bin\javac.exe" -cp . -d ../bin/ ./palidino76/rs2/*.java pause[/code] Now you have a successful compiler! Now let’s make you an Admin! Administrators are the highest ranking members within the server. They have access to all commands unless defined otherwise. Go into src > Palidino76 > rs2 > io > Login.java Hit CTRL + F and type in ‘Whiz‘. You should see this: [code] if (p.username.equals("Whiz") || p.username.equals("whiz")) { p.rights = 2; }[/code] Simply change your Username where Whiz’s was. [code] if (p.username.equals("YOUR USERNAME") || p.username.equals("YOUR USERNAME")) { p.rights = 2; }[/code] Save the file and close it. You must then head back into the cmd file and run the compiler ‘rs2’ which you just created. Your server will update and the new information which you added will take place. [COLOR=#008000][B]Good job so far! With your hard work you have completed step 5![/B][/COLOR] [SIZE=5][B][U]Step 6: Modifying your Client[/U][/B][/SIZE] Once you open your newly downloaded Client you will see three items. Files, Compile and Run. [CENTER]Now when you update something within your Client, you must run your compiler for them to take action. Next, let’s edit your connecting IP. Go into files and scroll down until your find client.java Hit CTRL + F and search for ‘0.0.0.0’. That is your local host IP. If you leave that, you will be the only one to connect to the Server. In the next steps you’ll find out your IP and how to create a mask for it. For now, leave it as 0.0.0.0 [COLOR=#008000][B]Good job so far! With your hard work you have completed step 6![/B][/COLOR] [SIZE=5][B][U]Step 7: Port Fowarding[/U][/B][/SIZE] (This is for a Netgear Router) You must Port Forward to allow others to join and enjoy your server. First go to your start menu and search for ‘CMD’ [IMG]http://i.imgur.com/kGzDh.png[/IMG] If on Windows 7 be sure to [B] RUN AS AN ADMINISTRATOR[/B] [IMG]http://i.imgur.com/rE4ZF.png[/IMG] You’ll be brought to a Command Prompt [IMG]http://i.imgur.com/MYD2I.png[/IMG] Then type in ‘ipconfig’ [IMG]http://i.imgur.com/g19Vy.png[/IMG] And then you should get your Network information [IMG]http://i.imgur.com/n4gIL.png[/IMG] The IP which is in the red is the one you must remember. That is your computers IP within your network. Make sure you have that written down. You may close your Command Prompt once you have it written down. Second, go to your browser and type ‘192.168.1.1’ It will ask you for a Username and Password. Your default for a Netgear will be Username = admin Password = password. Your Internet Provider might have changed the password, so if that information doesn’t work be sure to check the bottom of the router. Once you’re in your Netgear control panel make your way to Port Forwarding / Port Triggering Select ‘Add Custom Service’. [IMG]http://i.imgur.com/zfvXt.png[/IMG] Once in there, please follow the instructions on the picture. [B]This is where that number you were suppose to write down comes into play[/B]. [IMG]http://i.imgur.com/7Xadg.png[/IMG] You have now Port Forwarded. [B]Good job so far! With your hard work you have completed step 6![/B] [B][U]Step 7: Hosting your Server[/U][/B] Since you have now Port forwarded all you need to do is run your Server. For others to connect you must share with them your IP. You can find your IP at: [URL]http://www.whatismyip.com/[/URL] All you need to do is go back into your Client and edit client.java Search for the 0.0.0.0 once more and replace that with your IP. You must then Compile and it’s good to go. [B]Want to mask your IP? Follow this![/B] Go to [URL]http://www.no-ip.com/[/URL] and create an account. Once created and logged in go to Host/Redirect [IMG]http://i.imgur.com/oOTIq.png[/IMG] Then click ‘Add Host’ You must fill in ‘Hostname’ and select an ending from the large drop down list. Get your IP from: [URL]http://www.whatismyip.com/[/URL] And put that were ‘IP Address’. Click Create Host [IMG]http://i.imgur.com/SD3oG.png[/IMG] Return to the homepage of the website and select ‘Download’ [IMG]http://i.imgur.com/Fubej.png[/IMG] Select your OS and let it download. Install it and then Run it. Once it is finished, search for it from your Start Menu. It will be called DUC 3.0. [IMG]http://i.imgur.com/HkWwP.png[/IMG] It will ask you for the information you used to create your account on the website, enter it and logon. You will be brought to this page: [IMG]http://i.imgur.com/UTyrp.png[/IMG] Select Host and then make sure to check your server. [IMG]http://i.imgur.com/6qNWF.png[/IMG] Then you may close it. This program will run whenever your computer is on. All you need to do now is go back into your Client and edit client.java Search for the 0.0.0.0 once more and replace that with your Hostname which you created. You must then Compile and it’s good to go. Make sure your Server is on before you run your Client or else it will not connect. [SIZE=6][COLOR=#008000]Good luck![/COLOR][/SIZE] [size=5]Be sure to check out my 508 which is the only 508 to have a webclient! You won't be disappointed to try out this great server. [url]Http://Carrscape.com[/url] . 508s are the best. Let's bring them back together![/size] [/CENTER]
  2. Hello all, I am attempting to form a development team for a runescape private server I wish to host. The base was a very successful server and was able to run itself over the years however it closed due to owner problems. However, the base is no where near perfect (yet, I already have a list of all stuff that will assure longevity of the game). The server is a very interesting economy server with not too high experience rates so players really do get sucked into the game-play. I already have a VPS to host the server on. All donations will go towards the development team (you get what you put in) as I will be paying for the VPS out of my own pocket. To be eligible for the team please note you must have the ability to: 1) Work with MySQL, please have some experience with this 2) Create your own code from scratch, do not come to me with internet tutorials as these are mostly half-done leeches 3) Knowledge of the combat formulas as I believe perfect combat formulas are very important 4) Spot dead code within files 5) Stay organized 6) Knowledge of dupes and dupe fixes are a plus If you believe you would be a valuable asset to the development team please feel free to contact my skype. Skype name: Ahhhhhhhhhhhkk (11 h's) Showcase of previous work you have done will be a big plus. Edit: In need of client developers.
  3. i know its both client sided and server sided to create the command not sure where to start Edit: need it to open a web page if possible
  4. Hi guys! I'm a new member of this forum. I've been looking to create an RSPS of my own for a while. I haven't had much success due to the fact I have a iMac on the latest update. If anyone can help me I'd greatly appreciate it! (P.S. I don't know what type I want as of now, so I just picked 317) EDIT: I know realize I posted this in the wrong forum. I'm sorry for that. I will now post it in the right forum!
  5. Hi guys! I'm a new member of this forum. I've been looking to create an RSPS of my own for a while. I haven't had much success due to the fact I have a iMac on the latest update. If anyone can help me I'd greatly appreciate it! (P.S. I don't know what type I want as of now, so I just picked 317)
  6. Hello, I am looking to create a private server for me and my friends, and I would like to pay someone to make the server for me by following my directions. In addition, I would expect that this expert teaches me what they are doing, so that I will eventually be able to do it myself.
  7. Well, I blame @[B][URL="http://www.runelocus.com/forums/member.php?u=63406"]high105[/URL][/B] for this lol. [B]Creating your own dynamic image of yours/others server's status[/B] To start off, you want to open a new file, be sure the file extension is saved as PHP (obviously) You want to first start off by adding [B]function [/B][COLOR=#00ffff]LoadPNG[/COLOR]: [spoiler=Requirements] A font preferably, I chose verdana. An offline / online image, again preferably in PNG, though you could choose your own, just be sure to change "imagecreatefrom[COLOR=#ff0000][B]png[/B][/COLOR]" to what ever image you have gone to. and "image[COLOR=#ff0000][B]png[/B][/COLOR]", "header('Content-Type: image/[COLOR=#ff0000][B]png[/B][/COLOR]');" [/spoiler] [spoiler=LoadPNG] [php] This is to call up an image for your status checker. function LoadPNG($imgname) { /* Attempt to open the image... */ $im = imagecreatefrompng($imgname); /* See if it failed */ if(!$im) { $im = imagecreatetruecolor(150, 30); $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an error message */ imagestring($im, 1, 5, 5, 'Error loading ' . $imgname, $tc); } return $im; } [/php] [/spoiler] [spoiler=Defining IP and Port to read from] [php]define("IP", $_GET["IP"]); define("PORT", $_GET["PORT"]);[/php] [/spoiler] [spoiler=fsockopen] Now, you will need to find out the status of a server some how, so that's where fsockopen comes in! [php] $status = @fsockopen(IP, PORT, $errno, $errstr, 1); [/php] [/spoiler] [spoiler=Calling image + status of server response] [php] if ($status > 0){ header('Content-Type: image/png'); $img = LoadPNG('online.png');; $tc = imagecolorallocate($img, 178, 150, 150); // Font colour imagettftext($img, 12, 0, 30, 30, $tc, "verdana.ttf", IP); imagettftext($img, 8, 0, 60, 43, $tc, "verdana.ttf", "On the port: ".PORT); imagepng($img); imagedestroy($img); } else { header('Content-Type: image/png'); $img = LoadPNG('offline.png');; $tc = imagecolorallocate($img, 178, 150, 150);// Font colour imagettftext($img, 12, 0, 30, 30, $tc, "verdana.ttf", IP); imagettftext($img, 8, 0, 60, 43, $tc, "verdana.ttf", "On the port: ".PORT); imagepng($img); imagedestroy($img); } [/php] [/spoiler] [spoiler=Results] [php] function LoadPNG($imgname) { /* Attempt to open the image... */ $im = imagecreatefrompng($imgname); /* See if it failed */ if(!$im) { $im = imagecreatetruecolor(150, 30); $bgc = imagecolorallocate($im, 255, 255, 255); $tc = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 150, 30, $bgc); /* Output an error message */ imagestring($im, 1, 5, 5, 'Error loading ' . $imgname, $tc); } return $im; } define("IP", $_GET["IP"]); define("PORT", $_GET["PORT"]); $status = @fsockopen(IP, PORT, $errno, $errstr, 1); if ($status > 0){ header('Content-Type: image/png'); $img = LoadPNG('online.png');; $tc = imagecolorallocate($img, 178, 150, 150); // Font colour imagettftext($img, 12, 0, 30, 30, $tc, "verdana.ttf", IP); imagettftext($img, 8, 0, 60, 43, $tc, "verdana.ttf", "On the port: ".PORT); imagepng($img); imagedestroy($img); } else { header('Content-Type: image/png'); $img = LoadPNG('offline.png');; $tc = imagecolorallocate($img, 178, 150, 150);// Font colour imagettftext($img, 12, 0, 30, 30, $tc, "verdana.ttf", IP); imagettftext($img, 8, 0, 60, 43, $tc, "verdana.ttf", "On the port: ".PORT); imagepng($img); imagedestroy($img); } [/php] [/spoiler] [spoiler=Rewriting page (optional)] Create a file named [B].htaccess[/B] Inside it, write: [code] Options +FollowSymlinks RewriteEngine on RewriteBase /status RewriteRule (.*):(.*)\.png$ [B]FILE_NAME_HERE[/B].php?IP=$1&PORT=$2[/code] Make sure that IP and PORT are the right ones as in the tutorial above, as you can obviously change them :) [/spoiler] [B]Going to the page: [/B][U]With .htaccess[/U] Simply enter in your website, IE: [URL]http://127.0.0.1/YOURIP:YOURPORT.png[/URL] [U]Without .htaccess[/U] Again, simply enter in your website, IE: [URL]http://127.0.0.1/[/URL][B]FILE_NAME_HERE.php?IP=YOURIP&PORT=YOURPORT[/B] Let me know if you run into any problems, Just wrote this off the top of my head, may be some errors I may not of foreseen o-o
  8. This tutorial covers the basics of creating your own toplist from scratch, only utilizing PHP and HTML. You may add to this and obviously make it much better. I created this code off the top of my head from 12:00AM to now (12:48AM). What this does [b]NOT[/b] include: [LIST] [*] User Registration [*] Advanced styling [*] Individual page per server/item submitted [*] Complete security [/LIST] What this [b]DOES[/b] include: [LIST] [*] Only one submission by user [*] Only can vote every 24 hours (86400 ticks) [*] Saved variables in user sessions - secure (better than cookies!) [*] Considerations for advances in design [/LIST] [LIST=1] [*]Databases [LIST] [*] Create a database named [b]test[/b] [*] Create a table called [b]toplist[/b] [LIST] [*] 5 Columns [*] ID, user_id, title, description, votes [*] INT AI, INT, VAR_CHAR(60), VAR_CHAR(500), INT [/LIST] Too lazy? Here is the SQL: [CODE] CREATE TABLE IF NOT EXISTS `toplist` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `title` varchar(50) NOT NULL, `description` varchar(500) NOT NULL, `votes` int(11) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; [/CODE] [*] Create a table called [b]users[/b] [*] 3 Columns [*] ID, username, password [*] INT AI, VARCHAR(50), VARCHAR(32) [*] Utilizing MD5 encryption on passwords (reasoning for 32 length) Too lazy? Here is the SQL: [CODE] CREATE TABLE IF NOT EXISTS `users` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(50) NOT NULL, `password` varchar(32) NOT NULL, PRIMARY KEY (`ID`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; [/CODE] [/LIST] [*] PHP Files [LIST] [*] We will need a file for connecting remotely to our database. We will call this file [B]connect.php[/B]. Use this code within that file: [CODE] <?php function connect() { $db = new PDO('mysql:host=localhost;dbname=test;charset=utf8', 'root', 'password'); return $db; } function query($sql) { $result = mysql_query($sql); return mysql_fetch_array($result); } function getCount($sql) { $result = mysql_query($sql); return mysql_num_rows($result); }return $toArray; } ?> [/CODE] Change [b]dbname=[/b] to your database name, [b]root[/b] to your username, [b]password[/b] to your password and finally [b]host=[/b] to your remote host (if you are not using localhost). [*]Create a file called [b]index.php[/b]. This will be the main file to display our results. Paste this code within the file: [CODE] <html> <head> <title>Toplist</title> <link rel="stylesheet" href="assets/css/foundation.css"> <script src="assets/js/vendor/custom.modernizr.js"></script> </head> <body> <div class="row"> <div class="large-12 columns"> <h1>My Top List</h1> <h5>Want to post your own? Click <a href="submit.php">here</a>!</h5> <table> <?php include('connect.php'); try { $db = connect(); $stmt = $db->query("SELECT * FROM toplist ORDER BY votes DESC LIMIT 10"); $index = 1; while($row = $stmt->fetch(PDO::FETCH_ASSOC)) { echo '<tr><td>' .$index . ' </td><td>' . $row['title'] . '</td><td>' . $row['description'] . '</td><td>' . $row['votes'] . '</td><td><a href="vote.php?ID=' . $row['ID'] . '">Vote</a></tr>'; $index++; } } catch(PDOException $ERROR_MESSAGE) { echo 'ERROR: ' . $ERROR_MESSAGE->getMessage(); } ?> </table> </div> </div> </body> </html>[/CODE] I used foundation as a basic CSS framework, you can download that [URL="http://foundation.zurb.com/"]here[/URL]. To explain briefly. We are creating a table, reading the database and dynamically creating each table row based on our database table. Our query: [CODE] SELECT * FROM toplist ORDER BY votes DESC LIMIT 10 [/CODE] Says "Select all columns from table 'toplist', then order the results by greatest to least by the columns votes. Finally return the top 10 results". We are fetching all the rows and displaying accordingly. [*] Create a file called [b]vote.php[/b]. Paste this code within the file. [CODE] <?php include('connect.php'); if (session_status() == PHP_SESSION_NONE) { session_start(); } if(isset($_SESSION['voted']) || time() - $_SESSION['vote_time'] > 86400) { try { $db = connect(); $ID = $_GET['ID']; $stmt = $db->query("SELECT * FROM toplist WHERE ID = $ID"); $row = $stmt->fetch(PDO::FETCH_ASSOC); $votes = $row['votes'] + 1; $stmt = $db->prepare("UPDATE toplist SET votes=$votes WHERE ID = ?"); $stmt->execute(array($ID)); $_SESSION['voted'] = true; $_SESSION['vote_time'] = time(); header("Location: index.php"); } catch(PDOException $ERROR_MESSAGE) { echo 'ERROR: ' . $ERROR_MESSAGE->getMessage(); } } else { echo 'ALREADY VOTED'; header("Location: index.php"); } ?> [/CODE] [*]Create a file called [b]post.php[/b] Paste this code within the file. [CODE] <?php include('connect.php'); if (session_status() == PHP_SESSION_NONE) { session_start(); } try { if(isset($_SESSION['user_id'])) { $db = connect(); $user_id = $_SESSION['user_id']; $stmt = $db->query("SELECT * FROM toplist WHERE user_id = $user_id"); $row = $stmt->fetch(PDO::FETCH_ASSOC); $row_count = $stmt->rowCount(); if($row_count == 0) { $stmt = $db->prepare("INSERT INTO toplist (title, description, user_id) VALUES(:title, :description, :user_id)"); $stmt->execute(array(':title' => $_REQUEST['title'], ':description' => $_REQUEST['description'], ':user_id' => $user_id)); echo 'Submitted'; header("Location: index.php"); } else { echo 'You already have a page submitted.'; } } else { echo 'You must login to post. '; echo '<a href="login.php">Click Here to login</a>'; } } catch(PDOException $ERROR_MESSAGE) { echo 'ERROR: ' . $ERROR_MESSAGE->getMessage(); } ?> [/CODE] [*]Create a file called [b]login.php[/b] Paste this code within the file. [CODE] <?php $error = ''; if (session_status() == PHP_SESSION_NONE) { session_start(); } if(isset($_POST['submit'])) { include 'connect.php'; try { $db = connect(); $username = stripslashes($_REQUEST['username']); $password = md5(stripslashes($_REQUEST['password'])); $stmt = $db->query("SELECT * FROM users WHERE username='$username' and password='$password'"); $row = $stmt->fetch(PDO::FETCH_ASSOC); $row_count = $stmt->rowCount(); if($row_count == 1) { $_SESSION['user_id'] = $row['ID']; header("Location: index.php"); } else { $error = 'Invalid Username/Password combination or account does not exist.'; } } catch(PDOException $ERROR_MESSAGE) { echo 'ERROR: ' . $ERROR_MESSAGE->getMessage(); } } ?> <html> <body> <span><?php echo $error; ?> <form method="POST" action=""> <label>Username:</label> <input type="text" name="username" /> <label>Password:</label> <input type="password" name="password" /> <input type="submit" name="submit" value="submit" /> </form> </body> </html> [/CODE] [*] Create a file called [b]submit.php[/b] Paste this code within that file. [CODE] <html> <form action="post.php" method="POST"> <label>Title:</label> <input name="title" type="text" /> <label>Description:</label> <input name="description" type="text" /> <input name="submit" type="submit" /> </form> </html> [/CODE] [/LIST] [/LIST] Your end result: [IMG]http://i.imgur.com/H2OsCuo.png[/IMG] [IMG]http://i.imgur.com/ozueXTm.png[/IMG] If people find this useful please let me know. If people actually take interest and utilize knowledge and show effort, I will post a more advanced and completed version of a fully functional toplist.
  9. Hey guys! So I have been wanting a RSPS foreverrrr and have played them for almost 5 years and thought I should make my own :) I am very confused at this process as I AM ON MAC. So I have seen tutorials on how to do it on a Mac but they are very outdated and I can't follow them. If someone could please help me I'd really appreciate it. Thank you very much
  10. Hello everyone, I could really use a tutorial on how to add a permanent npc shop to sell items to my 317 server. It looks like it's going to be a multiple step process including a couple different files including .cfg and .java from what I can tell. If there is already a tutorial for this please link me it because I've looked everywhere. [B]If I were to break down what I need exactly it would be:[/B] 1. How to permanently spawn an NPC. 2. How to assign the NPC to a shop so when you talk to the NPC it opens the shop window. 3. How to add items to the shop. Things to note: I'm using the Project Insanity source pack.
  11. I have mod/admin/owner how do I create a new position. Head Mod?
  12. how do i make a 718 rsps , want it for so long , just tryed a 317 but i cant find the 718 link to download pls help :)
  13. hi guys, basically what im trying to do is create a slayer dungeon with different slayer monsters, but i need to create a portal to tele player there but i dont know how. I want to create a portal and name it slayer dungeon tele which teles you to the dungeon. If someone can help me it would be appreciated
  14. Alright so I've downloaded over 50 Rsps source's and client's and I can't seem to be able to log in, it always says error connecting to server or it either shows a prompt but if i type any command or instruction on the prompt it just closes so if anyone can help me create a Rsps doesn't matter which server just any Rsps please pm on runelocues or add me on Skype Hunter.jake :) Or comment what your skype name Please & thank you.
  15. Currently the RSPS sort of marketplace on Runelocus is minimal and a way to help it would be if it was split into two service sections, one in which people buy services or specific jobs or such and the other where people can advertise their services. I think this would make more people want to use the RSPS section because then there is money involved and everyone loves money lol, so basically I think there should be a buyers service board and a sellers one too. Please leave some feedback about this guys.
  16. Does anybody know how to make a 719 server on mac? Please help me if you do. Thank you:)
  17. I am extremely amateur and I know little about web development / design / everything / life. So here is my project so far: [url]http://bradle.co.uk[/url] I quite like it, please leave feedback on what I can change/add/fix Things I'm adding soonishmaybe: Gallery page alpha
  18. I need Help making a Spawn Eco command that will Spawn an item but it will take cash as you spawn it, and if you don't have enough you can't spawn. Thanks!
  19. Hey guys I am currently wanting to start coding my own source, I am just wondering where I can find the FileStore.Jar files and the netty-3.5.2.Final.jar files for coding my server. Cheers for any information you guys can share.
  20. I DO NOT KNOW IF THE REVISION OF THE STARTER PACK THAT I DOWNLOADED FROM RUNELOCUS'S TUTORIALS IS 317 OR SOMETHING ELSE SO IF ANYONE KNOWS AND CAN TELL ME IN THE COMMENTS BELOW, THAT WOULD BE GREAT! Hi to all you experts out there on this RSPS making stuff. I've been getting very frustrated trying to figure out the problem of why I can't start my server in offline mode with my noob skills... I've been following this guide ([url]http://www.runelocus.com/tutorials/make_own_server.html[/url]) and using the starter's kit but I have not forwarded my ports yet because I'm guessing that that is only needed if your hosting your client online for other's to join? I don't know I'm not too experienced with this stuff. I've just had a few questions.. JUST IF YOU GUYS NEED TO KNOW TO HELP ME OUT, MY OPERATING SYSTEM IS WINDOWS 7 X64 So I've skipped the forwarding ports step because I'm guessing that is only needed if only you are hosting your client online for other's to join, and I went to the next step in the guide on the changes of the client. It says to open the client folder then the run.bat and I do that and it gives me this error: [ATTACH=CONFIG]7970[/ATTACH] That pops up when I click on [B]run.bat[/B].... Idk what that is... someone please help me with this? Even when i click compile.bat it gives me a different message showing: [ATTACH=CONFIG]7971[/ATTACH] [U][B]NOW I CHANGED THE SYSTEM VARIABLE TO THE JDK BIN FOLDER AND MADE IT LOOK LIKE THIS:[/B][/U] [ATTACH=CONFIG]7972[/ATTACH] THEN I went back up a level and then opened the server folder and tried opening the run.bat and compile.bat to see if it was different than the ones in the client folder but it was the same message for each... [SIZE=6]Also, could you guys tell me how to open one of the files and edit the code inside the file? because I right click it and it doesn't say open with notepad or anything like on my friend's computer... So basically I cannot edit the code in any of the files which makes this impossible.[/SIZE] Please. Can one of you lolking 's of coding/programming help me please :3 Thank you so much for your time, add me on skype bobs.axes and contact me through that or just leave a message in this thread below. It would be much much appreciated for spending your time helping me out! :)
  21. Hello.lolking My name is Lars and I'm from the Netherlands (18 years old)... and I'm looking for a partner or more people who also want to create a Server. Probably alot of more people want this but don't know where to start or also looking for other people to help them. So what I'm looking for: [LIST] [*] People who want to create a server [*] Know where they are talking about [*] Motivated to keep going even if it ain't going as you want to [*] Got the time for making a server [*] Speak understandable English [*] Know a bit about coding (or alot :D) [/LIST] So if you want to join or help, please respond in this topic or send me a personal message. :)
  22. Hey everyone, I have just created a brand new PI server and i'm still quite new to everything. I've been trying to create a JAR file for my client with JAR maker so people can join and i can make a webclient ect, It all works fine but when i open the created file nothing happens. What have i done wrong, What do i have to do? Thanks in advance. I have tried pretty much every option with fixing this, I think i just need someone to JAR my client folder for me. My skype is jake.naylor2
  23. Anybody want a Forum page for your server but dont have any time to do it, I am willing to make the forums for a server, and i will even play in the server! Thanks and comment or PM me on here
  24. Guys im looking to create a 718 runescape private server but i aint got a clue where to start, i been hearing that i need a matrix client or something but i aint got a clue where to find one i been searching for ages + i cant even find a decent server that works ive followed a lot of tuts but when it comes to clients and finding a *working* source i have no luck, if someone could please help me out i would be so greatful #thank you modgod
  25. Hey, I downloaded the runelocus starter pack and clicked open on the "run.bat" file but when I had to click run it opened the client thing and said this: Exception in thread "main" java.lang.NoClassDefFoundError: server/GUI Caused by: java.lang.ClassNotFoundException: server.GUI at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) Could not find the main class: server.GUI. Program will exit. Press any key to continue . . . Just wondering what I'm supposed to do could anyone please help? Thanks Bluud
×