I'm trying toput thisscriptto limit theitemjust for aUniqueID...
MySQLUniqueID
Reveal hidden contents
DROP TABLE IF EXISTS `jogadoresid`;create table `jogadoresid`(`id`int(10)unsignednotnull auto_increment,`UniqueID` varchar(255)notnull,`IP` varchar(255)notnull,`Data` date notnull,`Hora` time notnull,primary key (id));
My SQL RedList
Reveal hidden contents
DROP TABLE IF EXISTS `redlist`;CREATE TABLE `redlist`(`id`int(11)unsigned NOT NULL auto_increment,`account`int(11)unsigned NOT NULL default'0',`UniqueID` varchar(255)notnull,`ip` varchar(100) NOT NULL default'0.0.0.0',PRIMARY KEY (`id`))ENGINE=MyISAM;
My Npc
Reveal hidden contents
// |__ __| | __ / __ // | | _____ ____ _ ___| |__) | | | |// | |/ _ / / _` / __| _ /| | | |// | | __/> < (_| __ | | |__| |// |_|___/_/___,_|___/_| _____/- script Pack Iniciante 90,{OnPCLoginEvent:setarray @itens[0],5107,20100,20136,20135,20089; //Aqui você adiciona o ID dos itens setarray @qtd[0],1,3,200,100,1; //Aqui você colocará a quantidade de cada umquery_sql ("select last_ip from login where account_id='"+getcharid(3)+"'",@ip$);query_sql ("select UniqueID from jogadoresid where UniqueID='",@mac$);query_sql ("select ip from redlist where ip='"+@ip$+"'",@exist$);if (@exist$!=@ip$){query_sql("insert into `redlist` (account,ip,UniqueID) values ('"+getcharid(3)+"', '"+@ip$+"', '"+@mac$+"')");}else {set #jarecebeu,1;end;}if (#jarecebeu == 1) { Mes "O pack Inciante é dado apenas uma vez";} mes "^00FF00 Bem Vindo^000000 ao ^FF0000Texas-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 "Prontinho, faça bom uso!! ^^";close;end;}
Hello everybody, I'm here needing a help you
I'm trying to put this script to limit the item just for a UniqueID...
My SQL UniqueID
My SQL RedList
My Npc
// |__ __| | __ / __ // | | _____ ____ _ ___| |__) | | | |// | |/ _ / / _` / __| _ /| | | |// | | __/> < (_| __ | | |__| |// |_|___/_/___,_|___/_| _____/- script Pack Iniciante 90,{OnPCLoginEvent:setarray @itens[0],5107,20100,20136,20135,20089; //Aqui você adiciona o ID dos itens setarray @qtd[0],1,3,200,100,1; //Aqui você colocará a quantidade de cada umquery_sql ("select last_ip from login where account_id='"+getcharid(3)+"'",@ip$);query_sql ("select UniqueID from jogadoresid where UniqueID='",@mac$);query_sql ("select ip from redlist where ip='"+@ip$+"'",@exist$);if (@exist$!=@ip$){query_sql("insert into `redlist` (account,ip,UniqueID) values ('"+getcharid(3)+"', '"+@ip$+"', '"+@mac$+"')");}else {set #jarecebeu,1;end;}if (#jarecebeu == 1) { Mes "O pack Inciante é dado apenas uma vez";} mes "^00FF00 Bem Vindo^000000 ao ^FF0000Texas-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 "Prontinho, faça bom uso!! ^^";close;end;}
My error?
My Table mac -->

Share this post
Link to post
Share on other sites