Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- //%% INSERIR A TABELA ABAIXO NO BANCO DE DADOS SQL: %%
- //%% %%
- //%% DROP TABLE IF EXISTS `redlist`; %%
- //%% CREATE TABLE `redlist` ( %%
- //%% `id` int(11) unsigned NOT NULL auto_increment, %%
- //%% `account` int(11) unsigned NOT NULL default '0', %%
- //%% `mac` varchar(100) NOT NULL default '', %%
- //%% PRIMARY KEY (`id`) %%
- //%% )ENGINE=MyISAM; %%
- //%% %%
- //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
- - script packiniciante -1,{
- OnPCLoginEvent:
- setarray @itens[0],545,578; //Aqui você adiciona o ID dos itens
- setarray @qtd[0],200,100; //Aqui você colocará a quantidade de cada um
- query_sql ("select last_mac from login where account_id='"+getcharid(3)+"'",@mac$);
- query_sql ("select mac from redlist where mac='"+@mac$+"'",@exist$);
- query_sql "UPDATE `login` SET `level` = '2',`diasvip`=`diasvip`+7 WHERE `level`='0' AND account_id` = '"+ getcharid(3) +"'";
- if (@exist$!=@mac$){
- query_sql("insert into `redlist` (account,mac) values ('"+getcharid(3)+"', '"+@mac$+"')");
- }
- else {
- set #jarecebeu,1;
- end;
- }
- if (#jarecebeu == 1) goto Negado;
- mes "^00FF00 Bem Vindo^000000 ao ^FF0000SEU-RO ^000000";
- mes "";
- mes "Vejo que você é novo por aqui, então vou te dar o Pack Iniciante!!";
- mes "Você receberá no Pack, os seguintes itens:";
- next;
- for (set .@i,0; .@i<getarraysize(@itens); set .@i,.@i+1){
- set .@nome$, .@nome$+getitemname(@itens[.@i]);
- mes "[^FF0000"+@qtd[.@i]+"^000000] ^0000FF"+.@nome$+"^000000";
- set .@nome$,"";
- }
- next;
- for (set .@i,0; .@i<getarraysize(@itens); set .@i,.@i+1){
- getitem @itens[.@i],@qtd[.@i];
- }
- set #jarecebeu,1;
- next;
- mes "Pronto, faça bom uso!! ^^";
- close;
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement