GubA Posted January 16, 2023 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 06/16/14 Last Seen: June 7, 2023 Share Posted January 16, 2023 Quote - script KillMon2Cash -1,{ end; OnNPCKillEvent: if(rand(1,100) < 1) getitem 50001,1; end; } Thank you to help. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted January 17, 2023 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 17, 2023 - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; } 1 Quote Link to comment Share on other sites More sharing options...
0 GubA Posted January 20, 2023 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 24 Reputation: 0 Joined: 06/16/14 Last Seen: June 7, 2023 Author Share Posted January 20, 2023 On 1/17/2023 at 9:48 PM, Emistry said: - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; } Thank you too much. Quote Link to comment Share on other sites More sharing options...
0 WillJocker Posted January 22, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.01 Content Count: 33 Reputation: 0 Joined: 03/27/22 Last Seen: March 27 Share Posted January 22, 2023 On 1/17/2023 at 11:48 AM, Emistry said: - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; } Hello @Emistry! good day! How do I add a command, example: @check, and the command says how much time is left for a new drop? plss Quote Link to comment Share on other sites More sharing options...
0 Angeluz Posted January 22, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 21 minutes ago Share Posted January 22, 2023 maybe something like that - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: message strcharinfo(0),"Next drop in "+ ( @delay - .@gettimetick ) + " seconds."; end; } Quote Link to comment Share on other sites More sharing options...
0 WillJocker Posted January 23, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.01 Content Count: 33 Reputation: 0 Joined: 03/27/22 Last Seen: March 27 Share Posted January 23, 2023 On 1/22/2023 at 12:34 PM, Angeluz said: maybe something like that - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: message strcharinfo(0),"Next drop in "+ ( @delay - .@gettimetick ) + " seconds."; end; } time error Quote Link to comment Share on other sites More sharing options...
0 Angeluz Posted January 24, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 21 minutes ago Share Posted January 24, 2023 3 hours ago, WillJocker said: time error my bad - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds."; end; } 1 Quote Link to comment Share on other sites More sharing options...
0 WillJocker Posted January 24, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.01 Content Count: 33 Reputation: 0 Joined: 03/27/22 Last Seen: March 27 Share Posted January 24, 2023 (edited) 20 hours ago, Angeluz said: my bad - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds."; end; } in the first drop looks like this:can adjust for the first one to appear, for example: Drop available now after passing the 60s it looks like this and counting negative Edited January 24, 2023 by WillJocker Quote Link to comment Share on other sites More sharing options...
0 Angeluz Posted January 25, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 21 minutes ago Share Posted January 25, 2023 try with this - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: if (( @delay - gettimetick(2)) <=0 ) message strcharinfo(0),"Your next drop is ready!"; else message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds."; end; } 1 Quote Link to comment Share on other sites More sharing options...
0 WillJocker Posted January 25, 2023 Group: Members Topic Count: 8 Topics Per Day: 0.01 Content Count: 33 Reputation: 0 Joined: 03/27/22 Last Seen: March 27 Share Posted January 25, 2023 19 hours ago, Angeluz said: try with this - script KillMon2Cash -1,{ OnNPCKillEvent: .@gettimetick = gettimetick(2); if (rand(100) < 1 && .@gettimetick > @delay) { getitem 50001,1; @delay = .@gettimetick + 60; // 60 seconds } end; OnInit: bindatcmd "check", "KillMon2Cash::OnCheckTime"; end; OnCheckTime: if (( @delay - gettimetick(2)) <=0 ) message strcharinfo(0),"Your next drop is ready!"; else message strcharinfo(0),"Next drop in "+ ( @delay - gettimetick(2) ) + " seconds."; end; } thx! very nicee Quote Link to comment Share on other sites More sharing options...
Question
GubA
Thank you to help.
Link to comment
Share on other sites
9 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.