Jump to content
  • 0

Hourly coupon please help!


alone20

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

Its not working for me. 

 




//====================================================================
//===== Hourly Points Script =========================================
//===== By: ==========================================================
//= GorthexTiger modified by Nibi
//===== Current Version: =============================================
//= 1.0
//===== Compatible With: =============================================
//= Any eAthena Version / rAthena
//===== Description: =================================================
//= Get Points every successful hours of gameplay, you cannot get
//= the points even if you miss a second or a minute. A player will
//= get a very big bonus if they played 12 hours consecutively
//= or without logging out of the game. If the player is vending
//= the script will then stop.
//===== Additional Comments: =========================================
//= You can modify the script to your liking.
//= The default points is Kafrapoints change it anyway if you like.
//= 1.1 = Check Chatting too
//= 1.2 = 5 Minute Idle Check & @at/@autotrade check.
//= 1.3 = Corrected the current balance line on 12 Hours Consecutive
//====================================================================


- script hourlypoints -1,{
OnPCLoginEvent:
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;


OnTimer30000:
if(checkvending() || checkchatting() || checkidle()) {
dispbottom "The hourly points event stopped because you were vending / chatting / afk. Please relog if you wish to start again.";
stopnpctimer;
end;
}
end;


OnTimer60000:
set @minute, @minute + 1;
if(@minute == 60){
set @minute,0;
set .@point_amt, 1;
getitem 7037 .@point_amt;
set @consecutive_hour, @consecutive_hour + 1;
}
if(@consecutive_hour == 6) {
set @consecutive_hour,0;
set .@cpoint_amt, 10;
getitem 7037 .@cpoint_amt;
}
stopnpctimer;
initnpctimer;
end;
}

Edited by Emistry
codebox
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   3
  • Joined:  06/12/13
  • Last Seen:  

erm. What's the error?

Did you input this line:
- script hourlypoints -1,{
 

Like this? :
-<tab>script<tab>hourlypoints<tab>-1,{

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

erm. What's the error?

Did you input this line:

- script hourlypoints -1,{

 

Like this? :

-<tab>script<tab>hourlypoints<tab>-1,{

yes i did that. still not working

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Searching for help ??

read these !!

http://rathena.org/board/forum-30/announcement-9-scripting-support-easy-as-1-2-3/

http://rathena.org/board/topic/85849-scripting-support-rules/

 

Scripting Support Rules
  • You have to clearly and elaborately describe your problem.
  • You will have to use the code bbcode tag whenever you would like to post either scripting code or map-server error messages.
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...