Jump to content
  • 0
MyNoobScriptz

Get ATK boost on VIP time

Question

firstcity,223,208,4	script	TEST	10189,{
	mes "Vip SALLER";
	next;
	switch( select( "VIP", "NO") ) {
		case 1:
			if (vip_status(VIP_STATUS_ACTIVE)){
				mes "Your is VIP";
				end;
			}
			vip_time 5;
			sc_start SC_BATKFOOD,300000,200;
			sc_start SC_WATKFOOD,300000,200;
			mes "VIP 5 MIN ACTIVE";
			end;
		case 2:
			end;
	}
	end;
	
OnPCLoginEvent:
if (vip_status(VIP_STATUS_ACTIVE)){
	sc_start SC_BATKFOOD,Time2Str(vip_status(VIP_STATUS_REMAINING) + gettimetick(2)),200;
	sc_start SC_WATKFOOD,Time2Str(vip_status(VIP_STATUS_REMAINING) + gettimetick(2)),200;
	end;
	}
}

I need to get Atk food and Matk food on vip status.

how can i put time remaining correct on vip time remaining ?

thx for advance!!

vip.png

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Check `doc/script_commands.txt`.

*vip_status(<type>,{"<character name>"})

Returns various information about a player's VIP status.

Valid types:
 VIP_STATUS_ACTIVE - VIP status: true if the player is a VIP or false if not
 VIP_STATUS_EXPIRE - VIP expire timestamp if the player is VIP or 0 if not
 VIP_STATUS_REMAINING - VIP time remaining in seconds

NOTE: This command is only available if the VIP System is enabled.

 

Edited by fTakano
Link to comment
Share on other sites

  • 0
32 minutes ago, fTakano said:

Check `doc/script_commands.txt`.

*vip_status(<type>,{"<character name>"})

Returns various information about a player's VIP status.

Valid types:
 VIP_STATUS_ACTIVE - VIP status: true if the player is a VIP or false if not
 VIP_STATUS_EXPIRE - VIP expire timestamp if the player is VIP or 0 if not
 VIP_STATUS_REMAINING - VIP time remaining in seconds

NOTE: This command is only available if the VIP System is enabled.

 

yes i check it

but i need to put cooldown my buff , time on buff = time on vip status remaining

sc_start SC_BATKFOOD,Time2Str(vip_status(VIP_STATUS_REMAINING) + gettimetick(2)),200; 

i try script but don't work

ggggg.png

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

Important Information

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