AinsLord Posted August 28, 2018 Posted August 28, 2018 is there any item script for usable item VIP ticket for 1day 7days 30day?? if there is can i ask please and also how can i make the certain map only VIP can enter or script for that?? thnx in advance ur d best Quote
0 IsabelaFernandez Posted August 28, 2018 Posted August 28, 2018 1 hour ago, AinsLord said: is there any item script for usable item VIP ticket for 1day 7days 30day?? if there is can i ask please and also how can i make the certain map only VIP can enter or script for that?? thnx in advance ur d best As for the map entry for VIP players only, I believe you need the group restriction Example: *getgroupid({<char_id>}) before script function 1 Quote
0 Slammer Posted August 28, 2018 Posted August 28, 2018 (edited) Thank you for @IsabelaFernandez i clarify : 3001,VIP Pass 1,VIP Pass 1,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time(60*24*7); },{},{} //VIP ID for 7 days 3002,VIP Pass 2,VIP Pass 2,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time(60*24*14); },{},{} //VIP ID for 14 days 3003,VIP Pass 3,VIP Pass 3,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time(60*24*30); },{},{} //VIP ID for 30 days The Script Active when SRC VIP mode is on. src\config\core.h //#define VIP_ENABLE change to #define VIP_ENABLE and recompile. For Map/Field/DG/ect maybe you can use NPC for acces : mes "[ Gate keeper]"; if (vip_status(1)) { mes "Will you go to VIP map?"; next; menu "Go to VIP map",vipmap,"No way",no; vipmap: warp "vip.gat",0,0; end; no: mes "VIP map is great."; break; } else { mes "Seems you're no longer VIP anymore. You must VIP to acces"; break; } Edited August 28, 2018 by Slammer 1 1 Quote
0 AinsLord Posted August 28, 2018 Author Posted August 28, 2018 thnx for both of you imma try this out Quote
0 AinsLord Posted August 29, 2018 Author Posted August 29, 2018 5 hours ago, Slammer said: Thank you for @IsabelaFernandez i clarify : 3001,VIP Pass 1,VIP Pass 1,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time(60*24*7); },{},{} //VIP ID for 7 days 3002,VIP Pass 2,VIP Pass 2,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time(60*24*14); },{},{} //VIP ID for 14 days 3003,VIP Pass 3,VIP Pass 3,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time(60*24*30); },{},{} //VIP ID for 30 days The Script Active when SRC VIP mode is on. src\config\core.h //#define VIP_ENABLE change to #define VIP_ENABLE and recompile. For Map/Field/DG/ect maybe you can use NPC for acces : mes "[ Gate keeper]"; if (vip_status(1)) { mes "Will you go to VIP map?"; next; menu "Go to VIP map",vipmap,"No way",no; vipmap: warp "vip.gat",0,0; end; no: mes "VIP map is great."; break; } else { mes "Seems you're no longer VIP anymore. You must VIP to acces"; break; } @Slammercan the VIP ticket add its duration example uses 2 30days will it become 60days?? if so how can i make it 1time use only need consume 1st the remaining VIP time to use other VIP ticket Quote
0 Slammer Posted August 29, 2018 Posted August 29, 2018 2 hours ago, AinsLord said: @Slammercan the VIP ticket add its duration example uses 2 30days will it become 60days?? if so how can i make it 1time use only need consume 1st the remaining VIP time to use other VIP ticket @AinsLord try use 1 item and check timeleft vip. then try use 2nd item same duration. i reminder is calculate of duration 1st 60day + 2nd 60day = 120days try this script for timeleft vip - script Sample -1,{ OnPCLoginEvent: if (getgmlevel() < 99) end; mes "[Points Viewer]"; mes "Hello "+strcharinfo(0); mes ""+#CASHPOINTS+" Cash and "+#KAFRAPOINTS+" Free Cash."; mes "-----------------------------------"; mes "Time VIP left"; mes ""+vip_status(2)+""; mes "-----------------------------------"; close; } 1 Quote
0 hytsuya123 Posted January 26, 2021 Posted January 26, 2021 try to item vip ticket //=================================================================== // More Usable Items //=================================================================== 42011,VIP_3D,VIP Ticket 3D,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time 4320; },{},{} 42012,VIP_7D,VIP Ticket 7D,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time 10080; },{},{} 42013,VIP_30D,VIP Ticket 30D,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time 43200; },{},{} 42014,VIP_60D,VIP Ticket 60D,0,2,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ vip_time 86400; },{},{} //=================================================================== 1 Quote
Question
AinsLord
is there any item script for usable item VIP ticket for 1day 7days 30day?? if there is can i ask please
and also how can i make the certain map only VIP can enter or script for that??
thnx in advance
ur d best
6 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.