agentbogz Posted July 5, 2012 Posted July 5, 2012 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 =) Quote
0 Sensei334 Posted January 28, 2019 Posted January 28, 2019 any have the npc? edited? with euphy sql fix? Quote
Euphy Posted July 5, 2012 Posted July 5, 2012 - <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"; 1 Quote
agentbogz Posted July 5, 2012 Author Posted July 5, 2012 (edited) Oops.. Thanks a Lot Sir Euphy all scripts are now working.. BIG THANKS =) Edited July 5, 2012 by agentbogz Quote
Emistry Posted July 5, 2012 Posted July 5, 2012 check Euphy topic in Script Release section if you are looking for his script 1 Quote
mrlongshen Posted February 26, 2013 Posted February 26, 2013 - <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. Quote
pr3p Posted November 26, 2013 Posted November 26, 2013 - <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? Quote
Question
agentbogz
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.