Jump to content
  • 0

Usable VIP ticket 1day 7days 1month and also VIP map


Question

Posted

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

  • 0
Posted
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
  • Like 1
  • 0
Posted (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 by Slammer
  • Upvote 1
  • MVP 1
  • 0
Posted
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

  • 0
Posted
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;
}

  • Like 1
  • 0
Posted

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; },{},{}
//===================================================================
 

  • Like 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...