Jump to content
  • 0

How to change this to Mithril coin


Question

Posted

i want to change this item to mithrill coin

- script AttendanceScript -1,{
OnPCLoginEvent:
   // last login was BEFORE today
   if (#lastDayOnline < gettimetick(2)/86400) {


    // last login was exactly YESTERDAY, set consecutive_days +1
    if (#lastDayOnline == (gettimetick(2)/86400 - 1))
	    set #consecutive_days, #consecutive_days+1;
    else    // reset their streak to 1
	    set #consecutive_days, 1;
	 set #lastDayOnline, gettimetick(2)/86400;
	    set #CASHPOINTS, #CASHPOINTS + 2;
    dispbottom "Gained 2 HPRO Points.	  Total = " + #CASHPOINTS;
    // check for 7-day streak
    if (#consecutive_days % 7 == 0){
	    set #CASHPOINTS, #CASHPOINTS + 50;	    // Jellopy
dispbottom "Gained 50 HPRO Points.	  Total = " + #CASHPOINTS;
    // check for 30-day streak
    if (#consecutive_days % 30 == 0){
	    set #CASHPOINTS, #CASHPOINTS + 200;	    // Jellopy
    dispbottom "Gained 200 HPRO Points.	  Total = " + #CASHPOINTS;
    // save today as the Last Day they were Online
   }  
   }
   }
   end;
}

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.

Guest
Answer this question...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...