Jump to content
  • 0
Sign in to follow this  
MikZ

VIP query for Warper

Question

Good day!

I am trying to add VIP warper function in the script and found this command.

function VIP {
	if ( getarg(0) > getgmlevel() ) {
	    if (getarg(1,0)) {
            	@vip_block = 0;
            	for (.@i = 1; .@i < getargcount(); .@i++)
            		@vip_block = @vip_block | (1<<getarg(.@i));
        } else {
		    message strcharinfo(PC_NAME),"Only VIP have access in this map.";
		    close;
		}
	}
	return;
}

My question is how can i apply/change the script to work on this query, query below is for VIP players. thanks!

query_sql( "SELECT CAST( `vip` AS DATE ),DATEDIFF( IFNULL(`vip`,NOW()),NOW() ),`last_unique_id`,`last_ip` FROM `login` WHERE `account_id` = "+getcharid(3)+" LIMIT 1", .@vip_date$, .@day, .@last_u_id$, .@last_ip$ );
		if ( .@day > 0 ) {
			dispbottom "VIP Exp & item rate and Expire at "+.@vip_date$+".";
			}
		end;
}

 

Edited by MikZ

Share this post


Link to post
Share on other sites

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