- script autojoin -,{
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;
}
prontera,165,165,4 script Vote for Points Shop 506,{
dispbottom "You currently have "+#VOTEPOINTS+" Vote Points.";
callshop "v4p_shop",1;
end;
}
- pointshop v4p_shop -1,#VOTEPOINTS,512:20