Famous Posted September 7, 2013 Posted September 7, 2013 Can I request every time the player kill during woe time will earn cash points During woe time Only Example: 9:00pm-10:00pm 1kill = 1cash points!! Thank you! Quote
Patskie Posted September 7, 2013 Posted September 7, 2013 Try this one : - script Sample -1,{ setarray .Map$, "pvphero", "prontera", "payon"; set .@size, getarraysize(.Map$); OnPCKillEvent: for ( set .@i, 0; .@i < .@size; set .@i, .@i + 1 ) { if(strcharinfo(3) == .Map$[.@i]) { if(@Delay < gettimetick(2)) { set .@Amount,rand(1,2); set #CASHPOINTS,#CASHPOINTS + .@Amount; dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points."; set @Delay,gettimetick(2) + 180; } } } end; } Quote
Patskie Posted September 7, 2013 Posted September 7, 2013 Didn't test. Try : - script Sample -1,{ OnInit: setarray .Map$[0],"prtg_cas01","prtg_cas02"; set .size, getarraysize(.Map$); end; OnPCKillEvent: for ( set .@i, 0; .@i < .size; set .@i, .@i + 1 ) if ( !agitcheck() || !agitcheck2() || strcharinfo(3) != .Map$[.@i] ) end; set #CASHPOINTS, #CASHPOINTS + 1; dispbottom "You have gained 1 cash point. Total is " +#CASHPOINTS+ " cash points."; end; } Quote
Famous Posted September 7, 2013 Author Posted September 7, 2013 - script Sample -1,{ OnPCKillEvent: if(strcharinfo(3) == "pvphero") { if(@Delay < gettimetick(2)) { set .@Amount,rand(1,2); set #CASHPOINTS,#CASHPOINTS + .@Amount; dispbottom "Gained "+.@Amount+" Cash Point. Total = "+#CASHPOINTS+" Cash Points."; set @Delay,gettimetick(2) + 180; } } end; } @patskie thanks but Can I ask how to add this more maps? Quote
Question
Famous
Can I request every time the player kill during woe time will earn cash points
During woe time Only Example: 9:00pm-10:00pm
1kill = 1cash points!!
Thank you!
4 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.