PsyOps Posted December 11, 2018 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 150 Reputation: 12 Joined: 12/03/18 Last Seen: 7 hours ago Share Posted December 11, 2018 (edited) Hi guys! I have tried to use this script as a basis for a Prize Every Minute on a Map. I would only want to limit it from 7-8 PM. Any clues how to improve this script? - script hjklm -1,{ OnPCLoginEvent: while(1) { sleep2 5000; if ( strcharinfo(3) == .map_hourly$ && gettime(3) > 20 ) { .@loop++; if( .@loop == 3 ) {// 1h getitem .item_gain, .item_num; .@loop = 0; } } else .@loop = 0; } OnInit: .item_gain = 501; // Item ID gained .item_num = 1; // number item gained .afk_time = 5; // afk restriction 5 min .map_hourly$ = "payon"; // map restriction end; } Edited January 6, 2019 by Emistry Please use codebox Quote Link to comment Share on other sites More sharing options...
0 Dissidia Posted December 11, 2018 Group: Members Topic Count: 155 Topics Per Day: 0.03 Content Count: 535 Reputation: 23 Joined: 11/19/11 Last Seen: June 8, 2023 Share Posted December 11, 2018 Just change the gettime(3) > 20 to gettime(3) == 19 Quote Link to comment Share on other sites More sharing options...
Question
PsyOps
Hi guys! I have tried to use this script as a basis for a Prize Every Minute on a Map. I would only want to limit it from 7-8 PM. Any clues how to improve this script?
- script hjklm -1,{ OnPCLoginEvent: while(1) { sleep2 5000; if ( strcharinfo(3) == .map_hourly$ && gettime(3) > 20 ) { .@loop++; if( .@loop == 3 ) {// 1h getitem .item_gain, .item_num; .@loop = 0; } } else .@loop = 0; } OnInit: .item_gain = 501; // Item ID gained .item_num = 1; // number item gained .afk_time = 5; // afk restriction 5 min .map_hourly$ = "payon"; // map restriction end; }
Please use codebox
Link to comment
Share on other sites
1 answer 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.