RN1986 Posted July 2, 2012 Posted July 2, 2012 (edited) http://pastebin.com/CgRcNHJH how to automatically set votepoints into cashpoints? i tried this code bu no luck http://pastebin.com/9RfqSeex Edited July 5, 2012 by RN1986 Quote
Bahmut Posted July 2, 2012 Posted July 2, 2012 How are the votepoints stored in your database? What system do you use? Quote
tr0n Posted July 2, 2012 Posted July 2, 2012 I would let a script check if the votepoints variable is "> 0" at login and if "no = end;" and if "yes = transfer to other variable" Quote
RN1986 Posted July 3, 2012 Author Posted July 3, 2012 im using rathena,centos os votefor points add-on by sir jaypee Quote
Euphy Posted July 3, 2012 Posted July 3, 2012 Just coded this for someone yesterday, here you go: - script VotePointConvert -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 #CASHPOINTS, #CASHPOINTS+.@points; dispbottom "Vote Points updated! Total: "+#CASHPOINTS; end; } Quote
RN1986 Posted July 3, 2012 Author Posted July 3, 2012 where to put this sir Euphy? not working thank you very much... Quote
Euphy Posted July 3, 2012 Posted July 3, 2012 It's a standard script, add it to any file. Put tabs in the header. Quote
RN1986 Posted July 3, 2012 Author Posted July 3, 2012 (edited) Solved! thank you very much sir Euphy.... you help me a a lot....i mean you help me Bigtime Edited July 5, 2012 by RN1986 Quote
Question
RN1986
http://pastebin.com/CgRcNHJH
how to automatically set votepoints into cashpoints?
i tried this code bu no luck
http://pastebin.com/9RfqSeex
Edited by RN19867 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.