Jump to content

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


Stolao

Recommended Posts


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

Updated 1.2F -> 1.3A

v1.30 Move Checkweight up higher in script, makes more since
v1.31 Removed XP Dispbutton
v1.32 Added Buffer
v1.33 Made Buffer Toggle-able
v1.34 Made Buffer Dynamic
v1.35 Optimized Buffer a little
v1.36 Made Buffer More Dynamic
v1.37 Optimized Buffer a little more
v1.38 Fixed a typo in "seem" was "see"
v1.39 removed "typo" bindatcmds
v1.3A Fixed bug with sc_, didn't support names had to switch to ids


Edit:

Update Again 1.3A -> 1.3C

v1.3B Fixed bug in buff bonus (time and rate)
v1.3C Revamped buffs to take only 1 variable (now can only be 32 buffs)
Edited by Stolao
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:  

Sir.. Im using 1.3C.. But before im using older version.. Right now.. my player got rewards each time their login and stuck at day 1 only.. Im just copy paste your script..

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:  

Mind posting your config?

 

I see what you mean, in my release version i forgot to fix a typo in, getarraysize(.BuffInfo), 1.40 Should fix that

 

Edit:

Update

1.3C -> 1.40

v1.3D Made Day(s) dynamic
v1.3E Removed "Time" reqirement from players to check there Next Login Bonus
v1.3F Added an Else after checkweight
v1.40 Fixed typo in .BuffInfo
Edited by Stolao
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:  

Hmmm? Does we get item everytime we login or not? I try few times.. And get same day 1 reward.. Is this normal? I just update to your latest version...

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:  

Post your config please.

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

Post your config please.

 

//===== EinherjarRO Scripts ================================== 
//= Daily Prize, OnPCLoginEvent
//===== By: ================================================== 
//= Stolao
//===== Current Version: ===================================== 
//= 1.3C
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= A reward system for players who play more frequently
//===== Comments: ============================================
//= N/A
//===== Additional Comments: =================================
//= 1.00 Daily Prize
//= 1.01 Fixed Typo
//= 1.02 Removed unessisary calculation
//= 1.03 Added a sleep2 for delayed reward
//= 1.04 Added dispbottom
//= 1.05 Made Clearer
//= 1.06 Made Disbutton Dynamic
//= 1.07 Added .RewardQnt for configable Reward Quantity
//= 1.08 Fixed Typo
//= 1.09 Seperated .ZMulti into .Mode and .ZMulti
//= 1.0A Changed zeny formula for .Mode 0
//= 1.0B Changed Variable Names, More detailed exsplanations
//= 1.0C Fixed typo again lol
//= 1.0D Added in .PointType$, can now configure zeny into any point types
//= 1.0E Added LoginCount
//= 1.0F Made LoginCount Customisable
//= 1.10 Changed Variable Names, More detailed exsplanations
//= 1.11 Added Wipe feature
//= 1.12 Fixed bug, changed "close;" to "close2;"
//= 1.13 Changed .LogCount to bitwise
//= 1.14 Changed .wipe to a whisper event, per Euphys Suggestion
//= 1.15 Changed Formatting of config, per Euphys Suggestion
//= 1.16 Added Login Reward Countdown, on each login
//= 1.17 Added .PointName$
//= 1.18 Fixed Typo
//= 1.19 Added Checkweight
//= 1.1A Changed query_sql for $LOGINCOUNT to set
//= 1.1B Fixed bug with #DRewardCon, arraysize compersison (Thanks AnnieRuru)
//= 1.1C Added meathod for characters online for attachrid
//= 1.1D Actually Fixed the 1.1B Bug
//= 1.1F Changed zeny formula to remove .ZMulti from mode 0
//= 1.20 Changed .Reminder to .Welcome
//= 1.21 Fixed missing details in Welcome Message
//= 1.22 Changed .Mode to be bitwise
//= 1.23 Added Item enable disable to .Mode
//= 1.24 Changed whisper to allow for player Whispers
//= 1.25 Added "time" Whisper Command for players, Thanks arzzae for suggestion
//= 1.26 Made Whisper commands configable
//= 1.27 Made GmLvl for wipe Configable
//= 1.28 Fixed "Points" bitwise
//= 1.29 Added Exp to .Mode
//= 1.2A Optimized Rewards Script a little
//= 1.2B Bug Fix with Display message on reciving rewards
//= 1.2C Optimize a little more
//= 1.2D Added server xp rate to config
//= 1.2F Re-added checkweight
//= 1.30 Move Checkweight up higher in script, makes more since
//= 1.31 Removed XP Dispbutton
//= 1.32 Added Buffer
//= 1.33 Made BUffer Toggle-able
//= 1.34 Made Buffer Dynamic
//= 1.35 Optimized Buffer a little
//= 1.36 Made Buffer More Dynamic
//= 1.37 Optimized Buffer a little more
//= 1.38 Fixed a typo in "seem" was "see"
//= 1.39 removed "typo" bindatcmds
//= 1.3A Fixed bug with sc_, didn't support names had to switch to ids
//= 1.3B Fixed bug in buff bonus (time and rate)
//= 1.3C Revamped buffs to take only 1 variable (now can only be 32 buffs)
//= 1.3D Made Day(s) dynamic
//= 1.3E Removed "Time" reqirement from players to check there Next Login Bonus
//= 1.3F Added an Else after checkweight
//= 1.40 Fixed typo in .BuffInfo
//===== Contact Ifo: =========================================
//= [Stolao] 
//= Email: [email protected]
//============================================================
-	script	LOGIN	-1,{
OnWhisperGlobal:
	if (@whispervar0$ == .Wipe$){
		if (getgmlevel() < .GmLvl) end;
		query_sql("DELETE FROM `global_reg_value` WHERE `str` = 'LOGINCOUNT'");
		query_sql("DELETE FROM `global_reg_value` WHERE `str` = '#LOGINCOUNT'");
		set $LOGINCOUNT,0;
		set .@self, getcharid(3);
		set .@size, query_sql("select account_id from `char` where online = 1", .@aid);
		for(set .@i,0; .@i<.@size; set .@i,.@i+1) {
			if(attachrid(.@aid[.@i])){
				set LOGINCOUNT,0;
				set #LOGINCOUNT,0;
			}	
		}
	attachrid(.@self);
	dispbottom "Cleared all login count data.";
	}
OnLoginCmnd:
	set .@i,((gettime(7))*365*24)+(gettime(8)*24)+gettime(3);
	if(.@i >= (#LastDailyReward + .MinWait)){ dispbottom "Your login reward is available, please relog to calim your prize~";
	} else { dispbottom "You have "+(#LastDailyReward + .MinWait-.@i)+" hours till your next reward"; }
	end;
OnPCLoginEvent:
	if(.LogCount){
		if(.LogCount & 1) set LOGINCOUNT,LOGINCOUNT+1;
		if(.LogCount & 2) set #LOGINCOUNT,#LOGINCOUNT+1;
		if(.LogCount & 4) set $LOGINCOUNT,$LOGINCOUNT+1;
		if( ( LOGINCOUNT + #LOGINCOUNT + $LOGINCOUNT )%.Welcome[1] == 0 || (LOGINCOUNT + #LOGINCOUNT) < .Welcome[0] ){
			Mes "~Welcome to "+.Servername$+"~";
			Mes .Message$;
			close2;
		}
	}
	if(.DailyPrize){
		if( #DRewardCon == 0 ) set #DRewardCon,1; 
		set .@i,((gettime(7))*365*24)+(gettime(8)*24)+gettime(3);
		set .@g,getarraysize(.Rewards);
		sleep2 .Rest*60000;
		if(.@i >= (#LastDailyReward + .MinWait)){
			if(.@i < #LastDailyReward + .MaxWait){ set #DRewardCon,#DRewardCon+1; 
			 } else { set #DRewardCon,1; }
			if(#DRewardCon*2 > .@g-1){ set .@p,.Rewards[.@g-2]; set .@q,.Rewards[.@g-1];
			} else { set .@p,.Rewards[#DRewardCon*2-2];  set .@q,.Rewards[#DRewardCon*2-1]; }
			if(.Mode&1&&.@p){ if(!checkweight(.@p,.@q)){ dispbottom "You seem to be oveweight, put some stuff away and relog to claim prize";
			} else {
				dispbottom "You have collected your daily reward, for "+#DRewardCon+" day"+((DRewardCon>1)?"s":"")+" in a row.";
				getitem .@p,.@q; dispbottom ""+.@q+" "+getitemname(.@p)+""; }
				if(.Mode&2) set .@A,#DRewardCon*.ZMulti;
				if(.Mode&8) set .@A,.@A+.@q;
				if(.Mode&2||.Mode&8){  setd .PointType$,getd(.PointType$)+.@A; dispbottom ""+.@A+" "+.PointType$+""; }
				if(.Mode&4){ set .@B,#DRewardCon*.XPMulti[0]; set .@C,#DRewardCon*.XPMulti[1]; }
				if(.Mode&16){ set .@B,.@B+.@q; set .@C,.@C+.@q; }
				if(.Mode&4||.Mode&16){ getexp .@B,.@C; dispbottom ""+(.@B*.Sxp/100)+"/"+(.@c*.Sxp/100)+" XP"; }
				if(.Mode&32){
					for(set .@i,0; .@i < getarraysize(.BuffInfo); set .@i,.@i+4){
						if(#DRewardCon % .BuffInfo[.@i+1] == 0) sc_start .BuffInfo[.@i], .BuffInfo[.@i+2]*60000, .BuffInfo[.@i+3];
					}
				}
				set #LastDailyReward,.@i;
			}
		} else { dispbottom "You have "+(#LastDailyReward + .MinWait-.@i)+" hours till your next reward"; }
	}
end;
OnInit:
// -----------------------------------------------------------
//  Login Count & Welcome Message
// -----------------------------------------------------------

	// Login types to track.
	//   1: Character | 2: Account | 4: Server
	// (a bit value, e.g. 5 = character + server)
	set .LogCount,5;

	// Number of logins to display welcome message.
	//  [0]: First x Logins, 0 will never give a message
	//  [1]: Remider message every x Logins (combined server account and character)
	setarray .Welcome,3,250;

	// Server name to display.
	set .Servername$,"Server";

	// Login message
	// * Must have at least 1 Login Count Enabled
	set .Message$,"Before playing, make sure you've read the rules, located in our forum at ^0000FF~TBA~^000000";

// -----------------------------------------------------------
//  Daily Reward
// -----------------------------------------------------------

	//To Enable @ Command '@LoginReward' unslash next lines
	// * Needs extra commands for typos
//	bindatcmd("loginreward"	,"LOGIN::OnLoginCmnd",0,99);

	//Data Wipe Whisper Command
	set .Wipe$,"wipe";

	//GM Level to use Wipe Whisper Command
	//   Keep at 99 for security
	set .GmLvl,99;

	//Daily Prize
	//Toggle
	//   0: Off  | 1: On
	set .DailyPrize,1;

	//Minimum Hours Between Collecting Daily Reward
	//   Day: 22-24
	//   Week: 168
	set .MinWait,22;

	//Hours Before Lose Consecutive Daily Rewar
	//   Day: 48-50
	//   Week: 336
	set .MaxWait,50;

	//Number of mins after logging before collecting prize
	set .Rest,0;

	//Type of Points/Zeny earned 
	//   eg: CASHPOINTS, Zeny, LoginPoints
	set .PointType$,"Zeny";

	//Toggle 
	//   1: Item | 2: "Points" from Multi | 4: Exp from Multi 
	//   8: "Points" from Days with ItemID of 0 |16: Exp from Days with ItemID of 0
	//   32: Gain Buffs Every X Consecutive Days logged in
	// (a bit value, e.g. 3 = Items & Points from Multi)
	set .Mode,1+2+4+8+16+32;

	//Consecutive Day Points Multiplier
	// * If players login longer than the last set
	//   day, they will keep getting a larger Multiplier
	set .ZMulti,100;

	//Consecutive Day Exp Multiplier
	//  [0]: Base
	//  [1]: Job
	// * If players login longer than the last set
	//   day, they will keep getting a larger Multiplier.
	setarray .XPMulti,50,50;

	// Consecutive Days Buff
	// Each buff contains 4 variables (32 Total Max)
	// Type,Days,Time,Rate
	//  *Example: 188,7,45,3
	//  *Every 7th consecutive day logged in Player gains +3 Str for 45 mins
	//  Type is 188, which references which SC_ to use, SC_INCSTR in this case
	//     -For a full list of SC_ visit the db/const.txt <<<<this one missing "/"
	//  Days is days buff is applied, in this case 7, so Days 7,14,21,28....
	//  Time is buff duration is Minuits, in this case 45 mins
	//  Rate is buff strength, in this case player gains 3 Str
	setarray .BuffInfo	,188,7,45,3	// +3 Str for 45 Mins Every 7th Day
				,189,7,45,3	// +3 Agi for 45 Mins Every 7th Day
				,190,7,45,3	// +3 Vit for 45 Mins Every 7th Day
				,191,7,45,3	// +3 Int for 45 Mins Every 7th Day
				,192,7,45,3	// +3 Dex for 45 Mins Every 7th Day
				,193,7,45,3	// +3 Luk for 45 Mins Every 7th Day
				,194,4,45,25	// +25 Hit for 45 Mins Every 4th Day
				,196,4,45,25	// +25 Flee for 45 Mins Every 4th Day
				,198,10,60,10	// +10% Hp for 60 Mins Every 10th Day
				,199,10,60,10	// +10% Sp for 60 Mins Every 10th Day
				,200,13,30,10	// +10% Atk for 30 Mins Every 10th Day
				,201,13,30,10	// +10% Matk for 30 Mins Every 10th Day
				,257,9,120,50	// +50% Exp for 120 Mins Every 9th Day
				,258,9,120,50;	// +50% Item Drops for 120 Mins Every 9th Day

	// Daily Prize items (max 64 days):
	//   <itemID>,<amount>, // Day 1
	//   <itemID>,<amount>, // Day 2
	//   ...;
	// * If players login longer than the last set
	//   day, they will keep getting the last prize.
	setarray .Rewards[0],
		512,1,		// Day 1
		513,2,		// Day 2
		514,3,		// Day 3
		0,1000;		// Day 4
end;
}
  • Upvote 1
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:  

Hmm your config seems right let me run some more test real fast ill reply again in next 30 mins or so

 

Edit i figured it out, will be posting a fix momentarily

 

Edit 2:

Thank you rakuzas + rep

Update 1.40 -> 1.42

v1.41 Reorganized rewards script
v1.42 changed .@i -> .@x in Option & 32 (bug report by rakuzas)
Edited by Stolao
  • Upvote 1
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:  

Hmm your config seems right let me run some more test real fast ill reply again in next 30 mins or so

 

Edit i figured it out, will be posting a fix momentarily

 

Edit 2:

Thank you rakuzas + rep

Update 1.40 -> 1.42

v1.41 Reorganized rewards script
v1.42 changed .@i -> .@x in Option & 32 (bug report by rakuzas)

 

line 231

 

You missing 1 "/"

 

if we edit it manually its working..

 

And i test it.. Now its fully working.. no more same item each time we login.. Now have time limit..

 

 

EDIT : 

 

Does this rewards per account or per character? Im confuse.. Thanks..

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:  

line 231

You missing 1 "/"

Ill do an unnoted hotfix on this

Does this rewards per account or per character? Im confuse.. Thanks..

Its account based Edited by Stolao
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:  

Update

v1.42 -> 1.48

v1.43 Removed Login Count related scripts, as its not really part of rewards system
v1.44 Made @loginreward do whole script, instead of relogging,
v1.45 Removed Disable/Enable for whole script (just remove npc)
v1.46 Changed A few Description, for easier understanding
v1.47 Move sleep2 up to prevent possible multi rewards bug
v1.48 Deleted unnecessary line "if( #DRewardCon == 0 ) set #DRewardCon,1;"

Edit:

@ Other scripters think you can optimize/format this script any better?

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Hmm... I'll take a look after I get home

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:  

/hmm

 

Sir?

 

Do you remove that notice function? Why you not make people to choose to disable/enable that functions? I think its nice to have it as reminder because sometimes people not notice or take alert what we post at motd.. Im request to have that function again.. /sob

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:  

Hmm... I'll take a look after I get home

Coolio

 

/hmm

 

Sir?

 

Do you remove that notice function? Why you not make people to choose to disable/enable that functions? I think its nice to have it as reminder because sometimes people not notice or take alert what we post at motd.. Im request to have that function again.. /sob

Its easy enough to add back manually, would you need help doing that?

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

So, I found that this script still has a limitation on the .Rewards because of the 128 variables limit of an array. And that's a bad things in my opinion, because I know that some players are loyal to their server where they play, and some of them even login every single day..!

By doing this, they will get lots of surprises when they login everyday, so they will try to not break the login chain! ;)

I'm not too good at explaining things, my code will tell the rest :P

//===== EinherjarRO Scripts ================================== 

//= Daily Prize, OnPCLoginEvent

//===== By: ==================================================

//= Stolao

//===== Current Version: =====================================

//= 1.48

//===== Compatible With: =====================================

//= rAthena SVN

//===== Description: =========================================

//= A reward system for players who play more frequently

//===== Comments: ============================================

//= Todo:

//= Revamp Exp and Points System, its kinda meh

//===== Additional Comments: =================================

//= 1.00 Daily Prize

//= 1.01 Fixed Typo

//= 1.02 Removed unessisary calculation

//= 1.03 Added a sleep2 for delayed reward

//= 1.04 Added dispbottom

//= 1.05 Made Clearer

//= 1.06 Made Disbutton Dynamic

//= 1.07 Added .RewardQnt for configable Reward Quantity

//= 1.08 Fixed Typo

//= 1.09 Seperated .ZMulti into .Mode and .ZMulti

//= 1.0A Changed zeny formula for .Mode 0

//= 1.0B Changed Variable Names, More detailed exsplanations

//= 1.0C Fixed typo again lol

//= 1.0D Added in .PointType$, can now configure zeny into any point types

//= 1.0E Added LoginCount

//= 1.0F Made LoginCount Customisable

//= 1.10 Changed Variable Names, More detailed exsplanations

//= 1.11 Added Wipe feature

//= 1.12 Fixed bug, changed "close;" to "close2;"

//= 1.13 Changed .LogCount to bitwise

//= 1.14 Changed .wipe to a whisper event, per Euphys Suggestion

//= 1.15 Changed Formatting of config, per Euphys Suggestion

//= 1.16 Added Login Reward Countdown, on each login

//= 1.17 Added .PointName$

//= 1.18 Fixed Typo

//= 1.19 Added Checkweight

//= 1.1A Changed query_sql for $LOGINCOUNT to set

//= 1.1B Fixed bug with #DRewardCon, arraysize compersison (Thanks AnnieRuru)

//= 1.1C Added meathod for characters online for attachrid

//= 1.1D Actually Fixed the 1.1B Bug

//= 1.1F Changed zeny formula to remove .ZMulti from mode 0

//= 1.20 Changed .Reminder to .Welcome

//= 1.21 Fixed missing details in Welcome Message

//= 1.22 Changed .Mode to be bitwise

//= 1.23 Added Item enable disable to .Mode

//= 1.24 Changed whisper to allow for player Whispers

//= 1.25 Added "time" Whisper Command for players, Thanks arzzae for suggestion

//= 1.26 Made Whisper commands configable

//= 1.27 Made GmLvl for wipe Configable

//= 1.28 Fixed "Points" bitwise

//= 1.29 Added Exp to .Mode

//= 1.2A Optimized Rewards Script a little

//= 1.2B Bug Fix with Display message on reciving rewards

//= 1.2C Optimize a little more

//= 1.2D Added server xp rate to config

//= 1.2F Re-added checkweight

//= 1.30 Move Checkweight up higher in script, makes more since

//= 1.31 Removed XP Dispbutton

//= 1.32 Added Buffer

//= 1.33 Made BUffer Toggle-able

//= 1.34 Made Buffer Dynamic

//= 1.35 Optimized Buffer a little

//= 1.36 Made Buffer More Dynamic

//= 1.37 Optimized Buffer a little more

//= 1.38 Fixed a typo in "seem" was "see"

//= 1.39 removed "typo" bindatcmds

//= 1.3A Fixed bug with sc_, didnt support names had to switch to ids

//= 1.3B Fixed bug in buff bonus (time and rate)

//= 1.3C Revamped buffs to take only 1 variable (now can only be 32 buffs)

//= 1.3D Made Day(s) dynamic

//= 1.3E Removed "Time" reqirement from players to check there Next Login Bonus

//= 1.3F Added an Else after checkweight

//= 1.40 Fixed typo in .BuffInfo

//= 1.41 Reorganized rewards script

//= 1.42 changed .@i -> .@x in Option & 32 (bug report by rakuzas)

//= 1.43 Removed Login Count related scripts, as its not really part of rewards system

//= 1.44 Made @loginreward do whole script, instead of relogging,

//= 1.45 Removed Disable/Enable for whole script (just remove npc)

//= 1.46 Changed A few Description, for easier understanding

//= 1.47 Move sleep2 up to prevent possible multi rewards bug

//= 1.48 Deleted unnecessary line "if( #DRewardCon == 0 ) set #DRewardCon,1;"

//===== Contact Ifo: =========================================

//= [Stolao]

//= Email: [email protected]

//============================================================

- script LOGIN -1,{

OnWhisperGlobal:

OnLoginCmnd:

OnPCLoginEvent:

sleep2 1000+.Rest*60000;

set .@i,(gettime(7)*365*24)+(gettime(8)*24)+gettime(3);

if(.@i >= (#LastDailyReward + .MinWait)){

if(.@i < #LastDailyReward + .MaxWait){ set #DRewardCon,#DRewardCon+1;

} else { set #DRewardCon,1; }

set .@j,(#DRewardCon%64);

set .@p,getd(".Rewards"+.@j+"["+((#DRewardCon-(.@j*64))-2)+"]"); set .@q,getd(".Rewards"+.@j+"["+((#DRewardCon-(.@j*64))-1)+"]");

if(#DRewardCon>.Max) { set .@p,.MaxLogin[0]; set .@q,.MaxLogin[1]; }

if(.Mode&1&&.@p){

if(!checkweight(.@p,.@q)){ dispbottom "You seem to be overweight, put some stuff away and relog to claim your prize!"; end;

} else { getitem .@p,.@q; dispbottom ""+.@q+" "+getitemname(.@p)+""; }

}

if(.Mode&2) set .@A,#DRewardCon*.ZMulti;

if(.Mode&8) set .@A,.@A+.@q;

if(.Mode&2||.Mode&8){ setd .PointType$,getd(.PointType$)+.@A; dispbottom ""+.@A+" "+.PointType$+""; }

if(.Mode&4){ set .@B,#DRewardCon*.XPMulti[0]; set .@C,#DRewardCon*.XPMulti[1]; }

if(.Mode&16){ set .@B,.@B+.@q; set .@C,.@C+.@q; }

if(.Mode&4||.Mode&16){ getexp .@B,.@C; }

if(.Mode&32){

for(set .@x,0; .@x < getarraysize(.BuffInfo); set .@x,.@x+4){

if(#DRewardCon % .BuffInfo[.@x+1] == 0) sc_start .BuffInfo[.@x], .BuffInfo[.@x+2]*60000, .BuffInfo[.@x+3];

}

}

dispbottom "You have collected your daily reward, for "+#DRewardCon+" day"+((DRewardCon>1)?"s":"")+" in a row.";

set #LastDailyReward,.@i;

} else { dispbottom "You have "+(#LastDailyReward + .MinWait-.@i)+" hours till your next reward."; }

end;

OnInit:

// -----------------------------------------------------------

// Daily Reward

// -----------------------------------------------------------

//To Enable @ Command '@LoginReward' unslash next lines

// * Needs extra commands for typos

// bindatcmd("loginreward" ,"LOGIN::OnLoginCmnd",0,99);

//Minimum Hours Between Collecting Daily Reward

// Day: 22-24

// Week: 168

set .MinWait,22;

//Hours Before Lose Consecutive Daily Rewar

// Day: 48-50

// Week: 336

set .MaxWait,50;

//Number of mins after logging before collecting prize

set .Rest,0;

//Type of Points/Zeny earned

// eg: CASHPOINTS, Zeny, LoginPoints

set .PointType$,"Zeny";

//Toggle

// 1: Item | 2: "Points" from Multi | 4: Exp from Multi

// 8: "Points" from Days with ItemID of 0 |16: Exp from Days with ItemID of 0

// 32: Gain Buffs Every X Consecutive Days logged in

// (a bit value, e.g. 3 = Items & Points from Multi)

set .Mode,1+2+4+8+16+32;

//Consecutive Day Points Multiplier

// * If players login longer than the last set day,

// they will keep getting a larger Multiplier

set .ZMulti,100;

//Maximum Consecutive Days

// * If players login more than this value in a row, they will get the 'MaxLogin' prize.

set .Max,365;

//Consecutive Day Exp Multiplier

// ,;

// * If players login longer than the last set day,

// they will keep getting a larger Multiplier.

setarray .XPMulti,10,10;

// Consecutive Days Buff

// Each buff contains 4 variables (32 Total Max)

// ,,,, // Buff 1

// ,,,, // Buff 2

// ...;

//

// Example: 188,7,45,3

// -Every 7th consecutive day logged in Player gains +3 Str for 45 mins

//

// Type is 188, which references which SC_ to use, SC_INCSTR in this example

// -For a full list of SC_ visit the db/const.txt

// Days is days buff is applied, in this example 7, so every 7th day, 14,21,28....

// Duration is buff duration is Minuits, in this example 45 mins

// Rate is buff strength, in this example player gains 3 Str

setarray .BuffInfo ,188,7,45,3 // +3 Str for 45 Mins Every 7th Day

,189,7,45,3 // +3 Agi for 45 Mins Every 7th Day

,190,7,45,3 // +3 Vit for 45 Mins Every 7th Day

,191,7,45,3 // +3 Int for 45 Mins Every 7th Day

,192,7,45,3 // +3 Dex for 45 Mins Every 7th Day

,193,7,45,3 // +3 Luk for 45 Mins Every 7th Day

,194,4,45,25 // +25 Hit for 45 Mins Every 4th Day

,196,4,45,25 // +25 Flee for 45 Mins Every 4th Day

,198,10,60,10 // +10% Hp for 60 Mins Every 10th Day

,199,10,60,10 // +10% Sp for 60 Mins Every 10th Day

,200,13,30,10 // +10% Atk for 30 Mins Every 10th Day

,201,13,30,10 // +10% Matk for 30 Mins Every 10th Day

,257,9,120,50 // +50% Exp for 120 Mins Every 9th Day

,258,9,120,50; // +50% Item Drops for 120 Mins Every 9th Day

// Daily Prize items (max 64 days):

// ,, // Day 1

// ,, // Day 2

// ...;

// * You need to specify all the arrays below, up to 64 pairs for 1 group.

setarray .Rewards0[0],

512,1, // Day 1

513,2, // Day 2

514,3, // Day 3

0,1000; // Day 4

setarray .Rewards1[0],

512,1, // Day 65

513,2, // Day 66

514,3, // Day 67

0,1000; // Day 68

setarray .Rewards2[0],

512,1, // Day 129

513,2, // Day 130

514,3, // Day 131

0,1000; // Day 132

setarray .Rewards3[0],

512,1, // Day 193

513,2, // Day 194

514,3, // Day 195

0,1000; // Day 196

setarray .Rewards4[0],

512,1, // Day 257

513,2, // Day 258

514,3, // Day 259

0,1000; // Day 260

setarray .Rewards5[0],

512,1, // Day 321

513,2, // Day 322

514,3, // Day 323

0,1000; // Day 324

setarray .MaxLogin[0],512,999;

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

So, I found that this script still has a limitation on the .Rewards because of the 128 variables limit of an array. And that's a bad things in my opinion, because I know that some players are loyal to their server where they play, and some of them even login every single day..! By doing this, they will get lots of surprises when they login everyday, so they will try to not break the login chain! ;) I'm not too good at explaining things, my code will tell the rest :P

//===== EinherjarRO Scripts ================================== 
//= Daily Prize, OnPCLoginEvent
//===== By: ================================================== 
//= Stolao
//===== Current Version: ===================================== 
//= 1.48
//===== Compatible With: ===================================== 
//= rAthena SVN
//===== Description: ========================================= 
//= A reward system for players who play more frequently
//===== Comments: ============================================
//= Todo:
//= Revamp Exp and Points System, its kinda meh
//===== Additional Comments: =================================
//= 1.00 Daily Prize
//= 1.01 Fixed Typo
//= 1.02 Removed unessisary calculation
//= 1.03 Added a sleep2 for delayed reward
//= 1.04 Added dispbottom
//= 1.05 Made Clearer
//= 1.06 Made Disbutton Dynamic
//= 1.07 Added .RewardQnt for configable Reward Quantity
//= 1.08 Fixed Typo
//= 1.09 Seperated .ZMulti into .Mode and .ZMulti
//= 1.0A Changed zeny formula for .Mode 0
//= 1.0B Changed Variable Names, More detailed exsplanations
//= 1.0C Fixed typo again lol
//= 1.0D Added in .PointType$, can now configure zeny into any point types
//= 1.0E Added LoginCount
//= 1.0F Made LoginCount Customisable
//= 1.10 Changed Variable Names, More detailed exsplanations
//= 1.11 Added Wipe feature
//= 1.12 Fixed bug, changed "close;" to "close2;"
//= 1.13 Changed .LogCount to bitwise
//= 1.14 Changed .wipe to a whisper event, per Euphys Suggestion
//= 1.15 Changed Formatting of config, per Euphys Suggestion
//= 1.16 Added Login Reward Countdown, on each login
//= 1.17 Added .PointName$
//= 1.18 Fixed Typo
//= 1.19 Added Checkweight
//= 1.1A Changed query_sql for $LOGINCOUNT to set
//= 1.1B Fixed bug with #DRewardCon, arraysize compersison (Thanks AnnieRuru)
//= 1.1C Added meathod for characters online for attachrid
//= 1.1D Actually Fixed the 1.1B Bug
//= 1.1F Changed zeny formula to remove .ZMulti from mode 0
//= 1.20 Changed .Reminder to .Welcome
//= 1.21 Fixed missing details in Welcome Message
//= 1.22 Changed .Mode to be bitwise
//= 1.23 Added Item enable disable to .Mode
//= 1.24 Changed whisper to allow for player Whispers
//= 1.25 Added "time" Whisper Command for players, Thanks arzzae for suggestion
//= 1.26 Made Whisper commands configable
//= 1.27 Made GmLvl for wipe Configable
//= 1.28 Fixed "Points" bitwise
//= 1.29 Added Exp to .Mode
//= 1.2A Optimized Rewards Script a little
//= 1.2B Bug Fix with Display message on reciving rewards
//= 1.2C Optimize a little more
//= 1.2D Added server xp rate to config
//= 1.2F Re-added checkweight
//= 1.30 Move Checkweight up higher in script, makes more since
//= 1.31 Removed XP Dispbutton
//= 1.32 Added Buffer
//= 1.33 Made BUffer Toggle-able
//= 1.34 Made Buffer Dynamic
//= 1.35 Optimized Buffer a little
//= 1.36 Made Buffer More Dynamic
//= 1.37 Optimized Buffer a little more
//= 1.38 Fixed a typo in "seem" was "see"
//= 1.39 removed "typo" bindatcmds
//= 1.3A Fixed bug with sc_, didnt support names had to switch to ids
//= 1.3B Fixed bug in buff bonus (time and rate)
//= 1.3C Revamped buffs to take only 1 variable (now can only be 32 buffs)
//= 1.3D Made Day(s) dynamic
//= 1.3E Removed "Time" reqirement from players to check there Next Login Bonus
//= 1.3F Added an Else after checkweight
//= 1.40 Fixed typo in .BuffInfo
//= 1.41 Reorganized rewards script
//= 1.42 changed .@i -> .@x in Option & 32 (bug report by rakuzas)
//= 1.43 Removed Login Count related scripts, as its not really part of rewards system
//= 1.44 Made @loginreward do whole script, instead of relogging,
//= 1.45 Removed Disable/Enable for whole script (just remove npc)
//= 1.46 Changed A few Description, for easier understanding
//= 1.47 Move sleep2 up to prevent possible multi rewards bug
//= 1.48 Deleted unnecessary line "if( #DRewardCon == 0 ) set #DRewardCon,1;"
//===== Contact Ifo: =========================================
//= [Stolao] 
//= Email: [email protected]
//============================================================
-	script	LOGIN	-1,{
OnWhisperGlobal:
OnLoginCmnd:
OnPCLoginEvent:
	sleep2 1000+.Rest*60000;
	set .@i,(gettime(7)*365*24)+(gettime(8)*24)+gettime(3);
	if(.@i >= (#LastDailyReward + .MinWait)){
		if(.@i < #LastDailyReward + .MaxWait){ set #DRewardCon,#DRewardCon+1;
		 } else { set #DRewardCon,1; }
		set .@j,(#DRewardCon%64);
		set .@p,getd(".Rewards"+.@j+"["+((#DRewardCon-(.@j*64))-2)+"]"); set .@q,getd(".Rewards"+.@j+"["+((#DRewardCon-(.@j*64))-1)+"]");
		if(#DRewardCon>.Max) { set .@p,.MaxLogin[0]; set .@q,.MaxLogin[1]; }
		if(.Mode&1&&.@p){ 
			if(!checkweight(.@p,.@q)){ dispbottom "You seem to be overweight, put some stuff away and relog to claim your prize!"; end;
			} else { getitem .@p,.@q; dispbottom ""+.@q+" "+getitemname(.@p)+""; }
		}
		if(.Mode&2) set .@A,#DRewardCon*.ZMulti;
		if(.Mode&8) set .@A,.@A+.@q;
		if(.Mode&2||.Mode&8){  setd .PointType$,getd(.PointType$)+.@A; dispbottom ""+.@A+" "+.PointType$+""; }
		if(.Mode&4){ set .@B,#DRewardCon*.XPMulti[0]; set .@C,#DRewardCon*.XPMulti[1]; }
		if(.Mode&16){ set .@B,.@B+.@q; set .@C,.@C+.@q; }
		if(.Mode&4||.Mode&16){ getexp .@B,.@C; }
		if(.Mode&32){
			for(set .@x,0; .@x < getarraysize(.BuffInfo); set .@x,.@x+4){
				if(#DRewardCon % .BuffInfo[.@x+1] == 0) sc_start .BuffInfo[.@x], .BuffInfo[.@x+2]*60000, .BuffInfo[.@x+3];
			}
		}
		dispbottom "You have collected your daily reward, for "+#DRewardCon+" day"+((DRewardCon>1)?"s":"")+" in a row.";
		set #LastDailyReward,.@i;
	} else { dispbottom "You have "+(#LastDailyReward + .MinWait-.@i)+" hours till your next reward."; }
end;
OnInit:
// -----------------------------------------------------------
//  Daily Reward
// -----------------------------------------------------------

	//To Enable @ Command '@LoginReward' unslash next lines
	// * Needs extra commands for typos
//	bindatcmd("loginreward"	,"LOGIN::OnLoginCmnd",0,99);

	//Minimum Hours Between Collecting Daily Reward
	//   Day: 22-24
	//   Week: 168
	set .MinWait,22;

	//Hours Before Lose Consecutive Daily Rewar
	//   Day: 48-50
	//   Week: 336
	set .MaxWait,50;

	//Number of mins after logging before collecting prize
	set .Rest,0;

	//Type of Points/Zeny earned 
	//   eg: CASHPOINTS, Zeny, LoginPoints
	set .PointType$,"Zeny";

	//Toggle 
	//   1: Item | 2: "Points" from Multi | 4: Exp from Multi 
	//   8: "Points" from Days with ItemID of 0 |16: Exp from Days with ItemID of 0
	//   32: Gain Buffs Every X Consecutive Days logged in
	// (a bit value, e.g. 3 = Items & Points from Multi)
	set .Mode,1+2+4+8+16+32;

	//Consecutive Day Points Multiplier
	// * If players login longer than the last set day,
	//   they will keep getting a larger Multiplier
	set .ZMulti,100;
	
	//Maximum Consecutive Days
	// * If players login more than this value in a row, they will get the 'MaxLogin' prize.
	set .Max,365;

	//Consecutive Day Exp Multiplier
	//  ,;
	// * If players login longer than the last set day,
	//   they will keep getting a larger Multiplier.
	setarray .XPMulti,10,10;

	// Consecutive Days Buff
	// Each buff contains 4 variables (32 Total Max)
	// ,,,, // Buff 1
	// ,,,, // Buff 2
	//   ...;
	//
	//  Example: 188,7,45,3
	//    -Every 7th consecutive day logged in Player gains +3 Str for 45 mins
	//
	//  Type is 188, which references which SC_ to use, SC_INCSTR in this example
	//     -For a full list of SC_ visit the db/const.txt
	//  Days is days buff is applied, in this example 7, so every 7th day, 14,21,28....
	//  Duration is buff duration is Minuits, in this example 45 mins
	//  Rate is buff strength, in this example player gains 3 Str
	setarray .BuffInfo	,188,7,45,3	// +3 Str for 45 Mins Every 7th Day
				,189,7,45,3	// +3 Agi for 45 Mins Every 7th Day
				,190,7,45,3	// +3 Vit for 45 Mins Every 7th Day
				,191,7,45,3	// +3 Int for 45 Mins Every 7th Day
				,192,7,45,3	// +3 Dex for 45 Mins Every 7th Day
				,193,7,45,3	// +3 Luk for 45 Mins Every 7th Day
				,194,4,45,25	// +25 Hit for 45 Mins Every 4th Day
				,196,4,45,25	// +25 Flee for 45 Mins Every 4th Day
				,198,10,60,10	// +10% Hp for 60 Mins Every 10th Day
				,199,10,60,10	// +10% Sp for 60 Mins Every 10th Day
				,200,13,30,10	// +10% Atk for 30 Mins Every 10th Day
				,201,13,30,10	// +10% Matk for 30 Mins Every 10th Day
				,257,9,120,50	// +50% Exp for 120 Mins Every 9th Day
				,258,9,120,50;	// +50% Item Drops for 120 Mins Every 9th Day

	// Daily Prize items (max 64 days):
	//   ,, // Day 1
	//   ,, // Day 2
	//   ...;
	// * You need to specify all the arrays below, up to 64 pairs for 1 group.
	setarray .Rewards0[0],
		512,1,		// Day 1
		513,2,		// Day 2
		514,3,		// Day 3
		0,1000;		// Day 4
	setarray .Rewards1[0],
		512,1,		// Day 65
		513,2,		// Day 66
		514,3,		// Day 67
		0,1000;		// Day 68
	setarray .Rewards2[0],
		512,1,		// Day 129
		513,2,		// Day 130
		514,3,		// Day 131
		0,1000;		// Day 132
	setarray .Rewards3[0],
		512,1,		// Day 193
		513,2,		// Day 194
		514,3,		// Day 195
		0,1000;		// Day 196
	setarray .Rewards4[0],
		512,1,		// Day 257
		513,2,		// Day 258
		514,3,		// Day 259
		0,1000;		// Day 260
	setarray .Rewards5[0],
		512,1,		// Day 321
		513,2,		// Day 322
		514,3,		// Day 323
		0,1000;		// Day 324
	setarray .MaxLogin[0],512,999;
end;
}

 

That would be good increasing the capacity of the rewards but a little bit too much for configuration since you need to input all the arrays with values.

I have a suggestion, can we optimize the rewards like this:

Day 1:(Itemid,amount,itemid,amount){itemid,amount} making the daily login rewards not just limited to 1 item xD

Day 2:(Itemid,amount,itemid,amount){itemid,amount}

and so on..

 

if day 1 is the only thing specified, it will be the same reward for the next day, but will be multiplied depending on what we'll be configuring:

Reward Multiplier: 1,2,3 and so on...

 

If day 1 is the only specified multiplier, then it would be one used for all the time, xD

Hope it can be done like that xD

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:  

Ill improve on your post further when I get home

Also wako I might be able to get that effect

 

 

Edit:

Ok I'm going to convert the script to use the implode function combined with string variables, with will increase the days to 128 (if a gm wants high then they can manually add your idea nana), as well as make the reward easier to format with more items even~

 

will update once i finish changing these functions



Update 1.48 -> 1.51

v1.49 Fixed Typo "DRewardCon" -> "#DRewardCon"
v1.4A Redid spacing for easier reading
v1.4B Shortend Default Buffs
v1.4C Removed Points and XP Mulitpliers
v1.4D .Rewards in now .Rewards$, reformatting it as well
v1.4E Added explode functions
v1.4F Move .Pointname$ into .Rewards$ new formatting
v1.50 Removed check weight for now, will add again later
v1.51 Changed set .@g formula and move lower into script
Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

@@Stolao

 

    //Minimum Hours Between Collecting Daily Reward
    //   Day: 22-24
    //   Week: 168
    set .MinWait,22;

 

What does this line really means? -> 22 hours before the next daily login reward?

 

if it's what does it really mean, I have a proposal to change it into like this:
 

    //Minimum Hours Between Collecting Daily Reward
    // 24 hours = 24 x 3600
    set .MinWait,86400;

 

and change this :

set .@i, (gettime(7) * 365 * 24) + (gettime(8) * 24) + gettime(3);
    if(.@i >= (#LastDailyReward + .MinWait))

 

into this:

 

set .@i,gettimetick(2) + .MinWait; //24 hours.
        if(#LastDailyReward < gettimetick(2))

 

in this way, we can incorporate this script:

 

set .@last,#LastDailyReward - gettimetick(2);
set .@hour, .@last % ( 24 * 3600 ) / 3600;
set .@min,  .@last % ( 24 * 3600 ) % 3600 / 60;
set .@sec,  .@last % ( 24 * 3600 ) % 3600 % 60;

 

and we can show the message this way:

 

dispbottom "Next daily reward will be in : "+.@hour+":"+.@min+":"+.@sec+".";
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:  

I don't like using gettimetick, because its loop every ~50 days, i ran into a weird bugs with an old script of mine because of it,

 so ill stick with the method im using, but if you prefer i can add mins into it,



@@Stolao



//Minimum Hours Between Collecting Daily Reward
// Day: 22-24
// Week: 168
set .MinWait,22;


What does this line really means? -> 22 hours before the next daily login reward?

if it's what does it really mean, I have a proposal to change it into like this:

and change this :


set .@i, (gettime(7) * 365 * 24) + (gettime(8) * 24) + gettime(3);
if(.@i >= (#LastDailyReward + .MinWait))


into this:


in this way, we can incorporate this script:


set .@last,#LastDailyReward - gettimetick(2);
set .@hour, .@last % ( 24 * 3600 ) / 3600;
set .@min, .@last % ( 24 * 3600 ) % 3600 / 60;
set .@sec, .@last % ( 24 * 3600 ) % 3600 % 60;


and we can show the message this way:

 

dispbottom "Next daily reward will be in : "+.@hour+":"+.@min+":"+.@sec+".";

Edited by Stolao
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

It's ok if your style will still be implemented, xD

 

so if you may add minutes and seconds into it, that would be fine, xD

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:  

It's ok if your style will still be implemented, xD

 

so if you may add minutes and seconds into it, that would be fine, xD

 

Ill add minutes, in its format i cant add seconds as it would put the #LastDailyReward at over 63 billion, and that's beyond the limits of the game

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  292
  • Reputation:   17
  • Joined:  12/12/11
  • Last Seen:  

@Stolao

 

Using 1.51, i'm getting this error:

 

[Error]: script:op_2: invalid data for operator C_LAND
[Debug]: Data: number value=1
[Debug]: Data: string value="513:2"
[Debug]: Source (NPC): LOGIN (invisible/not on a map)

 

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:  

Update

 

1.51 -> 1.58

v1.52 Replace all disbottom -> message
v1.53 Changed Format to Include minuets instead of just hours
v1.54 Made Time till next rewards display dynamic
v1.55 Changed a forgotten  .PointType$ -> getd(.@TT$[1])
v1.56 changed .@XT -> .@XT$
v1.57 Added Atoi where nessisary
v1.58 Fixed a swapped .@x and .@x+1

 

 

@wakoko, 1.58 should have fixed your problem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  01/12/12
  • Last Seen:  

i love your idea and the script /no1

 

i'm sorry but one question for you, do you even compile and tried your own script?

        set .@days,(#LastDailyReward + .MinWait - .@i)/60/24
        set .@hours,((#LastDailyReward + .MinWait - .@i)/60)%24
        set .@mins,(#LastDailyReward + .MinWait - .@i)%60

it missing a semicolon xD

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:  

Quick answer is no, I run a different version on my own server, that I edit to post here lol sorry.

i love your idea and the script /no1

i'm sorry but one question for you, do you even compile and tried your own script?

        set .@days,(#LastDailyReward + .MinWait - .@i)/60/24
        set .@hours,((#LastDailyReward + .MinWait - .@i)/60)%24
        set .@mins,(#LastDailyReward + .MinWait - .@i)%60
it missing a semicolon xD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   1
  • Joined:  03/06/12
  • Last Seen:  

Im still getting this error with 1.58

 

[Error]: script:op_2: invalid data for operator C_LAND
[Debug]: Data: number value=1
[Debug]: Data: string value="513:2"
[Debug]: Source (NPC): LOGIN (invisible/not on a map)
Edited by windston
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...