Jump to content

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


Stolao

Recommended Posts


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

On 10/17/2017 at 12:25 PM, Stolao said:

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

 

Sir... Im trying to use your script but something error shown up..

Quote

script error on npc/custom/testro/dailyrewardII.txt line 119
    parse_simpleexpr: unexpected character

*  119 :                        deletearray .@XT$['['0],getarraysize(.@XT$);


It show error on those line.

Edited by CheckMate
it show email protected actually it just (@XT$)
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:  

19 minutes ago, CheckMate said:

Sir... Im trying to use your script but something error shown up..


It show error on those line.

Oh shit my bad I fixed locally but not live, it has an extra [ in that line that's all I'll fix once home

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

9 minutes ago, Stolao said:

Oh shit my bad I fixed locally but not live, it has an extra [ in that line that's all I'll fix once home

Owh.. I thougt cuz it was my problem.. Thx.. extra [ <--- okay2 thx for clarification sir.

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Hi all, a question about buffs... 

on my server I've been using the 2.1c version for a few days and everything seems to work fine, but I'd like some advice regarding the buffs. At the moment the list of buffs we use is as follows:

    setarray .BuffInfo
                ,198,1,60,10    // Day 1: +10% Hp for 60 Mins
                ,196,2,60,25    // Day 2: +25 Flee for 60 Mins
                ,260,3,60,1        // Day 3: Life Insurance for 60 Mins
                ,198,4,60,10    // Day 4: +10% Hp for 60 Mins
                ,196,5,60,25    // Day 5: +25 Flee for 60 Mins
                ,260,6,60,1        // Day 6: Life Insurance for 60 Mins
                ,272,7,60,10    // Day 7: -10% reduction of skill cost for 60 Mins
                ,198,8,60,10    // Day 8: +10% Hp for 60 Mins
                ,196,9,60,25    // Day 9: +25 Flee for 60 Mins
                ,260,10,60,1    // Day 10: Life Insurance for 60 Mins
                ,198,11,60,10    // Day 11: +10% Hp for 60 Mins
                ,196,12,60,25    // Day 12: +25 Flee for 60 Mins
                ,260,13,60,1    // Day 13: Life Insurance for 60 Mins
                ,272,14,60,10    // Day 14: -10% reduction of skill cost for 60 Mins
                ,198,15,60,10    // Day 15: +10% Hp for 60 Mins
                ,196,16,60,25    // Day 16: +25 Flee for 60 Mins
                ,260,17,60,1    // Day 17: Life Insurance for 60 Mins
                ,198,18,60,10    // Day 18: +10% Hp for 60 Mins
                ,196,19,60,25    // Day 19: +25 Flee for 60 Mins
                ,260,20,60,1    // Day 20: Life Insurance for 60 Mins
                ,272,21,60,10    // Day 21: -10% reduction of skill cost for 60 Mins.
                ,198,22,60,10    // Day 22: +10% Hp for 60 Mins
                ,196,23,60,25    // Day 23: +25 Flee for 60 Mins
                ,260,24,60,1    // Day 24: Life Insurance for 60 Mins
                ,198,25,60,10    // Day 25: +10% Hp for 60 Mins
                ,196,26,60,25    // Day 26: +25 Flee for 60 Mins
                ,260,27,60,1    // Day 27: Life Insurance for 60 Mins
                ,272,28,60,10    // Day 28: -10% reduction of skill cost for 60 Mins
                ,198,29,60,10    // Day 29: +10% Hp for 60 Mins
                ,196,30,60,25    // Day 30: +25 Flee for 60 Mins
                ,260,31,60,1;    // Day 31: Life Insurance for 60 Mins

 

Some of these buffs, however, do not have a status icon (as it has "Life Insurance" for example) and instead of creating custom status icons (which requires too much work and time for me) I prefer to replace the buffs without the icons with other buffs that have a default status icon already working.
Can you suggest me some buffs using the status icons?
This is the information of my client:
kRO client 2017-06-29
Ragexe 2015-11-04a (diffed)

Just for general information these are our daily rewards (psd by gangmusic )

daily.jpg

 

Edited by CyberDevil
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:  

1 hour ago, CyberDevil said:

Hi all, a question about buffs... 

on my server I've been using the 2.1c version for a few days and everything seems to work fine, but I'd like some advice regarding the buffs. At the moment the list of buffs we use is as follows:


    setarray .BuffInfo
                ,198,1,60,10    // Day 1: +10% Hp for 60 Mins
                ,196,2,60,25    // Day 2: +25 Flee for 60 Mins
                ,260,3,60,1        // Day 3: Life Insurance for 60 Mins
                ,198,4,60,10    // Day 4: +10% Hp for 60 Mins
                ,196,5,60,25    // Day 5: +25 Flee for 60 Mins
                ,260,6,60,1        // Day 6: Life Insurance for 60 Mins
                ,272,7,60,10    // Day 7: -10% reduction of skill cost for 60 Mins
                ,198,8,60,10    // Day 8: +10% Hp for 60 Mins
                ,196,9,60,25    // Day 9: +25 Flee for 60 Mins
                ,260,10,60,1    // Day 10: Life Insurance for 60 Mins
                ,198,11,60,10    // Day 11: +10% Hp for 60 Mins
                ,196,12,60,25    // Day 12: +25 Flee for 60 Mins
                ,260,13,60,1    // Day 13: Life Insurance for 60 Mins
                ,272,14,60,10    // Day 14: -10% reduction of skill cost for 60 Mins
                ,198,15,60,10    // Day 15: +10% Hp for 60 Mins
                ,196,16,60,25    // Day 16: +25 Flee for 60 Mins
                ,260,17,60,1    // Day 17: Life Insurance for 60 Mins
                ,198,18,60,10    // Day 18: +10% Hp for 60 Mins
                ,196,19,60,25    // Day 19: +25 Flee for 60 Mins
                ,260,20,60,1    // Day 20: Life Insurance for 60 Mins
                ,272,21,60,10    // Day 21: -10% reduction of skill cost for 60 Mins.
                ,198,22,60,10    // Day 22: +10% Hp for 60 Mins
                ,196,23,60,25    // Day 23: +25 Flee for 60 Mins
                ,260,24,60,1    // Day 24: Life Insurance for 60 Mins
                ,198,25,60,10    // Day 25: +10% Hp for 60 Mins
                ,196,26,60,25    // Day 26: +25 Flee for 60 Mins
                ,260,27,60,1    // Day 27: Life Insurance for 60 Mins
                ,272,28,60,10    // Day 28: -10% reduction of skill cost for 60 Mins
                ,198,29,60,10    // Day 29: +10% Hp for 60 Mins
                ,196,30,60,25    // Day 30: +25 Flee for 60 Mins
                ,260,31,60,1;    // Day 31: Life Insurance for 60 Mins

 

Some of these buffs, however, do not have a status icon (as it has "Life Insurance" for example) and instead of creating custom status icons (which requires too much work and time for me) I prefer to replace the buffs without the icons with other buffs that have a default status icon already working.
Can you suggest me some buffs using the status icons?
This is the information of my client:
kRO client 2017-06-29
Ragexe 2015-11-04a (diffed)

Just for general information these are our daily rewards (psd by gangmusic )

daily.jpg

 

Life insurance has an icon, it's a red scythe.

 

This is just a baseline script feel free to change anything you want. As for what sc to use, not particularly no.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Thank you @Stolao for your answer. Another easy question... I would like to insert a sound effect (already present in my client) when a player receive the daily prize, but I receive a server-side error if I insert it like this:
 

			if(checkweight2(.@itms,.@qnts)){
				for(.@x = 0; .@x < .@y; .@x++){
					if(.Mode & 128)
						getitembound  .@itms[.@x], .@qnts[.@x], .Bound_Mode;
						soundeffect "rareItem.wav",0;
					else	getitem  .@itms[.@x], .@qnts[.@x];
                  				soundeffect "rareItem.wav",0;
				}

This is the error:
 

(06/13/2018 15:45:10) [ Error ] : 
script error on npc/custom/DailyReward_v2.txt line 147
    parse_line: expect command, missing function name or calling undeclared function
   142 : 			if(checkweight2(.@itms,.@qnts)){
   143 : 				for(.@x = 0; .@x < .@y; .@x++){
   144 : 					if(.Mode & 128)
   145 : 						getitembound  .@itms[.@x], .@qnts[.@x], .Bound_Mode;
   146 : 						soundeffect "rareItem.wav",0;
*  147 : 					'e'lse	getitem  .@itms[.@x], .@qnts[.@x];
   148 : 							soundeffect "rareItem.wav",0;
   149 : 				}
   150 : 			} else {
   151 : 				message strcharinfo(0),"[Daily Rewards]: You cannot carry the prizes, please use storage and relog.";
   152 : 				continue;

where can I put soundeffect "rareItem.wav",0; in your script for not having errors?

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:  

try adding the { } when using a multi line if()else

ie

					if(.Mode & 128){
 						getitembound  .@itms[.@x], .@qnts[.@x], .Bound_Mode;
 						soundeffect "rareItem.wav",0;
 					} else	getitem  .@itms[.@x], .@qnts[.@x];

 

Edited by Stolao
  • Love 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   37
  • Joined:  02/25/18
  • Last Seen:  

Thanks Stolao, as always you are an exquisite and kind person! ?

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:  

Made a short Video about the script
https://youtu.be/8sLt5nuv1Ek

  • Love 1
  • MVP 1
Link to comment
Share on other sites

  • 4 weeks later...

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

He tells me Reward is available but he does not give it to me automatically. Or should I add some npc to go claim the prize?

I have active revision by ip and by mac last unique id.

I have gepard shield

 

=(

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 9/9/2018 at 1:36 AM, Xiao said:

He tells me Reward is available but he does not give it to me automatically. Or should I add some npc to go claim the prize?

I have active revision by ip and by mac last unique id.

I have gepard shield

 

=(

If you have a wait you have to claim reward via commands, or giving the NPC a physical location to talk to.

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   3
  • Joined:  12/10/18
  • Last Seen:  

I was just testing your script on my test server and every time i log into the server i get the next days reward. It also happens when i use the @ commands it will continue to give the next days reward.  I didn't modify the script in any way.  Does this happen to anybody else?

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  202
  • Reputation:   2
  • Joined:  07/09/12
  • Last Seen:  

On 12/20/2018 at 2:16 AM, crossworld said:

I was just testing your script on my test server and every time i log into the server i get the next days reward. It also happens when i use the @ commands it will continue to give the next days reward.  I didn't modify the script in any way.  Does this happen to anybody else?

I also experience that. Maybe Stalao can help us.

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.02
  • Content Count:  115
  • Reputation:   7
  • Joined:  05/09/19
  • Last Seen:  

Daily Login Reward

 

 

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  110
  • Reputation:   56
  • Joined:  05/29/18
  • Last Seen:  

Anyone have got this error too? a bit weird cant get this script working lol

image.thumb.png.b6c7485cc271240d647d9639524933b9.png
image.thumb.png.b7d8bfda9dfc48aba1d8b60ba875af15.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

@Stolao Hi sir, can u help me , how to make this script like every 10 days only ? and how to put npc on this script ? i found this script that has npc, but the npc are not showing, but the script are working fine

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

On 11/3/2019 at 10:17 PM, Katakuri said:

Anyone have got this error too? a bit weird cant get this script working lol

image.thumb.png.b6c7485cc271240d647d9639524933b9.png
image.thumb.png.b7d8bfda9dfc48aba1d8b60ba875af15.png

"0,0,0,0,12281,1",

Change

"0,0,0,0,12281,1";

 

Edited by Bringer
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

1 hour ago, Takuyakii said:

@Stolao Hi sir, can u help me , how to make this script like every 10 days only ? and how to put npc on this script ? i found this script that has npc, but the npc are not showing, but the script are working fine

	setarray .Rewards$[1],
		"1000",				// Day 1: 1000 Zeny
		"0,0,0,0,501,5",		// Day 2: 5 Red Potion
		"0,0,0,0,506,5",		// Day 3: 5 Green Potion
		"2000",				// Day 4: 2000 Zeny
		"2000",				// Day 5: 2000 Zeny
		"0,0,0,0,502,5",		// Day 6: 5 Orange Potion
		"0,0,0,0,12208,1",		// Day 7: 1 Battle Manual
		"2500",				// Day 8: 2500 Zeny
		"2500",				// Day 8: 2500 Zeny
		"2500",				// Day 9: 2500 Zeny
		"0,0,0,0,503,5";		// Day 10: 5 White Potion

NPC Location https://github.com/Stolao/Npc_Release/blob/master/Daily_Reward/DailyReward_v2.txt#L47

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

22 minutes ago, Bringer said:

	setarray .Rewards$[1],
		"1000",				// Day 1: 1000 Zeny
		"0,0,0,0,501,5",		// Day 2: 5 Red Potion
		"0,0,0,0,506,5",		// Day 3: 5 Green Potion
		"2000",				// Day 4: 2000 Zeny
		"2000",				// Day 5: 2000 Zeny
		"0,0,0,0,502,5",		// Day 6: 5 Orange Potion
		"0,0,0,0,12208,1",		// Day 7: 1 Battle Manual
		"2500",				// Day 8: 2500 Zeny
		"2500",				// Day 8: 2500 Zeny
		"2500",				// Day 9: 2500 Zeny
		"0,0,0,0,503,5";		// Day 10: 5 White Potion

NPC Location https://github.com/Stolao/Npc_Release/blob/master/Daily_Reward/DailyReward_v2.txt#L47

just want to ask why its double Day 8 it's just typo or ?

Edited by Takuyakii
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  737
  • Reputation:   47
  • Joined:  03/12/14
  • Last Seen:  

10 minutes ago, Takuyakii said:

just want to ask why its double Day 8 it's just typo or ?

i think typo

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

On 12/20/2018 at 1:16 AM, crossworld said:

I was just testing your script on my test server and every time i log into the server i get the next days reward. It also happens when i use the @ commands it will continue to give the next days reward.  I didn't modify the script in any way.  Does this happen to anybody else?

hi i got this issue too 

its there any config i missed?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  136
  • Reputation:   3
  • Joined:  06/17/12
  • Last Seen:  

Hi! How to add @rewardlist? Also the time remaining is not working, it is showing as -102757261.

Link to comment
Share on other sites

  • 4 months later...

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  19
  • Reputation:   0
  • Joined:  06/08/20
  • Last Seen:  

How to setup the Mode?

I tried (code below) still gives me item when vending..

    // Basic Settings
    //   1: Item | 2: Points | 4: Zeny | 8: Exp
    //   16: Gain Buffs
    //   32: Show Cutins | 64: Show Next Day Cutin
    //   128: Item Rewards Bound
    //   256: No Rewards for Autotraders 
    //     (a bit value, e.g. 3 = Items & Points from Multi)
       .Mode = 1|32|64|128|256;

Also tried adding the Modes... still giving items when vending

OnInit:
	// Basic Settings
	//   1: Item | 2: Points | 4: Zeny | 8: Exp
	//   16: Gain Buffs
	//   32: Show Cutins | 64: Show Next Day Cutin
	//   128: Item Rewards Bound
	//   256: No Rewards for Autotraders 
	//     (a bit value, e.g. 3 = Items & Points from Multi)
	.Mode = 417;

 

Edited by Version
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   0
  • Joined:  09/26/19
  • Last Seen:  

Sorry for reviving the topic. I have a question please:

How do you reset this for the next month rewards?

EDIT:

Found some issues on the script. The IP and Mac check is buggy. It still gives out the reward regardless of the condition and then it's spammable, people may claim the rewards for the entire month by just clicking the NPC or using the command repeatedly.

Edited by CenturyGothic
Link to comment
Share on other sites

  • 8 months later...

  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   4
  • Joined:  02/09/12
  • Last Seen:  

On 1/4/2013 at 7:58 AM, Stolao said:

< Stolao's Daily Login Reward >

 

Features:

 

  • Full Customization
  • Can Set Number of Hours Between Login Prizes and Losing Consecutive Prizes make Days Weeks or even Months
  • Can Item, Point, Exp or even Buff Rewards
  • Includes Whisper for checking status of and collecting next rewards
  • Includes @Command for checking status of and collecting next rewards next rewards
  • Includes Dynamic Buff Rewards
  • Added Cutin Support

Todo:

  • Suggestions?
  • Optimize?

Changelog:


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

 

Links:

 

Short Video on how it works

  Reveal hidden contents

Buggy can take item multiple times

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