generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: I've been looking at Daily Login and I'm confused.

Previous Thread :: Next Thread 
DesignerDavid is online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
14 Jul 2017 11:41 PM
http://wiki.roblox.com/index.php?title=In_Game_Currency#Daily_Login_Bonus

I'm having trouble understanding what the two lines mean:

CurrencyManager:SetDailyLoginBonus(10)
CurrencyManager:SetTimeZoneOffsetHours(-8)
Report Abuse
doggy00 is online. doggy00
Joined: 11 Jan 2011
Total Posts: 3571
14 Jul 2017 11:44 PM
Never worked with that but it seems the timezoneoffsethours doesn't matter that much. the setdailyloginbonus is self-explanatory, as it defines how much of whatever value the person gets.
Report Abuse
DesignerDavid is online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
14 Jul 2017 11:50 PM
I'm still very confused about the TimeZoneOffsetHours.
sorry if I'm that dumblol
Report Abuse
DesignerDavid is online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
14 Jul 2017 11:50 PM
I'm just wondering how they got that number, what odes it mean, and do I have to change it?
Report Abuse
doggy00 is online. doggy00
Joined: 11 Jan 2011
Total Posts: 3571
15 Jul 2017 12:06 AM
Not 100% sure as I've never bothered with login bonuses in the past, but I'll read into it.

--later--

Okay, I read into it and it seems like it just decides which timezone the login bonus uses (aka what time it needs to pass to be considered a day).

-8 is default and it's PST (Pacific time).

If you were to set it to 0 then it'd actually be the time in Casablanca (a city in western Africa), lol.
Report Abuse
DesignerDavid is online. DesignerDavid
Joined: 18 Feb 2014
Total Posts: 8422
15 Jul 2017 12:15 AM
doggy00 thank you very much.
Report Abuse
doggy00 is online. doggy00
Joined: 11 Jan 2011
Total Posts: 3571
15 Jul 2017 12:16 AM
No problem :P
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image