Yoona Posted May 8, 2013 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 567 Reputation: 18 Joined: 04/15/13 Last Seen: April 21, 2016 Share Posted May 8, 2013 Can someone please Edit this, coz when i tried in Pub you can still got 1 Cash points i want to remove that... - script Hourly Points -1,{OnUpdate:if( !checkvending() ){set @Minute,@Minute + 1;if( @Minute % 60 == 0 ){set #CASHPOINTS, #CASHPOINTS + 1;dispbottom "Online for 1 Hour You Gained 1 Cash Points.";set @Hour,@Hour + 1;if( @Hour % 12 == 0 ){set #CASHPOINTS, #CASHPOINTS + 10;dispbottom "Online for 12 Hours +10 Cash Points.";}}}OnPCLoginEvent:addtimer 60000,strnpcinfo(0)+"::OnUpdate";end;} Quote Link to comment Share on other sites More sharing options...
Reynard Posted May 8, 2013 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 56 Reputation: 9 Joined: 09/22/12 Last Seen: August 16, 2020 Share Posted May 8, 2013 (edited) So you wanted to remove the 1 Cash Point per Hour? Didnt test it, but should work. - script Hourly Points -1,{ OnUpdate: if( !checkvending() ){ set @Minute,@Minute + 1; if( @Minute % 720 == 0 ){ set #CASHPOINTS, #CASHPOINTS + 10; dispbottom "Online for 12 Hours +10 Cash Points."; } } OnPCLoginEvent: addtimer 60000,strnpcinfo(0)+"::OnUpdate"; end; } Edited May 8, 2013 by Reynard Quote Link to comment Share on other sites More sharing options...
Jaburak Posted May 8, 2013 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 1125 Reputation: 236 Joined: 07/30/12 Last Seen: April 13 Share Posted May 8, 2013 - script hourlypoints -1,{ //--Start of the Script OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer30000: //Check if Vending (normal or @at) if(checkvending() >= 1 || checkchatting() == 1) { dispbottom "The hourly points event stopped because you were vending / chatting. Please relog if you wish to start again."; stopnpctimer; end; } //Check if Idle getmapxy( .@map$, .@x, .@y, 0 ); if(@map$ == .@map$ && @x == .@x && @y == .@y) { set @afk, @afk + 1; } //If move timer resets else { set @afk, 0; } set @map$, .@map$; set @x, .@x; set @y, .@y; //Idle Check for 5 Minutes if(@afk == 5) { dispbottom "The hourly points event stopped because you were idle for 5 minutes. Please relog if you wish to start again."; stopnpctimer; end; } end; OnTimer60000: set @minute, @minute + 1; //Check for 1 Minute if(@minute == 60){ set @minute,0; getitem 7227,1; set #CASHPOINTS, #CASHPOINTS + 10; dispbottom "Online for 12 Hours +10 Cash Points." } stopnpctimer; initnpctimer; end; } Quote Link to comment Share on other sites More sharing options...
Yoona Posted May 9, 2013 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 567 Reputation: 18 Joined: 04/15/13 Last Seen: April 21, 2016 Author Share Posted May 9, 2013 (edited) @Reynard i will test this script of yours <3 @Anakid Thank You soo much i will test this one too <3 Edited May 9, 2013 by Yoona Quote Link to comment Share on other sites More sharing options...
Question
Yoona
Can someone please Edit this, coz when i tried in Pub you can still got 1 Cash points i want to remove that...
- script Hourly Points -1,{
OnUpdate:
if( !checkvending() ){
set @Minute,@Minute + 1;
if( @Minute % 60 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 1;
dispbottom "Online for 1 Hour You Gained 1 Cash Points.";
set @Hour,@Hour + 1;
if( @Hour % 12 == 0 ){
set #CASHPOINTS, #CASHPOINTS + 10;
dispbottom "Online for 12 Hours +10 Cash Points.";
}
}
}
OnPCLoginEvent:
addtimer 60000,strnpcinfo(0)+"::OnUpdate";
end;
}
Link to comment
Share on other sites
3 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.