Jump to content
Sign in to follow this  
chadness

Hourly Points

Recommended Posts

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;
}

vending.PNG

Edited by Mael
Use a codebox

Share this post


Link to post
Share on other sites
OnUpdate:
	if(checkvending()) {
		dispbottom "Hourly Point disabled.";
		end;
	}
	...
	...

 

Share this post


Link to post
Share on other sites
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 

1.PNG

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.