Jump to content
  • 0

Question

//===== eAthena Script =======================================
//= Cash Points Giver (Login)
//===== By: ==================================================
//= azsx123
//===== Current Version: =====================================
//= 1.2
//===== Compatible With: =====================================
//= eAthena SVN
//= 3CeAM
//===== Description: =========================================
//= Gives Cash Points to a player when he logs-in.
//= Cash Points New Accounts
//= Cash Points once a day after 1st login.
//= Bonus for every 7 consecutive days that the player login
//===== Additional Comments: =================================
//= 1.0 Initial Release
//= 1.1 Bonus for every 7 consecutive days
//= 1.2 Easier to Configure
//	  Bonus can now be turned off 
//===== Credits: =============================================
//= Cruxiaer for "once a day" feature
//= azsx123 for the script
//============================================================
-	script	cashgive	FAKE_NPC,{
OnPCLoginEvent:
set .DGName$,"[Nidhoggur]"; // NPC Name
set .DGFirst,1;		 // Amount of Cashpoints for first login
set .DGDaily,1;		  // Amount of Cash Points on per day basis
set .DGBonus,2;		  // Turns bonus feature on:1 / off:2. (Default: 1)
set .DGBonAm,2;		  // Amount of Cash Cash Points for consecutive Login
if (#FirstLog == 1) goto DailyGift;
mes .DGName$;
mes "Bienvenido a NidhoggurRO!";
mes "Aqui tienes " +.DGFirst+" Cash Points por logear";
mes "sigue jugando y obteniendo ams cashpoints!!";
dispbottom .DGFirst +" Cash Points Received!";
set #CashPoints,#Cashpoints+.DGFirst;
set #FirstLog, 1;
set #DGNPC, (gettime(6)*31)+gettime(5);
set .delay, gettimetick(2);
close;
DailyGift:
set @now, (gettime(6)*31)+gettime(5);
set @delay, (gettimetick(2) - .delay);
set @day, @now - #DGNPC;
if(@day>1)
{
if (#DailyLog >= 6) goto ConSecBonus;

 set #DailyLog,#DailyLog+1;
 mes .DGName;
 mes "Good day!";
 mes "Here is a gift for visiting us today!";
 set #CashPoints,#Cashpoints+.DGDaily;
 dispbottom .DGDaily+ " Cash Points Received!";
 set #DGNPC, (gettime(6)*31)+gettime(5);
 set .delay, gettimetick(2);
 set #DailyLog,#DailyLog+1;
 close;
}
close;
if (.DGBonus == 1)
{
ConSecBonus:
mes .DGName$;
mes "Congratulations! You have logged-in for 7 days in a row!";
next;
mes .DGName$;
mes "Here is a "+.DGBonAm+" Cash Point bonus and you daily bonus of "+.DGDaily+" Cash Points!";
set .total,.DGBonAm+.DGDaily;
set #CashPoints,#CashPoints+.total;
set #DailyLog,0;
dispbottom .total+" Cash Points Received!";
close;
}
}


I have this script, I got it on this page. My problem with this script is that it doesn't have an IP limiter. Can someone help me by adding a command that limits the award for IP login since a user could easily create 2 accounts and get double points

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 10/11/2020 at 3:47 AM, NicoAFV1212 said:
//===== eAthena Script =======================================
//= Cash Points Giver (Login)
//===== By: ==================================================
//= azsx123
//===== Current Version: =====================================
//= 1.2
//===== Compatible With: =====================================
//= eAthena SVN
//= 3CeAM
//===== Description: =========================================
//= Gives Cash Points to a player when he logs-in.
//= Cash Points New Accounts
//= Cash Points once a day after 1st login.
//= Bonus for every 7 consecutive days that the player login
//===== Additional Comments: =================================
//= 1.0 Initial Release
//= 1.1 Bonus for every 7 consecutive days
//= 1.2 Easier to Configure
//	  Bonus can now be turned off 
//===== Credits: =============================================
//= Cruxiaer for "once a day" feature
//= azsx123 for the script
//============================================================
-	script	cashgive	FAKE_NPC,{
OnPCLoginEvent:
set .DGName$,"[Nidhoggur]"; // NPC Name
set .DGFirst,1;		 // Amount of Cashpoints for first login
set .DGDaily,1;		  // Amount of Cash Points on per day basis
set .DGBonus,2;		  // Turns bonus feature on:1 / off:2. (Default: 1)
set .DGBonAm,2;		  // Amount of Cash Cash Points for consecutive Login
if (#FirstLog == 1) goto DailyGift;
mes .DGName$;
mes "Bienvenido a NidhoggurRO!";
mes "Aqui tienes " +.DGFirst+" Cash Points por logear";
mes "sigue jugando y obteniendo ams cashpoints!!";
dispbottom .DGFirst +" Cash Points Received!";
set #CashPoints,#Cashpoints+.DGFirst;
set #FirstLog, 1;
set #DGNPC, (gettime(6)*31)+gettime(5);
set .delay, gettimetick(2);
close;
DailyGift:
set @now, (gettime(6)*31)+gettime(5);
set @delay, (gettimetick(2) - .delay);
set @day, @now - #DGNPC;
if(@day>1)
{
if (#DailyLog >= 6) goto ConSecBonus;

 set #DailyLog,#DailyLog+1;
 mes .DGName;
 mes "Good day!";
 mes "Here is a gift for visiting us today!";
 set #CashPoints,#Cashpoints+.DGDaily;
 dispbottom .DGDaily+ " Cash Points Received!";
 set #DGNPC, (gettime(6)*31)+gettime(5);
 set .delay, gettimetick(2);
 set #DailyLog,#DailyLog+1;
 close;
}
close;
if (.DGBonus == 1)
{
ConSecBonus:
mes .DGName$;
mes "Congratulations! You have logged-in for 7 days in a row!";
next;
mes .DGName$;
mes "Here is a "+.DGBonAm+" Cash Point bonus and you daily bonus of "+.DGDaily+" Cash Points!";
set .total,.DGBonAm+.DGDaily;
set #CashPoints,#CashPoints+.total;
set #DailyLog,0;
dispbottom .total+" Cash Points Received!";
close;
}
}


I have this script, I got it on this page. My problem with this script is that it doesn't have an IP limiter. Can someone help me by adding a command that limits the award for IP login since a user could easily create 2 accounts and get double points

Cafe player won't get too if you put IP

Share this post


Link to post
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
Answer this question...

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