This is the only version of the script that actually works with my svn so please bear with me. So it seems to work with no problem except that it still gives points when vending+autotrade mode.
- script hourlypoints -1,{
//--Start of the Script
OnPCLoginEvent:
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
OnTimer60000:
set @minute, @minute + 1;
if(@minute == 20){
set @minute,0;
set .@point_amt, 2; //Points to get every hour (default: 10)
if(checkvending() >= 1) {
dispbottom "The hourly points event haulted because you were vending.";
stopnpctimer;
end;
}
else {
set #CASHPOINTS, #CASHPOINTS + .@point_amt;
dispbottom "You received "+.@point_amt+" cash points for staying in-game.";
dispbottom "Current Balance = "+#CASHPOINTS+" Cash Points";
set @consecutive_hour, @consecutive_hour + 1;
}
}
if(@consecutive_hour == 3) {
set @consecutive_hour,0;
set .@cpoint_amt, 10; //Points to get for 12 Consecutive hours (default: 50)
set #CASHPOINTS, #CASHPOINTS + .@cpoint_amt;
dispbottom "You received "+.@cpoint_amt+" bonus cash points for playing for 1 hour.";
dispbottom "Current Balance = "+#CASHPOINTS+" Cash Points";
}
stopnpctimer;
initnpctimer;
end;
}
//--End of the Script
Question
TiMz
This is the only version of the script that actually works with my svn so please bear with me. So it seems to work with no problem except that it still gives points when vending+autotrade mode.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.