Jump to content
  • 0
* Blaze *

Hourly Points

Question

Any idea?

Every Hour you get reward points
After 8 consecutive hours, rewarding will start all over again
Rewards without Voting Events Triggered
First Hour: 10 Rewards Points
Second Hour: 20 Reward Points
Third Hour: 30 Reward Points
Fourth Hour: 40 Reward Points
Fifth Hour: 50 Reward Points
Sixth Hour: 60 Reward Points
7th Hour: 70 Reward Points
8th Hour: 80 Reward Points

I thought this is script not working any posible script please help me.. thanks??  B) 

 

//===== Hourly Points Script =========================================
//===== By: ==========================================================
//= GorthexTiger modified by Nibi
//===== Current Version: =============================================
//= 1.0
//===== Compatible With: =============================================
//= Any eAthena Version
//===== Description: =================================================
//= Get Points every successful hours of gameplay, you cannot get
//= the points even if you miss a second or a minute. A player will
//= get a very big bonus if they played 3 hours consecutively
//= or without logging out of the game. If the player is vending
//= the script will then stop.
//===== Additional Comments: =========================================
//= You can modify the script to your liking.
//= The default points is Kafrapoints change it anyway if you like.
//= 1.1 = Check Chatting too
//= 1.2 = 5 Minute Idle Check & @at/@autotrade check.
//= 1.3 = Corrected the current balance line on 12 Hours Consecutive
//====================================================================
-    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 #KAFRAPOINTS, #KAFRAPOINTS + .point_amt;
    dispbottom "You received "+.point_amt+" Reward Cash Points by staying ingame for 1 hour";
    dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    set @consecutive_hour, @consecutive_hour + 1;

    //Check for 2 hours consecutive
    if(@consecutive_hour == 2) {
        set @consecutive_hour,0;
        set #KAFRAPOINTS, #KAFRAPOINTS + .2cpoint_amt;
        dispbottom "You received "+.2cpoint_amt+" Reward Cash Points due to playing for 2 consecutive hours";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;
    
    //Check for 3 hours consecutive
    if(@consecutive_hour == 3) {
        set @consecutive_hour,0;
        set #KAFRAPOINTS, #KAFRAPOINTS + .3cpoint_amt;
        dispbottom "You received "+.3cpoint_amt+" Reward Cash Points due to playing for 3 consecutive hours";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;
    
     //Check for 4 hours consecutive
    if(@consecutive_hour == 4) {
        set @consecutive_hour,0;
        set #KAFRAPOINTS, #KAFRAPOINTS + .4cpoint_amt;
        dispbottom "You received "+.4cpoint_amt+" Reward Cash Points due to playing for 4 consecutive hours";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;
    
    //Check for 5 hours consecutive
    if(@consecutive_hour == 5) {
        set @consecutive_hour,0;
        set #KAFRAPOINTS, #KAFRAPOINTS + .5cpoint_amt;
        dispbottom "You received "+.5cpoint_amt+" Reward Cash Points due to playing for 5 consecutive hours";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;
    
    //Check for 6 hours consecutive
    if(@consecutive_hour == 6) {
        set @consecutive_hour,0;
        set #KAFRAPOINTS, #KAFRAPOINTS + .6cpoint_amt;
        dispbottom "You received "+.6cpoint_amt+" Reward Cash Points due to playing for 6 consecutive hours";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;
    
    //Check for 7 hours consecutive
    if(@consecutive_hour == 7) {
        set @consecutive_hour,0;
        set #KAFRAPOINTS, #KAFRAPOINTS + .7cpoint_amt;
        dispbottom "You received "+.7cpoint_amt+" Reward Cash Points due to playing for 7 consecutive hours";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;
    
    //Check for 8 hours consecutive
    if(@consecutive_hour == 8) {
        set @consecutive_hour,0;
        set #KAFRAPOINTS, #KAFRAPOINTS + .8cpoint_amt;
        dispbottom "You received "+.8cpoint_amt+" Reward Cash Points due to playing for 8 consecutive hours";
        dispbottom "Current Balance = "+#KAFRAPOINTS+" Reward Cash Points";
    }
    addtimer .timer,"hourlypoints::OnPointGet";
    end;

OnInit:
    set .timer, 1000*60*60; //Timer in milliseconds.
    set .2cpoint_amt, 20; //Points gained for consecutive time online.
    set .3cpoint_amt, 30; //Points gained for consecutive time online.
    set .4cpoint_amt, 40; //Points gained for consecutive time online.
    set .5cpoint_amt, 50; //Points gained for consecutive time online.
    set .6cpoint_amt, 60; //Points gained for consecutive time online.
    set .7cpoint_amt, 70; //Points gained for consecutive time online.
    set .8cpoint_amt, 80; //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.
}

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.