Thread: Ultimate how to make a server + simple tuts tutorial

Page 1 of 3 123 LastLast
Results 1 to 10 of 27
  1. #1 Ultimate how to make a server + simple tuts tutorial 
    Stylish
    Guest
    Welcome To my Ultimate Server Tutorial

    In this tutorial I’m going to teach you how to download and install java
    Downloading and installing winrar
    Download a client and source.
    Configure your firewall
    Port forward
    Setting up no-ip
    Connect to a server
    Tons of simple tutorials to start you server off
    Downloading and installing java:

    Now we need to download and install java. Go to http://java.sun.com/javase/downloads/index.jsp click get the jdk at the top.
    Now click accept it should now reload the page. To download click the windows online installer.

    Once downloaded(should only take a second) run the file it should now install.
    Congratulations you’ve downloaded and installed java!

    Downloading and installing winrar:

    Ok to extract the files from server sources you need winrar here’s how to download and install it.
    Go onto http://www.rarlab.com/rar/wrar370.exe to download it. Once downloaded run the file and follow the instructions.

    Congratulations you’ve downloaded and installed winrar!

    Downloading a client and source:

    Now we need a client to connect to servers.

    Moparscape is probably the most popular source. Download it here http://rapidshare.com/files/50953168...stall.exe.html
    Now install moparscape by just following the instructions.

    Now when your in the moparscape folder to run the client you need to click on runMoparscape.bat
    Now moparscape should open.

    Next we need to get a source to work with if you want to make your own server.

    Here’s a few of the popular one’s
    Cheezscape 80 - http://www.megaupload.com/?d=W8NCP0YC
    Project16 V.6 Full Source - http://www.megaupload.com/?d=IAO4H58V
    PhoneScape - http://www.megaupload.com/?d=HAZSN579

    Now you need to download one of them. Once downloaded it should look like the file below:

    Next you need to run it and extract the files.

    You should now go into the folder where you extracted it to and you will see lots of java files.
    You are probably thinking what do I do with all them files when ill explain what some of them are for you:
    Client.java - This is the main file this is where you could screw things up. This is where pretty much all tutorials tell you to add things.

    Autospawn.cfg - This is where you add monsters.

    Shophandler.cfg - This is where you can add shops.

    When you ever edit files you need to compile the server by running the compile.bat file. Once your server has compiled you run your server by running run server.bat

    Now you can connect to your server.

    Congratulations you’ve got a client and source!

    Configure your firewall:

    If you want to host your own server you need to host your own server. To do this you need to configure your firewall to open port 43594.

    To do this go into your control panel and click on windows firewall. Now click the exceptions and then add port for the name put your server name and the port is 43594, then click ok.


    Congratulations you’ve configured your firewall!

    Port forwarding:

    Now you need to forward your ports so people can connect. Go into start and click run type in cmd then click run, command prompt should open. Type in ipconfig and press enter

    Get your IP address, now go into an internet browser ant type in your ip in the address bar a box will pop up the username is admin and so is the password.

    Now click the port forwarding tab and fill in the boxes.


    Congratulations you’ve port forwarded!

    Setting up no-ip:

    Now we need to get an IP address so people can connect we do this by going on www.no-ip.com making an account and adding a IP address. What this does is when people connect to the no-ip IP address it gets redirected to your computer.


    Congratulations you’ve set up a no-ip server.

    Connecting to a server:

    If you don’t want to make your own server but want to connect to other peoples do the following:

    Go to http://www.rune-server.org/index.php?P=Status_List and pick a server.

    Start Moparscspe and type in any username and password.

    Type in the IP of the server you found and click connect.

    Congratulations you’ve connected to a server!

    Some simple tutorials:

    I wrote all these tutorials myself:

    Classes modified: Client.java

    Knowledge Required: Copy, Paste, Find

    Difficultly level: 3/10

    Credits:
    100% me wrote it meself =)
    dont say i leeeched this cus i didnt!

    Purpose: Add full Mining my way

    Will work on: All I think

    This is the same method as my woodcutting tut but for mining.

    ok then search for
    Code:
    Case
    in your client.java

    Now were going to add the mining cases. Now i cant say add it under a certain case because all sources r different.

    Now your going to add all of the following cases:

    Code:
    :
    case 2091:
    if(playerLevel[14] >= 1){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1265) {
    	addItem(436, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(625);
    		}
    else if(playerEquipment[playerWeapon] == 1267) {
    	addItem(436, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(626);
    		}
    else if(playerEquipment[playerWeapon] == 1269) {
    	addItem(436, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(627);
    		}
    else if(playerEquipment[playerWeapon] == 1271) {
    	addItem(436, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(628);
    		}
    else if(playerEquipment[playerWeapon] == 1273) {
    	addItem(436, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(629);
    		}
    else if(playerEquipment[playerWeapon] == 1275) {
    	addItem(436, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(624);
    		}
    }
    }
    break;
    
    case 2094:
    if(playerLevel[14] >= 1){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1265) {
    	addItem(438, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(625);
    		}
    else if(playerEquipment[playerWeapon] == 1267) {
    	addItem(438, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(626);
    		}
    else if(playerEquipment[playerWeapon] == 1269) {
    	addItem(438, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(627);
    		}
    else if(playerEquipment[playerWeapon] == 1271) {
    	addItem(438, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(628);
    		}
    else if(playerEquipment[playerWeapon] == 1273) {
    	addItem(438, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(629);
    		}
    else if(playerEquipment[playerWeapon] == 1275) {
    	addItem(438, 1);
    	addSkillXP(150, 14);
    	actionTimer = 28;
    	setAnimation(624);
    		}
    }
    }
    break;
    
    case 2092:
    if(playerLevel[14] >= 15){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1265) {
    	addItem(440, 1);
    	addSkillXP(200, 14);
    	actionTimer = 28;
    	setAnimation(625);
    		}
    else if(playerEquipment[playerWeapon] == 1267) {
    	addItem(440, 1);
    	addSkillXP(200, 14);
    	actionTimer = 28;
    	setAnimation(626);
    		}
    else if(playerEquipment[playerWeapon] == 1269) {
    	addItem(440, 1);
    	addSkillXP(200, 14);
    	actionTimer = 28;
    	setAnimation(627);
    		}
    else if(playerEquipment[playerWeapon] == 1271) {
    	addItem(440, 1);
    	addSkillXP(200, 14);
    	actionTimer = 28;
    	setAnimation(628);
    		}
    else if(playerEquipment[playerWeapon] == 1273) {
    	addItem(440, 1);
    	addSkillXP(200, 14);
    	actionTimer = 28;
    	setAnimation(629);
    		}
    else if(playerEquipment[playerWeapon] == 1275) {
    	addItem(440, 1);
    	addSkillXP(200, 14);
    	actionTimer = 28;
    	setAnimation(624);
    		}
    }
    }
    break;
    
    case 2096:
    if(playerLevel[14] >= 30){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1265) {
    	addItem(453, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(625);
    		}
    else if(playerEquipment[playerWeapon] == 1267) {
    	addItem(453, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(626);
    		}
    else if(playerEquipment[playerWeapon] == 1269) {
    	addItem(453, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(627);
    		}
    else if(playerEquipment[playerWeapon] == 1271) {
    	addItem(453, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(628);
    		}
    else if(playerEquipment[playerWeapon] == 1273) {
    	addItem(453, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(629);
    		}
    else if(playerEquipment[playerWeapon] == 1275) {
    	addItem(453, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(624);
    		}
    }
    }
    break;
    
    
    case 2103:
    if(playerLevel[14] >= 55){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1265) {
    	addItem(447, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(625);
    		}
    else if(playerEquipment[playerWeapon] == 1267) {
    	addItem(447, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(626);
    		}
    else if(playerEquipment[playerWeapon] == 1269) {
    	addItem(447, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(627);
    		}
    else if(playerEquipment[playerWeapon] == 1271) {
    	addItem(447, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(628);
    		}
    else if(playerEquipment[playerWeapon] == 1273) {
    	addItem(447, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(629);
    		}
    else if(playerEquipment[playerWeapon] == 1275) {
    	addItem(447, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(624);
    		}
    }
    }
    break;
    
    
    case 2105:
    if(playerLevel[14] >= 70){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1265) {
    	addItem(449, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(625);
    		}
    else if(playerEquipment[playerWeapon] == 1267) {
    	addItem(449, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(626);
    		}
    else if(playerEquipment[playerWeapon] == 1269) {
    	addItem(449, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(627);
    		}
    else if(playerEquipment[playerWeapon] == 1271) {
    	addItem(449, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(628);
    		}
    else if(playerEquipment[playerWeapon] == 1273) {
    	addItem(449, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(629);
    		}
    else if(playerEquipment[playerWeapon] == 1275) {
    	addItem(449, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(624);
    		}
    }
    }
    break;
    
    
    case 2107:
    if(playerLevel[14] >= 85){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1265) {
    	addItem(451, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(625);
    		}
    else if(playerEquipment[playerWeapon] == 1267) {
    	addItem(451, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(626);
    		}
    else if(playerEquipment[playerWeapon] == 1269) {
    	addItem(451, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(627);
    		}
    else if(playerEquipment[playerWeapon] == 1271) {
    	addItem(451, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(628);
    		}
    else if(playerEquipment[playerWeapon] == 1273) {
    	addItem(451, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(629);
    		}
    else if(playerEquipment[playerWeapon] == 1275) {
    	addItem(451, 1);
    	addSkillXP(250, 14);
    	actionTimer = 28;
    	setAnimation(624);
    		}
    }
    }
    break;
    Theres full mining my way. Its all got timers so ppl dont mass.

    Classes modified: Client.java

    Knowledge Required: Copy, Paste, Find

    Difficultly level: 3/10

    Credits:
    100% me wrote it meself =)
    dont say i leeeched this cus i didnt!

    Purpose: Add full woodcutting my way

    Will work on: All I think

    ok then search for
    Code:
    Case
    in your client.java

    now somewhere in your case's were going to add what wud happed if u click on a chest or a cage. Now i cant say add it under a certain case because all sources r different.

    Now your going to add all of the following cases:

    Code:
    case 1278:
    if(playerLevel[8] >= 1){
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 1 to chop this.");
    }
    break;
    
    case 1276:
    if(playerLevel[8] >= 1){
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 1 to chop this.");
    }
    break;
    
    case 1281:
    if(playerLevel[8] >= 15){
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 15 to chop this.");
    }
    break;
    
    case 1308:
    if(playerLevel[8] >= 30){
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 30 to chop this.");
    }
    break;
    
    case 1307:
    if(playerLevel[8] >= 45){
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 45 to chop this.");
    }
    break;
    
    case 1309:
    if(playerLevel[8] >= 60){
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 60 to chop this.");
    }
    break;
    
    case 1306:
    if(playerLevel[8] >= 75){
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 75 to chop this.");
    }
    break;
    If you wanted it with action timers so ppl cant mass you would add
    Code:
    if (actionTimer = 0) {
    at start and add
    Code:
    actionTimer = 28;
    after uve added the skill xp heres the code with the action timers:

    Code:
    case 1278:
    if(playerLevel[8] >= 1){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 1 to chop this.");
    }
    break;
    
    case 1276:
    if(playerLevel[8] >= 1){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1511, 1);
    addSkillXP(120, 8);
    actionTimer = 28;
    }
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 1 to chop this.");
    }
    break;
    
    case 1281:
    if(playerLevel[8] >= 15){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1521, 1);
    addSkillXP(180, 8);
    actionTimer = 28;
    }
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 15 to chop this.");
    }
    break;
    
    case 1308:
    if(playerLevel[8] >= 30){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1519, 1);
    addSkillXP(250, 8);
    actionTimer = 28;
    }
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 30 to chop this.");
    }
    break;
    
    case 1307:
    if(playerLevel[8] >= 45){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1517, 1);
    addSkillXP(350, 8);
    actionTimer = 28;
    }
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 45 to chop this.");
    }
    break;
    
    case 1309:
    if(playerLevel[8] >= 60){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1515, 1);
    addSkillXP(500, 8);
    actionTimer = 28;
    }
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 60 to chop this.");
    }
    break;
    
    case 1306:
    if(playerLevel[8] >= 75){
    if(actionTimer = 0) {
    if(playerEquipment[playerWeapon] == 1351) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1349) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1353) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1355) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1357) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    actionTimer = 28;
    }
    else if(playerEquipment[playerWeapon] == 1359) {
    setAnimation(875);
    addItem(1513, 1);
    addSkillXP(700, 8);
    actionTimer = 28;
    }
    }
    }
    else
    {
    sendMessage("You need a woodcutting lvl of 75 to chop this.");
    }
    break;
    save and compile.

    Classes modified: Client.java

    Knowledge Required: Copy, Paste, Find

    Difficultly level: 1/10

    Credits:
    100% me wrote it meself =)
    dont say i leeeched this cus i didnt!

    Purpose: Add training on dummies, hay bales and anything else you want....

    Will work on: All I think

    Ok then lets get started

    Search for
    Code:
    Case
    in your client.java

    now somewhere in your case's were going to add what wud happed if u click on a dummy . Now i cant say add it under a certain case because all sources r different.

    The object id for a dummy is 823 so lets add that case.

    Code:
    case 823:
    setAnimation(822);
    addSkillXP(100, 0);
    break;
    Now let me explain that
    the
    Code:
    case 823
    means that when u click on the object with the id
    Code:
    823
    it will do the code after the
    Code:
    :
    the
    Code:
    setAnimation(882);
    makes the player do the emote with the id of
    Code:
    882
    the
    Code:
    addSkillXP(100, 0);
    adds 100 xp to the skill with the id of 0
    usually the skills are:
    Code:
    public int playerAttack = 0;
    	public int playerDefence = 1;
    	public int playerStrength = 2;
    	public int playerHitpoints = 3;
    	public int playerRanged = 4;
    	public int playerPrayer = 5;
    	public int playerMagic = 6;
    	public int playerCooking = 7;
    	public int playerWoodcutting = 8;
    	public int playerFletching = 9;
    	public int playerFishing = 10;
    	public int playerFiremaking = 11;
    	public int playerCrafting = 12;
    	public int playerSmithing = 13;
    	public int playerMining = 14;
    	public int playerHerblore = 15;
    	public int playerAgility = 16;
    	public int playerThieving = 17;
    	public int playerSlayer = 18;
    	public int playerFarming = 19;
    	public int playerRunecrafting = 20;
    the
    Code:
    Break
    ends the case

    You could do this with any object.

    Classes modified: Client.java

    Knowledge Required: Copy, Paste, Find

    Difficultly level: 1/10

    Credits:
    100% me wrote it meself =)
    dont say i leeeched this cus i didnt!

    Purpose: Add thieving from chests and cages

    Will work on: All I think

    Ok then lets get started

    search for

    Code:
    Case
    in your client.java

    now somewhere in your case's were going to add what wud happed if u click on a chest or a cage. Now i cant say add it under a certain case because all sources r different.

    The object id for a cage is 6836 so lets add that case.

    Code:
    case 6836:
    if (playerLevel[17] >= 1){
    setAnimation(881);
    addSkillXp(100, 17);
    }
    break;
    Now you can change what level u need to thiev from it, and the xp u get. Plus heres the code if u want it to say a message if you havnt got a high enough thieving lvl:


    Code:
    case 6836:
    if (playerLevel[17] >= 1){
    setAnimation(881);
    addSkillXp(100, 17);
    }
    else {
    sendMessage("You need a thieving level of 1 to do that);
    }
    break;
    Now for adding the chest. There r loads of chest id's but we will use the chest 7350 as an example.


    Code:
    case 7350:
    if (playerLevel[17] >= 1) {
    setAnimation(881);
    addSkillXp(100, 17);
    addItem(995, 1000);
    }
    break;
    heres the code if you want it to show a message:


    Code:
    case 7350:
    if (playerLevel[17] >= 1) {
    setAnimation(881);
    addSkillXp(100, 17);
    addItem(995, 1000);
    }
    else {
    sendMessage("You need a thieving level of 1 to do that);
    }
    break;
    There’s some simple tutorials.

    Thanx for reading my tutorial.

    Plz comment thanx
     

  2. #2  
    FlooF
    Guest
    Congratz! First post w00t
     

  3. #3  
    Banned

    Join Date
    Aug 2007
    Age
    32
    Posts
    704
    Thanks given
    21
    Thanks received
    30
    Rep Power
    0
    Nice should help quite a few noobs out
     

  4. #4  
    Whitey
    Guest
    Great. Nice Work
     

  5. #5  
    Stylish
    Guest
    Thanx for ur comments. more comments evry1 plz, took me a while do this. 37 views 3 comments.....
     

  6. #6  
    Registered Member
    Z's Avatar
    Join Date
    Jun 2007
    Age
    29
    Posts
    1,390
    Thanks given
    7
    Thanks received
    30
    Rep Power
    853
    easy but then newer people don't post topics in help "how do i make stuff do stuff" lol
     

  7. #7  
    ~Kajakas~
    Guest
    another one of those "how to make a private server" guide
     

  8. #8  
    Stylish
    Guest
    Quote Originally Posted by kajakas View Post
    another one of those "how to make a private server" guide
    Maybe but its still gd and still took up my time. 6 posts and nearly 70 view cmon ppl plz if u read plz post something. And rep wud be nice
     

  9. #9  
    Stylish
    Guest
    cmon ppl plz post 7 comments 100 views..... =(
     

  10. #10  
    ernisx
    Guest
    Very nice guide.
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 3
    Last Post: 02-25-2010, 03:53 PM
  2. Replies: 15
    Last Post: 04-25-2009, 12:02 AM
  3. Tutorial Make Your Own Server™ 5.0 FINAL
    By scriptscape in forum Tutorials
    Replies: 14
    Last Post: 05-10-2008, 10:58 PM
  4. Tutorial Make Your Own Server™ 5.0 FINAL
    By scriptscape in forum Downloads
    Replies: 8
    Last Post: 03-29-2008, 04:31 PM
  5. [Tutorial Pack] 20+ Tuts [You download it so..]
    By Reactor in forum Downloads
    Replies: 39
    Last Post: 02-27-2008, 05:41 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •