Jump to content
  • 0

Hourly Points 10 mins for 1 points


Question

Posted (edited)
- script hourlypoints -1,{
//--Start of the Script
OnPCLoginEvent:
    addtimer .timer,"hourlypoints::OnPointGet";
    end;
    
OnPointGet:
    while(checkvending() >= 1 || checkchatting() == 1 || checkidle()>=.dlimit) {
        sleep2 .delay;
        if(.@mes$=="")
            dispbottom set(.@mes$,"The hourly points event haulted because you were vending, chatting, or idle.");
    }
    set #CASHPOINTS, #CASHPOINTS + .point_amt;
    dispbottom "You received "+.point_amt+" Cashpoints by staying ingame for 1 hour";
    dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints";
    set @consecutive_hour, @consecutive_hour + 1;

    //Check for 3 hours consecutive
    if(@consecutive_hour == 3) {
        set @consecutive_hour,0;
        set #CASHPOINTS, #CASHPOINTS + .cpoint_amt;
        dispbottom "You receive "+.cpoint_amt+" Cashpoints in playing for 12 consecutive hours";
        dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;

OnInit:
    set .timer, 1000*60*60; //Timer in milliseconds.
    set .cpoint_amt, 50; //Points gained for consecutive time online.
    set .point_amt, 10; //Normal points gained.
    set .delay, 1000; //Delay for idle re-check check.
    set .dlimit, 60*5; //Stop points if afk greater then in seconds.
}

ca someone set this script i want it 10 mins for 1 point and if you stay 1 hour in the server addtional 4 points.  thanks in advance

Edited by trizzy

3 answers to this question

Recommended Posts

Posted

you just have to change variable config at the bottom of the code

First part :

if(@consecutive_hour == 3) { //change 3 to 6

Second part :

OnInit:
    set .timer, 1000*60*60; //Timer in milliseconds.   change to 1000*60*10 or 1000*600
    set .cpoint_amt, 50; //Points gained for consecutive time online. change 50 to 4
    set .point_amt, 10; //Normal points gained.            change 10 to 1
    set .delay, 1000; //Delay for idle re-check check.
    set .dlimit, 60*5; //Stop points if afk greater then in seconds.
}

you also gotta change the display message for players

And thank you, i'll post this script on the forum i use

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...