Jump to content
  • 0

Request script Online Cash Point


mR L

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

//===== Hourly Points Script =========================================
//===== By: ==========================================================
//= nostafu
//===== Current Version: =============================================
//= 1.3
//===== Compatible With: =============================================
//= Any eAthena Version
//===== 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.
//====================================================================
-    script    OnlineReward#1    -1,{
 
//--Start of the Script
OnPCLoginEvent:
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
   
OnTimer30000:
//Check if Vending (normal or @at)
if(checkvending() >= 1) {
    dispbottom "The rewards has stopped because you were vending . Please relog if you wish to start again.";
    stopnpctimer;
    end;
}
 
OnTimer60000:
set @minute, @minute + 1;
//Check for 1 Minute
if(@minute == 1){
    set @minute,0;
    set #CASHPOINTS,#CASHPOINTS+100;
    dispbottom "You received 100 Cash Points. Current Cash Points: " + #CASHPOINTS;
}
stopnpctimer;
initnpctimer;
end;
}

hello, may you help me about this script
I edited some, and I can't make this script only map prontera & payon you can receive the cash point
maybe you can help me about this script

Thank you advance~

 

Edited by Emistry
Please use codebox
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  625
  • Reputation:   188
  • Joined:  11/19/11
  • Last Seen:  

At if(@minute) add to it:

&& (strcharinfo(3) == prontera || strcharinfo(3) == payon)

So  it looks like this:

if(@minute == 1 && (strcharinfo(3) == prontera || strcharinfo(3) == payon)) {

  • Like 1
Link to comment
Share on other sites

  • 0

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


-    script    OnlineReward#1    -1,{
 
//--Start of the Script
OnPCLoginEvent:
attachnpctimer ""+strcharinfo(0)+"";
initnpctimer;
end;
   
OnTimer30000:
//Check if Vending (normal or @at)
if(checkvending() >= 1) {
    dispbottom "The rewards has stopped because you were vending . Please relog if you wish to start again.";
    stopnpctimer;
    end;
}
 
OnTimer60000:
set @minute, @minute + 1;
//Check for 1 Minute
if(@minute == 1 && (strcharinfo(3) == "prontera" || strcharinfo(3) == "payon")){
    set @minute,0;
    set #CASHPOINTS,#CASHPOINTS+100;
    dispbottom "You received 100 Cash Points. Current Cash Points: " + #CASHPOINTS;
}
stopnpctimer;
initnpctimer;
end;
}
if(@minute == 1 && (strcharinfo(3) == "prontera" || strcharinfo(3) == "payon")){

 

Edited by Emistry
  • Like 2
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...