Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ___ ___ ___ ___ ___
- /\ \ /\__\ /\ \ _____ /\__\ /\ \
- _\:\ \ /:/ _/_ \:\ \ /::\ \ /:/ _/_ \:\ \
- /\ \:\ \ /:/ /\__\ \:\ \ /:/\:\ \ /:/ /\__\ \:\ \
- _\:\ \:\ \ /:/ /:/ _/_ _____\:\ \ /:/ \:\__\ /:/ /:/ _/_ _____\:\ \
- /\ \:\ \:\__\ /:/_/:/ /\__\ /::::::::\__\ /:/__/ \:|__| /:/_/:/ /\__\ /::::::::\__\
- \:\ \:\/:/ / \:\/:/ /:/ / \:\~~\~~\/__/ \:\ \ /:/ / \:\/:/ /:/ / \:\~~\~~\/__/
- \:\ \::/ / \::/_/:/ / \:\ \ \:\ /:/ / \::/_/:/ / \:\ \
- \:\/:/ / \:\/:/ / \:\ \ \:\/:/ / \:\/:/ / \:\ \
- \::/ / \::/ / \:\__\ \::/ / \::/ / \:\__\
- \/__/ \/__/ \/__/ \/__/ \/__/ \/__/
- */
- /* TABELA SQL - ADICIONAR NO PM
- CREATE TABLE IF NOT EXISTS `vote_point` (
- `account_id` int(11) NOT NULL default '0',
- `point` int(11) NOT NULL default '0',
- `last_vote1` int(11) NOT NULL default '0',
- `last_vote2` int(11) NOT NULL default '0',
- `last_vote3` int(11) NOT NULL default '0',
- `date` text NOT NULL,
- PRIMARY KEY (`account_id`)
- ) ENGINE=MyISAM;
- */
- prontera,165,181,3 script Vote Points por VIP 580,{
- set .vote,3; // Número de votes point para trocar por 1 dia(Conforme abaixo) de VIP.
- set .vip,1; // Dias de VIP que serão trocados por 3 Vote Points(Conforme acima).
- set .n$,"[^008000Vote por Pontos^000000]";
- query_sql ("SELECT `point` FROM `vote_point` WHERE `account_id` = '"+getcharid(3)+"'", .@v);
- mes .n$;
- mes "Veio trocar seus Vote Points por VIP?";
- mes " ";
- mes "Você tem ^0000FF"+.@v+"^000000 Vote Points.";
- next;
- if(select("Sim:Não") == 2) close;
- mes .n$;
- mes "Vou lhe passar os valores:";
- mes "^0000FF"+.vote+"^000000 Vote Points equivalem a";
- if(.vip > 1) set .@a$,"s";
- mes "^0000FF"+.vip+"^000000 dia"+.@a$+" de VIP.";
- mes "Deseja confirmar a operação?";
- next;
- if(select("Sim:Não") == 2) close;
- if(.@v < .vote){
- mes .n$;
- mes "Você precisa ter no mínimo ^0000FF"+.vote+"^000000 Vote Points para realizar a troca.";
- close;
- }
- mes .n$;
- mes "Muito bem, você acaba de adquirir ^0000FF"+.vip+"^000000 dias de VIP.";
- close2;
- set .@n,.@v-.vote;
- query_sql ("UPDATE `vote_point` SET `point` = '"+.@n+"' WHERE `account_id`='"+getcharid(3)+"'");
- query_sql ("UPDATE `login` SET `diasvip` = `diasvip` +'"+.vip+"' WHERE `account_id`='"+getcharid(3)+"'");
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement