Jump to content
  • 0

kindly fix this script


Natsu Dragneel

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  138
  • Reputation:   1
  • Joined:  12/27/11
  • Last Seen:  

Hi, got a problem with this script. I set this to 1 cash point every 24 hour but the dialogue says, you got 0 cash point

Here's the script

//===== 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 PointsGiver -1,{
OnPCLoginEvent:
set .DGName$,"[Gangnam Style RO]"; // NPC Name
set .DGFirst,10;		 // Amount of Cashpoints for first login
set .DGDaily,1;		  // Amount of Cash Points on per day basis
set .DGBonus,1;		  // Turns bonus feature on:1 / off:2. (Default: 1)
set .DGBonAm,5;		  // Amount of Cash Cash Points for consecutive Login
if (#FirstLog == 1) goto DailyGift;
mes .DGName$;
mes "Welcome to Gangnam Style RO!";
mes "Here is " +.DGFirst+" Cash Points to help";
mes "get you started for your adventures!";
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;
}
}

Edited by Emistry
Please use [CODEBOX] or Attachments for long contents.
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.04
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

Hi, got a problem with this script. I set this to 1 cash point every 24 hour but the dialogue says, you got 0 cash point

Here's the script

//===== 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 PointsGiver -1,{
OnPCLoginEvent:
set .DGName$,"[Gangnam Style RO]"; // NPC Name
set .DGFirst,10;		 // Amount of Cashpoints for first login
set .DGDaily,1;		  // Amount of Cash Points on per day basis
set .DGBonus,1;		  // Turns bonus feature on:1 / off:2. (Default: 1)
set .DGBonAm,5;		  // Amount of Cash Cash Points for consecutive Login
if (#FirstLog == 1) goto DailyGift;
mes .DGName$;
mes "Welcome to Gangnam Style RO!";
mes "Here is " +.DGFirst+" Cash Points to help";
mes "get you started for your adventures!";
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;
}
}

Hi, got a problem with this script. I set this to 1 cash point every 24 hour but the dialogue says, you got 0 cash point

Here's the script

//===== 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 PointsGiver -1,{
OnPCLoginEvent:
set .DGName$,"[Gangnam Style RO]"; // NPC Name
set .DGFirst,10;		 // Amount of Cashpoints for first login
set .DGDaily,1;		  // Amount of Cash Points on per day basis
set .DGBonus,1;		  // Turns bonus feature on:1 / off:2. (Default: 1)
set .DGBonAm,5;		  // Amount of Cash Cash Points for consecutive Login
if (#FirstLog == 1) goto DailyGift;
mes .DGName$;
mes "Welcome to Gangnam Style RO!";
mes "Here is " +.DGFirst+" Cash Points to help";
mes "get you started for your adventures!";
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;
}
}

mes "here is your "+#CASHPOINTS+" Cash points";

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