Jump to content
  • 0
Sign in to follow this  
sonyk2

help with F Ticket AddVip wanted to integrate it with the npc I have

Question

Good morning sorry for the inconvenience

I wanted your help if possible kk

I tried to edit but I'm noob

// ------------------------------------------------ -------------------------------------------------- ------------

script de função F_TicketAddVip5 {
    query_sql "SELECT` days` FROM` viptable` WHERE` vipacc_id` = '" + getcharid (3) + "'",. @ checkDays;
    if (. @ checkDays> 0) {
        set. @ setDays, (. @ checkDays + 5);
        query_sql "UPDATE` viptable` set` days` = '" +. @ setDays + "'? WHERE` vipacc_id` ='" + getcharid (3) + "'";
        query_sql "SELECT` group_id` FROM` login` WHERE` account_id` = '" + getcharid (3) + "'",. @ nível de usuário;
        if (. @ userLevel <1) 
            query_sql "

    else {
        query_sql" UPDATE` login` set `group_id` = '1' WHERE` account_id` = '" + getcharid (3) + "
        query_sql "SELECT` userid` FROM` login` ONDE` account_id` = '" + getcharid (3) + "'",. @ userID $;
        query_sql "SELECT` email` FROM` login` ONDE` account_id` = '" + getcharid (3) + "'",. @ userEmail $;
        query_sql "INSERT INTO` viptable` (` vipacc_id`, `vip_id`,` days`, `email`) VALUES ('" + getcharid (3) + "', '" +. @ userID $ + "', '5 ',' "+. @ accEmail $ +" ') ";
    }
    atcommand "@reloadpcdb";
    dispbottom "Você erigido 5 dias de conta VIP, parabéns!";
    specialeffect 338;
    fim;
Retorna;
}

 

wanted to use with this npc

 

vipadmin.txt

Edited by sonyk2

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
On 12/23/2020 at 12:17 PM, Caspian said:

First you need to type in english, here is an international community.

If you want support in your mother language, you should have opened a topic in the portuguese support section.

sorry I was very tired when I posted

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.