MyNoobScriptz Posted August 8, 2021 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 76 Reputation: 3 Joined: 05/01/15 Last Seen: April 9 Share 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 Link to comment Share on other sites More sharing options...
0 fTakano Posted August 8, 2021 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 31 Reputation: 12 Joined: 07/02/12 Last Seen: 9 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 fTakano Posted August 8, 2021 Group: Members Topic Count: 8 Topics Per Day: 0.00 Content Count: 31 Reputation: 12 Joined: 07/02/12 Last Seen: 9 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 MyNoobScriptz Posted August 8, 2021 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 76 Reputation: 3 Joined: 05/01/15 Last Seen: April 9 Author Share 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 Link to comment Share on other sites More sharing options...
0 LearningRO Posted August 8, 2021 Group: Members Topic Count: 107 Topics Per Day: 0.02 Content Count: 778 Reputation: 73 Joined: 02/10/12 Last Seen: Tuesday at 12:42 AM Share 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 Link to comment Share on other sites More sharing options...
0 MyNoobScriptz Posted August 9, 2021 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 76 Reputation: 3 Joined: 05/01/15 Last Seen: April 9 Author Share 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 Link to comment Share on other sites More sharing options...
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!!
Link to comment
Share on other sites
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.