Jump to content
  • 0
agentbogz

Requesting for V4points Dynamic NPC Shop

Question

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 =)

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

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

Then use my quest shop with the following configuration:

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

  • Upvote 1
Link to comment
Share on other sites

Oops.. Thanks a Lot Sir Euphy all scripts are now working.. BIG THANKS =)

Edited by agentbogz
Link to comment
Share on other sites

- <tab> script <tab> VotePointConvert <tab> -1,{
OnPCLoginEvent:
    query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+getcharid(3)+" LIMIT 1",[email protected]);
    if ([email protected]) end;
    query_sql("UPDATE `cp_v4p_voters` SET points=(points-"[email protected]+") WHERE account_id='"+getcharid(3)+"'");
    set #VOTEPOINTS, #[email protected];
    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.

Link to comment
Share on other sites

- <tab> script <tab> VotePointConvert <tab> -1,{
OnPCLoginEvent:
    query_sql("SELECT `points` FROM `cp_v4p_voters` WHERE account_id="+getcharid(3)+" LIMIT 1",[email protected]);
    if ([email protected]) end;
    query_sql("UPDATE `cp_v4p_voters` SET points=(points-"[email protected]+") WHERE account_id='"+getcharid(3)+"'");
    set #VOTEPOINTS, #[email protected];
    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?

Link to comment
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.   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.



×
×
  • Create New...

Important Information

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