Thread: enable ur server for silabsoft client and other clients who dont enable skillcapes

Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1 enable ur server for silabsoft client and other clients who dont enable skillcapes 
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    30
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    Purpose: making it so silabsoft users can enjoy the futures of the silabsoft client and moparscape users won't have to deal with it

    Difficulty: 1/10 or maybe 2/10

    Assumed Knowledge: copy and paste codes and a little knowledge bout java script

    Server Base: going to work on all servers

    Classes Modified: client.java

    Procedure
    Step 1:
    lets start with going into client.java and search for
    Code:
    public class client extends Player implements Runnable {
    directly under that add
    Code:
    public boolean silabsoft = false;
    public boolean loginchoose = false;
    then search for
    Code:
    WriteEnergy();
    or just find the place were ur welcome message is located at
    if you dont have a welcome message go to the piece of code the server requests when a player is logging in u know what i mean hopefully

    under writeenergy(); add:
    Code:
    loginchoose = true;
    selectoption("@blu@what client are you using?", "silabsoft's client", "moparscape client", "...");
    Step 2: let the options actually do something when you click them
    search for
    Code:
    case 9157:
    a few lines under the words "case 9157:" you should see some words withing ( )'s
    somewhere between those scriptpieces add
    Code:
    if (loginchoose) {
    silabsoft = true;
    sendMessage("the gamesettings are modified for silabsoft's client");
    loginchoose = false;
    RemoveAllWindows();
    }
    now search for:
    Code:
    case 9158:
    and same as the case 9157: put the following code somewhere between the scriptpieces in case 9158:
    Code:
    if (loginchoose) {
    sendMessage("the game setting are modified for moparscape client");
    loginchoose = false;
    RemoveAllWindows();
    }
    alert readers should see that the second piece of code isn't really something
    but thats because of we declared silabsoft = false; already at the beginning so it would be useless to do it again

    extra:
    if you dont have this
    Code:
    public void selectoption(String question, String s1, String s2, String s3)
    {
    sendFrame171(1, 2465);
    sendFrame171(0, 2468);
    sendFrame126(question, 2460);
    sendFrame126(s1, 2461);
    sendFrame126(s2, 2462);
    sendFrame126(s3, 2463);
    sendFrame164(2459);
    }
    please add it under
    Code:
    public class client extends Player implements Runnable {

    Step 3: explaining the idea behind this tut
    this will disable moparscape client users of crashing when playing ur server
    if you want to add some object that gives the ppl skillcapes
    you should edit a normal code like this
    Code:
    case 61: //chaos altar
    if (playerLevel[5] >= 99) {
    addItem(10716, 1);
    addItem(10717, 1);
    addItem(10718, 1);
    sendMessage("gratz!! you received the prayer cape, prayer cape(t) and prayer hood!!");
    } else {
    sendMessage("gtfo!! train ur prayer till 99 lazy ashole!!");
    }
    break;
    or more polite:
    Code:
    case 61: //chaos altar
    if (playerLevel[5] >= 99) {
    addItem(10716, 1);
    addItem(10717, 1);
    addItem(10718, 1);
    sendMessage("gratz!! you received the prayer cape, prayer cape(t) and prayer hood!!");
    } else {
    sendMessage("you need a prayer level of 99 to receive the skillcape");
    }
    break;
    just change the (for example) polite code to :
    Code:
    case 61: //chaos altar
    if (playerLevel[5] >= 99 && silabsoft == true) {
    addItem(10716, 1);
    addItem(10717, 1);
    addItem(10718, 1);
    sendMessage("gratz!! you received the prayer cape, prayer cape(t) and prayer hood!!");
    } else if (silabsoft == false) {
    sendMessage("only silabsoft users can obtain skillcapes");
    sendMessage("dont relog and click the silabsoft client button cuz you will just crash");
    } else if (playerLevel[5] < 99) {
    sendMessage("you need a prayer level of 99 to receive the skillcape");
    } else {
    sendMessage("due to some reason you cant get the skillcape now");
    }
    break;
    Credits: 100% me me me me me
    if you find something similar to this tut (which i hope wont happen) please dont get flaming here
    that guy/women was just very smart to think about same tut as i did
    and if its exact the same
    ask me to use code tags and i will!
    cuz its mine!!
    and else
    come to ip:bullet.sytes.net and watch it urself
    but most important of all
    i hope i helped alot of people with this tut!


    (u also need this tut for my defenders tut thats released soon)
     

  2. #2  
    Registered Member
    Alex's Avatar
    Join Date
    Apr 2007
    Posts
    1,658
    Thanks given
    0
    Thanks received
    0
    Rep Power
    284
    VERY nice, rep+ for j00
    Your password is 354 days old, and has therefore expired.


    Fail
     

  3. #3  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    30
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    thank ya veri moch
     

  4. #4  
    ernisx
    Guest
    Nice tut...
     

  5. #5  
    ´Kingbone 2
    Guest
    How about this with shops?

    Is it like this ?

    else if (NPCID == 2166) { // Silab's stuff
    PutNPCCoords = true;
    WanneShop = 54;
    } else if (silabsoft == false) {
    sendMessage("only silabsoft users can use this shop");
    sendMessage("dont relog and click the silabsoft client button cuz you will just crash");
    } else {
    sendMessage("due to some reason you use this shop right now");
    }
    }
     

  6. #6  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    30
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    i'm not sure if thats going to work but i should add it like this:
    Code:
    else if (NPCID == 2166 && silabs == true) { // Silab's stuff
    PutNPCCoords = true;
    WanneShop = 54;
    } 
    else if (NPCID == 2166 && silabs == false) { // Silab's stuff
    sendMessage("only silabsoft users can buy the items in this shop");
    sendMessage("if you use another client then silabsoft's u will crash");
    sendMessage("i suggest leave at for what it is and dont try it"); // modify this part to what u want :P
    }
    this code will do the trick
    good luck
     

  7. #7  
    Impulse-X
    Guest
    *cough*
    Code:
    public void selectoption(string option)
    *cough*
     

  8. #8  
    Forca
    Guest
    Hmmm, the choosing screen keeps coming back?
     

  9. #9  
    mstier s
    Guest
    Its funny how everybody is using silabsoft's now, when its nothing. at all. its just moparscape.with more models. if the real client was leaked, there would be more fuss than this, emotes,npcs etc.. wow.
     

  10. #10  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    30
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    why'd you post that?
    it doesn't have to deal with my tut
    i can make better client then silabs but i just wanted to help alot of people by releasing this tut
    so they can have skillcapes too
    and so what that silabs is moparscape with more models
    its the ONLY client released with skillcapes so do people have a choice o.O
    so think again bout ur post '
     

Page 1 of 2 12 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. Enable @COLOR@
    By 2pro in forum Help
    Replies: 13
    Last Post: 04-23-2011, 03:01 PM
  2. Enable FM [PI]
    By Xuzk in forum Help
    Replies: 12
    Last Post: 08-03-2010, 01:51 AM
  3. how do i enable the music tab?
    By wildjjbug in forum Help
    Replies: 0
    Last Post: 06-08-2009, 08:02 PM
  4. enable musictab
    By inlogger in forum Help
    Replies: 3
    Last Post: 01-08-2009, 06:14 PM
  5. Replies: 5
    Last Post: 10-07-2007, 04:04 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •