Yoona Posted October 26, 2013 Posted October 26, 2013 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"; } } Quote
Patskie Posted October 26, 2013 Posted October 26, 2013 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 Quote
Question
Yoona
Can someone Modify this script into this kind of set up
The Script is here :
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.