MyNoobScriptz Posted August 8, 2021 Posted August 8, 2021 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!! Quote
0 fTakano Posted August 8, 2021 Posted August 8, 2021 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; 1 Quote
0 fTakano Posted August 8, 2021 Posted August 8, 2021 (edited) 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 August 8, 2021 by fTakano Quote
0 MyNoobScriptz Posted August 8, 2021 Author Posted August 8, 2021 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 Quote
0 LearningRO Posted August 8, 2021 Posted August 8, 2021 if you want make it perament for VIP user just change sc_start SC_BATKFOOD,-1,200; sc_start SC_WATKFOOD,-1,200; Quote
0 MyNoobScriptz Posted August 9, 2021 Author Posted August 9, 2021 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 Quote
Question
MyNoobScriptz
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!!
5 answers 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.