Jump to content
  • 0
Sign in to follow this  
ahmadshidqi

Cashpoint will be stop if 800

Question

can you help me? i want to make this script, if cash + 25 > 800 or if cash = 800, this script will be stop >.<, i have try but fail :( please help me...

 

my script

 

/*create table itemperacc (`account_id` int(11) unsigned NOT NULL primary key) engine = innodb;*/-	script	dailyrewards	-1,{OnPCLoginEvent:	getmapxy .@map$, .@x, .@y, 0; 	if ( .@map$=="invek" ) {		if ( !query_sql( "select account_id  from `itemperacc` where account_id ="+ getcharid(3) , .@acc ) ) {			set .@point_amt, 25;			set #CASHPOINTS, #CASHPOINTS + .@point_amt;			dispbottom "You received "+.@point_amt+" Cashpoints;			dispbottom "Current Balance = "+#CASHPOINTS+" Cashpoints";						query_sql "insert into `itemperacc` values ( "+getcharid(3)+" )";		}	}	end;OnHour06:	query_sql "truncate itemperacc";	end;}

 

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.