donkeyg Posted May 24, 2012 Share Posted May 24, 2012 - script Convertvotepoint -1,{ OnPCLoginEvent: query_sql ("SELECT `point` FROM `vote_point` WHERE `loginname` = MD5('"+getcharid(3)+"')", @vote); if(@vote > 0){ set #CASHPOINTS, #CASHPOINTS + @vote; query_sql ("UPDATE `vote_point` SET `point` = `point` - '"[email protected]+"' WHERE `loginname` = MD5('"+getcharid(3)+"')"); close; }else{ close; } } here is the script.. how about sql? need edit anything?? bumppppppp please... im totally newbie in scripting, someone would hgpel me please Quote Link to comment Share on other sites More sharing options...
Bahmut Posted May 24, 2012 Share Posted May 24, 2012 What exactly are you requesting? For a vote for points system in your control panel go here: http://rathena.org/board/topic/64099-ceres-cp-addon-show-vote-points/ or http://rathena.org/board/topic/60640-fluxcp-addon-vote-for-points/ Quote Link to comment Share on other sites More sharing options...
- script Convertvotepoint -1,{ OnPCLoginEvent: query_sql ("SELECT `point` FROM `vote_point` WHERE `loginname` = MD5('"+getcharid(3)+"')", @vote); if(@vote > 0){ set #CASHPOINTS, #CASHPOINTS + @vote; query_sql ("UPDATE `vote_point` SET `point` = `point` - '"[email protected]+"' WHERE `loginname` = MD5('"+getcharid(3)+"')"); close; }else{ close; } }here is the script.. how about sql? need edit anything??
bumppppppp
please... im totally newbie in scripting, someone would hgpel me please
Link to comment
Share on other sites