Jump to content
Stolao

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

Recommended Posts

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)+"", [email protected]$);
		query_sql("SELECT account_id FROM `login` WHERE last_ip = '"[email protected]$+"'", [email protected]);
		if(getarraysize([email protected]) > .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

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

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

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

@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

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

@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

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

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

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

@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

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 [email protected] removing the hours and minutes in it.

Link to comment
Share on other sites

2 hours ago, Stolao said:

yes of course just get the date and compare to reward date, will involve changing the formula of [email protected] 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

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

Important Information

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