Thread: Makeing a logon timer

Results 1 to 6 of 6
  1. #1 Makeing a logon timer 
    Registered Member
    Join Date
    Aug 2008
    Posts
    20
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1


    Hi all i will be telling you how to make a logon time

    the logon timer is for like if a player is on the server for more then 30min it wil kick them off
    ok lets go for it

    Step 1:

    add this:
    Code:
    public int settimer = 2000;

    Step 2:

    Find This
    Code:
    public void process() {
    Then Add This Under it
    Code:
    settimer -= 1;
    Then Add This Under Process() {
    Code:
    if (settimer <= 1) {
    savechar();
    savesk();
    savemoreinfo();
    disconnected = true;
    }
    Ok thats your timer done now for it so players can see it if you what it here

    Here a pic off it:



    Step 3:

    Add this
    Code:
    public void Logontimer() {
    setInterfaceWalkable(4970);
    sendQuest("@[email protected]     Max Login Time", 4963);
    sendQuest("", 4964);
    sendQuest("@[email protected]        [ "+settimer+" ]", 4965);
    sendQuest("", 4966);
    if(nonWild()) {
    sendQuest("@[email protected]   | Safe |", 4967);
    } else if(inwildy2 && !nonWild()) {
    sendQuest("@[email protected]   | wildy |", 4967);}
    sendQuest("", 4968);
    sendQuest("", 4969);}
    Step 4:

    Then add this under public void process() {

    Code:
    Logontimer();

    Have fun Codeing

     

  2. #2  
    Braiton
    Guest
    why would you want to boot your players after 30 mins..?

    or for any matter that is..
     

  3. #3  
    Registered Member
    [М]ęŋąċę©'s Avatar
    Join Date
    Apr 2008
    Posts
    409
    Thanks given
    8
    Thanks received
    2
    Rep Power
    133
    good job, but not sure how this will help me :\ maybe i can put it somehwere
    Quote Originally Posted by Downfall™ View Post
    roflz.this is kinda stupid.syis are just retarded cause all i do is send a trojan to who ever uses it lolz its not hard 2 figure out whos doing it
     

  4. #4  
    Member #35, most veteran member left? :D


    Join Date
    Jul 2006
    Age
    27
    Posts
    2,663
    Thanks given
    53
    Thanks received
    331
    Rep Power
    925
    What is the point of this? Is there one? Because if there is, I'm missing it completely...
    [Only registered and activated users can see links. ]

    `Ex-global moderator x3 (resigned)
     

  5. #5  
    haloking
    Guest
    Quote Originally Posted by Runite View Post
    What is the point of this? Is there one? Because if there is, I'm missing it completely...
    ME too, its good work I guess but I am still wondering what the point of it is
     

  6. #6  
    Zomaian
    Guest
    Well what i did was:

    use the base of this code only made it like that it will only log the player out when it is standing still for 5 minutes.

    Quite useful so nothing can happen to there accounts
     


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
  •