Jump to content
  • 0

Get ATK boost on VIP time


MyNoobScriptz

Question


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  74
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   11
  • Joined:  07/02/12
  • Last Seen:  

Try this @MyNoobScriptz

You need to end the existing status first.

sc_end SC_BATKFOOD;
sc_start SC_BATKFOOD,(vip_status(VIP_STATUS_REMAINING) * 1000),200;

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   11
  • Joined:  07/02/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  74
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  107
  • Topics Per Day:  0.02
  • Content Count:  770
  • Reputation:   69
  • Joined:  02/10/12
  • Last Seen:  

if you want make it perament for VIP user just change

 

sc_start SC_BATKFOOD,-1,200;
sc_start SC_WATKFOOD,-1,200;

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  74
  • Reputation:   3
  • Joined:  05/01/15
  • Last Seen:  

4 hours ago, fTakano said:

Try this @MyNoobScriptz

You need to end the existing status first.


sc_end SC_BATKFOOD;
sc_start SC_BATKFOOD,(vip_status(VIP_STATUS_REMAINING) * 1000),200;

 

Yess!! thx

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