Jump to content
  • 0

Requesting for V4points Dynamic NPC Shop


Question

Posted

Hello Guys, Do you have any scripts there? Vote for points dynamic npc shop,

so i can view,test preview the item.

i'm using Sir Jaypee's V4points Script.

Thanks to you all =)

9 answers to this question

Recommended Posts

Posted

- <tab> script <tab> VotePointConvert <tab> -1,{
OnPCLoginEvent:
   query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+getcharid(3)+" LIMIT 1",.@points);
   if (!.@points) end;
   query_sql("UPDATE `cp_v4p_voters` SET points=(points-"+.@points+") WHERE account_id='"+getcharid(3)+"'");
   set #VOTEPOINTS, #VOTEPOINTS+.@points;
   dispbottom "Vote Points updated! Total: "+#VOTEPOINTS;
   end;
}

Then use my quest shop with the following configuration:

setarray .Points$[0],"#VOTEPOINTS","Vote Points";

  • Upvote 1
Posted
- <tab> script <tab> VotePointConvert <tab> -1,{
OnPCLoginEvent:
    query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+getcharid(3)+" LIMIT 1",.@points);
    if (!.@points) end;
    query_sql("UPDATE `cp_v4p_voters` SET points=(points-"+.@points+") WHERE account_id='"+getcharid(3)+"'");
    set #VOTEPOINTS, #VOTEPOINTS+.@points;
    dispbottom "Vote Points updated! Total: "+#VOTEPOINTS;
    end;
}
Then use my quest shop with the following configuration:

setarray .Points$[0],"#VOTEPOINTS","Vote Points";

 

sir i make new txt file for the VotePointConvert. what is the function ?  i dont see any my vote for point there.

Posted
- <tab> script <tab> VotePointConvert <tab> -1,{
OnPCLoginEvent:
    query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+getcharid(3)+" LIMIT 1",.@points);
    if (!.@points) end;
    query_sql("UPDATE `cp_v4p_voters` SET points=(points-"+.@points+") WHERE account_id='"+getcharid(3)+"'");
    set #VOTEPOINTS, #VOTEPOINTS+.@points;
    dispbottom "Vote Points updated! Total: "+#VOTEPOINTS;
    end;
}
Then use my quest shop with the following configuration:

setarray .Points$[0],"#VOTEPOINTS","Vote Points";

The votepointconverter is a separate npc?

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...