Jump to content
  • 0

[Lf Code] Vip, Exp/sp Bonus Friday-Sunday Freya-H5


Question

Posted

Hello guys I'm looking for 2 codes:

 

VIP access lvl:  players with this lvl will get double exp/sp for 30 days and a way admin to add/remove or see the remaining days on the admin panel

(I  checked this code but it doesn't work on my project it has many errors that need convert from acis to freya and I only need a simple vip system only for exp/sp)

 

Double EXP/SP on Friday-Sunday:

 code1.jpg

 

well I can't find out what I should change to make it work

1 answer to this question

Recommended Posts

  • 0
Posted

if (dayOfWeek() == friDay() || dayOfWeek() == Saturday() || dayOfWeek() == Sunday())
{
      return (int) (getTemplate().rewardExp * Config.BONUS_RATE_XP);
}
else
{
     return (int) (getTemplate().rewardExp * Config.RATE_XP);
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



×
×
  • Create New...