Thread: auto detect silabsoft's client (repost)

Results 1 to 8 of 8
  1. #1 auto detect silabsoft's client (repost) 
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    Purpose: let your server detect if a connecting person is using silabsoft client or not and enable you to make different codes for silabsoft only and other client

    Difficulty: 2/10 or 3/10

    Assumed Knowledge: c+p & basic java

    Server Base: homemade server, not based on anyone's but it should work on all servers

    Classes Modified: client.java (u also need the UID things in server.java but i'm not editing it)

    Procedure
    Step 1:
    ok lets start at the very beginning
    go to the place were your welcome message is located at
    on the most servers its in public void initialize()
    inside public void initialize add this somewhere:

    Code:
    if (daUID == 82128902) {
    silabs = true;
    sendMessage("gamesetting changed to silabsoft mode");
    }
    now go to
    Code:
    public class client extends Player implements Runnable {under it add:
    Code:
    public boolean silabs = false;
    public int daUID = 0;
    Step 2:
    now search for:

    Code:
    serverSessionKey = inStream.readQWord();
    under it add:

    Code:
                            int UID = inStream.readDWord();
    			daUID = UID;
    Step 3: to use this piece of code:
    ok i show u now how to use this piece of code
    lets say u want to make a members only quest
    the quest name is 'warrior troubles'
    and to open the quest journal there is a void called warriortroubles()
    and its the first member quest on the list
    the code will look like this (under case 185

    Code:
    case 49228:
    warriortroubles();
    break;
    now the code allows every1 to click the button and see the menu
    to make it so
    only ppl who use silabsoft client can use and see the menu
    and ppl who dont get a message that they cant use it because they dont have silabsoft client
    u should make a code like this:

    Code:
    case 49228:
    if (silabs) {
    warriortroubles();
    } else if (!silabs) {
    sendMessage("you cant see this quest information because your not using silabsoft client");
    sendMessage("to do this quest please (for example) visit the forums and download the silabsoft client");
    sendMessage("thanks for your understanding");
    break;
    and for the ppl who are really going to use this in their servers and are bad at coding
    u should make it so that they cant overload there chatbox and lagg their server whith massing the button
    so add 'actionTimer = ...; 'inside it
    if you dont have it,
    declare
    Code:
    public int actionTimer = 0;
    somewhere
    under public boolean process add
    Code:
    if (actionTimer > 0) {
    actionTimer--;
    }
    and then modify your code to this:

    Code:
    case 49228:
    if (actionTimer == 0) {
    if (silabs) {
    warriortroubles();
    actionTimer += 5; 
    /**modify this to whatever you want += can be changed to 5 but with += u add 2,5 *seconds to the wait time every time the person clicks, change the 5 to whatever u want *but half the digit to get the seconds,timer 10 will be 5 seconds wait time
    **/
    } else if (!silabs) {
    sendMessage("you cant use this button when ur not at silabsoft client");
    } 
    } else if (actionTimer > 0) { 
    //add a reaction on massing the button here like:
    sendMessage("dont mass this button!");
    }
    break;
    i hopefully helped alot of ppl
    i thing this is pretty usefull for alot of servers
    thanks for reading/using btw

    Credits: 100% to me
    if this tut is posted on other forums its leeched from here
    if its not leeched then i posted it myself

    extra: please notice that this tutorail is re-posted
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     

  2. #2  
    Banned

    Join Date
    May 2007
    Posts
    2,690
    Thanks given
    115
    Thanks received
    45
    Rep Power
    0
    nice one ( mts)
     

  3. #3  
    We Are The Revolution!
    Volcom's Avatar
    Join Date
    Apr 2007
    Posts
    1,118
    Thanks given
    0
    Thanks received
    5
    Rep Power
    859
    whats SOOO different about this TuT than your last one (that just fuxed up my server when i added) (gives lag, at least for me it did.)
     

  4. #4  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    eheum to be exactly
    this tut is about detecting silabsoft and my last tut is about a chatlog for your server
    thats the exact different
    but i guess you mean the other tutorial about detecting silabsoft
    to be honest they are exactly the same.. and if ur server is fuxed up after u did this tut you probably added it to the wrong place and thats fatal in the UID checking part of your server
    so u should try to remove all the things i tolld you to add and re-do the tutorial
    and if its strill not working .. send me your client.java and i will add it for you
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     

  5. #5  
    Ninja Cat
    Guest
    Actually, none of this ever works with the UID, every playername has a UID, not just the client. I've tried all the cheat client blocks, none of them worked.
     

  6. #6  
    Renown Programmer

    Sean's Avatar
    Join Date
    May 2007
    Age
    29
    Posts
    2,758
    Thanks given
    264
    Thanks received
    1,089
    Rep Power
    4393
    no, i have only mad emy client connect to an sertain uid kitty, i done this like 1 year ago
     

  7. #7  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    max teh kitty, ur in some way right
    but happy enough silabsoft has always the same UID
    i found that out so you can detect silabsoft
    thanks for being alert but it does work for sure, just try it
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     

  8. #8  
    Registered Member
    fabjan's Avatar
    Join Date
    Jul 2007
    Age
    27
    Posts
    552
    Thanks given
    0
    Thanks received
    0
    Rep Power
    101
    sir pk poon, thats another way to configure UID's, silabsoft did it the static way

    edit: soz for double posting
    Please vote:
    [Only registered and activated users can see links. ]
    btb.servegame.com:
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •