Sallycantdance Posted January 10, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Share Posted January 10, 2021 (edited) can somebody edit this script that when someone is on @autotrade/vending mode they didnt get hourly points Thanks in advance - script hourly_point_main -1,{ OnInit: .npc_name$ = strnpcinfo(3); bindatcmd "check",.npc_name$+"::OnAtcommand"; end; OnAtcommand: dispbottom "Accumulated "+#daily_minute_count; end; OnUpdate: #daily_minute_count++; deltimer .npc_name$+"::OnUpdate"; dispbottom "Accumulated "+#daily_minute_count+" minute(s)"; switch ( #daily_minute_count ) { default: break; case 60: // 60 minutes #CASHPOINT += 1; getitem 677,1; break; case 120: // 120 minutes #CASHPOINT += 1; getitem 677,1; break; case 180: // 180 minutes #CASHPOINT += 1; getitem 677,1; break; case 240: // 240 minutes #CASHPOINT += 1; getitem 677,1; break; case 300: // 300 minutes #CASHPOINT += 1; getitem 677,1; break; case 360: // 360 minutes #CASHPOINT += 1; getitem 677,1; break; case 420: // 420 minutes #CASHPOINT += 1; getitem 677,1; break; case 480: // 480 minutes #CASHPOINT += 1; getitem 677,1; #daily_minute_count = 0; // reset. break; } OnPCLoginEvent: addtimer ( 60 * 1000 ), .npc_name$+"::OnUpdate"; end; } Edited January 10, 2021 by Mael Use a codebox Quote Link to comment Share on other sites More sharing options...
Emistry Posted January 10, 2021 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 10, 2021 OnUpdate: if(checkvending()) { dispbottom "Hourly Point disabled."; end; } ... ... Quote Link to comment Share on other sites More sharing options...
Sallycantdance Posted January 11, 2021 Group: Members Topic Count: 225 Topics Per Day: 0.14 Content Count: 798 Reputation: 12 Joined: 12/04/20 Last Seen: Monday at 09:00 AM Author Share Posted January 11, 2021 19 hours ago, Emistry said: OnUpdate: if(checkvending()) { dispbottom "Hourly Point disabled."; end; } ... ... thankyou Sir Emistry for your reply , but where did exactly i will put that cause i try it but i receive multiple errors Quote Link to comment Share on other sites More sharing options...
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.