Jump to content
  • 0

Online Points Help !


Yoona

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

Can someone Modify this script into this kind of set up

 

 

 

1. 5 Points Each

2. Have A Shop that players can choose what they want.

3. Credits to the one who will help me 

 

 

The Script is here : 

 

//# autopoints/onlinepoints v1.0

-	script	autopoints	-1,{
OnInit:
	//############# C O N F I G #############
	set .max_idle, 900;				// disable autopoints (seconds) 0=UNLI
	set .reenable_ap, 1;			// reenable autopoints when move (0=NO 1=YES)
	//#######################################
	end;
OnPCLoginEvent:
	set @blnCanGetItem, 1;
OnSec:
	if( !checkvending() ){
		getmapxy( .@mapt$, .@xt, .@yt, 0 );
		if( @map$==.@mapt$ && @x==.@xt && @y==.@yt ){
			set @idle_secs, @idle_secs + 1;
		}else{
			set @idle_secs, 0;
			if( @blnCanGetItem==0 && .reenable_ap!=0 ){
				set @blnCanGetItem, 1;
				dispbottom "Re-enabled Autopoints";
			}
		}
		set @map$, .@mapt$;
		set @x, .@xt;
		set @y, .@yt;
		if( @idle_secs==.max_idle && .max_idle!=0 ){
			set @blnCanGetItem, 0;
			dispbottom "Disabled Autopoints";
		}

		if( @blnCanGetItem==1 ){
			//set #seconds_ap, #seconds_ap + 1;
			//set @seconds_ap, #seconds_ap;
			set @seconds_ap, @seconds_ap + 1;
			
			//EVERY 1 HOUR
			if( @seconds_ap%3600==0 ){
				getitem 671, 5;
				dispbottom "You get 5 Golds every 1 hr online";
			}
			
			//EVERY 30 MINS 
			if( @seconds_ap%1800==0 ){
				getitem 671, 1;
				dispbottom "You get 1 Gold every 30 mins online";
			}
		}
		
		addtimer 1000, strnpcinfo(3)+"::OnSec";
	}
}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

Change : 

            if( @seconds_ap%3600==0 ){
                getitem 671, 5;
                dispbottom "You get 5 Golds every 1 hr online";
            }
            
            //EVERY 30 MINS
            if( @seconds_ap%1800==0 ){
                getitem 671, 1;
                dispbottom "You get 1 Gold every 30 mins online";
            }

to : 

            if( @seconds_ap%3600==0 ){
                #CASHPOINTS += 5;
                dispbottom "You get 5 cashpoints every 1 hr online";
            }
            
            //EVERY 30 MINS
            if( @seconds_ap%1800==0 ){
                #CASHPOINTS++;
                dispbottom "You get 1 cashpoint every 30 mins online";
            }

 

For shop, I suggest you use @Emistry multi currency shop ( here : http://rathena.org/board/files/file/2504-multi-currency-shop/ )



PS : Moved to script support section

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