PsyOps Posted December 11, 2018 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
0 Dissidia Posted December 11, 2018 Posted December 11, 2018 Just change the gettime(3) > 20 to gettime(3) == 19 Quote
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
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.