Jump to content

Stolao's Daily Login Reward [v2.0B]


Stolao

Recommended Posts


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  212
  • Reputation:   5
  • Joined:  01/24/12
  • Last Seen:  

thanks Amazing script, thumbsUP  for the release. [v1.7B]

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Glad you like it :)

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

Tested.. Working.. But.. When I set
 

    // Number of times same IP can recive rewards
    //   0 = unlimited
    .IPCheck = 1;

The scripts not working..

It will run this line :
 

if(.IPCheck){
		query_sql("SELECT last_ip FROM `login` WHERE account_id = "+getcharid(3)+"", .@LastIp$);
		query_sql("SELECT account_id FROM `login` WHERE last_ip = '"+.@LastIp$+"'", .@AccountId);
		if(getarraysize(.@AccountId) > .IPCheck){
			message strcharinfo(0),"[Daily Rewards]: rewards are limited to "+.IPCheck+" per IP sorry.";
			end;
		}
	}


If set to 0 (unlimited), the script will running smoothly again..

And also, are there any command or something to view the cutin of that day rewards?

Edited by rakuzas
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Updated to 1.83 On Git

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Where can I get the old version ? I want to run in to hercules. thanks.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

5 hours ago, mrlongshen said:

Where can I get the old version ? I want to run in to hercules. thanks.

On my git just pull an old version. Also current version should work for most part on herc should just need a few tweaks.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

14 hours ago, Stolao said:

On my git just pull an old version. Also current version should work for most part on herc should just need a few tweaks.

ok thanks. Currently I run the old version of hercules.

Link to comment
Share on other sites

  • 5 weeks later...

  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

I am using the latest version of your script in the emulator brAthena = Hercules, and this error is appearing

Sem_t_tulo.png

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

On 1/22/2017 at 9:34 AM, Haikenz said:

I am using the latest version of your script in the emulator brAthena = Hercules, and this error is appearing

Sem_t_tulo.png

Personally I only support rAthena if you want to use another emulator I can not garentee it will work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  152
  • Topics Per Day:  0.04
  • Content Count:  459
  • Reputation:   6
  • Joined:  06/29/12
  • Last Seen:  

@Stolao

Hello,

I want to report.. Or asking.. I use your script and set 28 days daily rewards.. But last time.. My player including myself have crappy time left.. So I updated into your latest git.. But somehow.. When player already received the rewards.. and check, they got 30 days left.. Which supposed about 23++ hours.. May I know whats wrong? I not touch anything besides the rewards from day 1 till 28 and daily buff from day 1 till 28..

Thank you..

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  02/04/12
  • Last Seen:  

i got the same problem too @rakuzas, help..

Link to comment
Share on other sites

  • 1 month later...

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

On 2/1/2017 at 6:56 PM, rakuzas said:

@Stolao

Hello,

I want to report.. Or asking.. I use your script and set 28 days daily rewards.. But last time.. My player including myself have crappy time left.. So I updated into your latest git.. But somehow.. When player already received the rewards.. and check, they got 30 days left.. Which supposed about 23++ hours.. May I know whats wrong? I not touch anything besides the rewards from day 1 till 28 and daily buff from day 1 till 28..

Thank you..

 

On 2/28/2017 at 5:21 PM, daromski02 said:

i got the same problem too @rakuzas, help..

post your conf if you want support, also i just updated again

  • Upvote 1
Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  77
  • Reputation:   1
  • Joined:  03/11/12
  • Last Seen:  

hi

Edited by hadie
Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  77
  • Reputation:   1
  • Joined:  03/11/12
  • Last Seen:  

how to make it must 3hours login will get daily reward?

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  192
  • Reputation:   9
  • Joined:  05/08/13
  • Last Seen:  

@Stolao Odd thing here. Rewards keep resetting to day 1. The furthest I've gone was day 3 out of 14. No console errors too.

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   1
  • Joined:  12/31/11
  • Last Seen:  

@Stolao Hello sir! Great script! Questions: Does this affects all characters even in the same account? I kinda like to have it 1 char per account. And what happens if the character logged in the 1st day, missed 2nd day, then logs in the 3rd day? My ability in scripting is kinda minimal, so its hard for me to read the script.teehee. Thank you sir!

Edited by jasonch
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

3 hours ago, jasonch said:

@Stolao Hello sir! Great script! Questions: Does this affects all characters even in the same account? I kinda like to have it 1 char per account. And what happens if the character logged in the 1st day, missed 2nd day, then logs in the 3rd day? My ability in scripting is kinda minimal, so its hard for me to read the script.teehee. Thank you sir!

It's setup for the entire account but just need to change very little to change that. 

 

I have it with 2 configurable settings 

1) you skip day 2 on day 3 you continue from day 2

2) you skip day 2 on day 3 you start back at day 1 again

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  29
  • Reputation:   1
  • Joined:  12/31/11
  • Last Seen:  

Just now, Stolao said:

It's setup for the entire account but just need to change very little to change that. 

 

I have it with 2 configurable settings 

1) you skip day 2 on day 3 you continue from day 2

2) you skip day 2 on day 3 you start back at day 1 again

Ohh okay got it. Thank you again for the great script @Stolao!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  192
  • Reputation:   9
  • Joined:  05/08/13
  • Last Seen:  

9 hours ago, Stolao said:

It's setup for the entire account but just need to change very little to change that. 

 

I'm experiencing problems with the script. It usually works in the beginning then after a few days suddenly stops giving rewards to everyone.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   7
  • Joined:  08/15/14
  • Last Seen:  

@Stolao Hi bro, I'm currently trying your Script on Hercules and trying to make it work just wanted to ask whats the use of this line:

OnLoginCmnd:

Sorry I got it xD my mistake for not checking the whole script. I'll just check why it's getting a "script_rid2sd: fatal error" on hercules.

Thanks for this release :D

 

 

Edited by THPO
Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  06/05/12
  • Last Seen:  

Hey Staolao

Thank you for the script! 

is there a way we can set it to reset every 12 AM regardless of cool down. I'd like players to just wait til 12 am and not wait 24 hours at all

Thanks!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

20 hours ago, Mickosis said:

Hey Staolao

Thank you for the script! 

is there a way we can set it to reset every 12 AM regardless of cool down. I'd like players to just wait til 12 am and not wait 24 hours at all

Thanks!

yes of course just get the date and compare to reward date, will involve changing the formula of .@i removing the hours and minutes in it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  06/05/12
  • Last Seen:  

2 hours ago, Stolao said:

yes of course just get the date and compare to reward date, will involve changing the formula of .@i removing the hours and minutes in it.

Thank you for your reply. Can you make a quick edit for it? I am not familiar with the flow of the code :( thank you in advance

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   0
  • Joined:  12/10/14
  • Last Seen:  

Thanks

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Released a Version 2 for testing, its a separate file

Update Info
 

2.00 Origional Make
2.01 Fixed Logic Bug
2.02 Fixed Year Multiplier
2.03 Added an IP check
2.04 Split Rewards up
2.05 Move ip check to Daily reward collection
2.06 Added ability to see next day via commands/relogging
2.07 Added Delay
2.08 Moved Delay to none VIP only
2.09 Removed some useless lines
2.0A Removed Menus due to bugs
2.0B Fixed VIP Cutin
2.0C Added it showing previos day cutin
2.0D Added a for loop
2.0E Fixed Ramined logged in time calculation (visual bug)
2.0F Added a F_InsertPlural to "more minute"
2.10 Added a Mac Check
2.11 Changed the IP check to [Sader1992] version
2.12 Enable Bound Type
2.13 Added 'collectreward', 'dailyreward', 'collectdaily' Commands
2.14 Added 'nextreward' Command
2.15 Added Daily Buffs
2.16 Added Exp Rewards
2.17 Removed Reards for Autotraders
2.18 Move Buffs to Daily so VIP wont trigger twice
2.19 Optimized Slightly
2.1A Fixed a bug with VIP getting bonus rewards in normal rewards
2.1B Fixed some documentaion

 

Edited by Stolao
Link to comment
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.

×
×
  • Create New...