Famous Posted September 7, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted September 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted September 7, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 5 hours ago Share 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 Link to comment Share on other sites More sharing options...
Famous Posted September 7, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share 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 Link to comment Share on other sites More sharing options...
Famous Posted September 7, 2013 Group: Members Topic Count: 145 Topics Per Day: 0.03 Content Count: 455 Reputation: 3 Joined: 06/19/12 Last Seen: February 26, 2018 Author Share Posted September 7, 2013 Thanks! problem solve Quote Link to comment Share on other sites More sharing options...
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!
Link to comment
Share on other sites
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.