Ir para conteúdo
  • Cadastre-se

[TUTORIAL] CRIANDO SQL ARMOR (QUANDO NÃO VEM NO DOWNLOAD)


DemonikaBR-Marcos

Posts recomendados

BOA TARDE MOCINHAS.

QUANTAS VEZES BAIXAMOS UM SET FODÃO DAS GALAXIAS E O FDP VEM SEM SQL NÃO É?

HOJE VOU MOSTRAR UM TRUQUE SIMPLES E RÁPIDO PARA RESOLVER ISSO.

 

VAMOS LÁ - TUTORIAL DE CRIAÇÃO DE SQL PARA SETS

 euf3Z4I.png

 

Verifique que o material baixado possui “Itemname” “ArmorGrp” “SkillName” “SkillGRP”.

Verifique também se os arquivos possuem XML Armor, Skill e Armorset.
Caso possuam basta criar os arquivos do banco de dados (SQL).

 

 

mH1jCRb.png

Esta é a estrutura da Xml do Set, apenas para visualizarem a mesma, caso não tenha sido disponibilizada no material de download vc precisará fazê-la.

 

 

Vamos começar abrindo o banco de dados onde vamos ter a base da nossa SQL.

Abra o Navicat e vá até a tabela “Armor”, clique o botão direito e extraia a mesma para a área de trabalho.

Lembre-se de fazer uma cópia da mesma caso algo errado seja feito.

 

RVHpTwF.png

 

 

 

Para base do nosso set, usaremos os sets S já existentes, porém vamos ajusta-los de maneira que possamos utiliza-los perfeitamente no servidor.

Nota: parte das informações da SQL não são relevantes pois são ajustadas em outro arquivo, como a p.def por exemplo.

 

GAocnaW.png

 

 

 

Após separar as linhas que serão usadas, exclua os helmets para usar 1 só nos 3 sets, ou os mantenha para que cada set tenha seu helmet.

A Imperial tem 5 partes, então é preciso excluir a calça e trocar o peito (CHEST) por (FULLARMOR).

Xxc69XJ.png

 

 

Após modificar para Fullarmor e organizar, faça a numeração de Ids conforme o itemname, mude o nome também.

Após ter feito tudo salve o arquivo com extensão .SQL e coloque no Banco.

 BjYGsi4.png

X1fNRc0.png

 

 

Abra o Navicat clique com o botão direito em tabelas e clique em execute SQL File.

Selecione o arquivo SQL e click em start.

G5SIvLl.png

 

  Caso nenhum erro ocorra a mensagem a seguir será exibida.

hfjhgRq.png

Pronto basta clicar em close e seu set estará no banco.

 

Agora para que nosso set saiba que ele é um conjunto precisamos colocá-lo na lista de sets.

Observe a ordem acrescente seu set colocando cada ID em seu local.

Caso o set não tenha escudo coloque o número 0, o mesmo vale para a calça.

Leve em consideração que cada categoria, possui uma skill de encante número 6 (quando o set todo está +6), e a skill de quando vc coloca todas as partes do set listadas em cada armorset ID. 

A66TiQl.png

 

 

 

Após feitos esses passos verifique se a xml da skill está no local certo nas pastas do server. E com o ID correto.

Lembre-se também que nos arquivos do cliente é preciso ter SkillName e SkillGrp para serem aplicados ou a skill ficará preta ao colocar o Set.

BOh9d3V.png

 

 

TUDO PRONTO, VAMOS TESTAR, REINICIE O SERVIDOR E SUMONE O SET E USE-O.

CRbZGo4.jpg

 

AO BAIXAR UMA ARMA SEM SQL É O MESMO PROCEDIMENTO, ÚNICO DETALHE É QUE O ID DA SKILL DE S.A FICA NA SQL DA ARMA BEM NO FINAL, ID E LEVEL.

 

NOTA IMPORTANTE: ESTE TUTORIAL FOI PRODUZIDO USANDO A PLATAFORMA (REVISÃO) L2JDREAM V2.

ALGUMAS REVISÕES USAM SKILL DO SET NA XML DO MESMO OU NA PROPRIA SQL ASSIM COMO AS WEAPONS.

 

  

FIM

créditos: DemonikaBR - Marcos

 Download do Tutorial em PDF

O conteúdo está oculto, favor efetuar login ou se cadastrar!

 

 

 

CYeAxaZ.png


L2JDREAM PROJECT TEAM

Link para o comentário
Compartilhar em outros sites

  • 2 years later...

Sei que criar sql é a coisa mias fácil do mundo, porém estou quebrando a cabeça e não encontro o possível erro. Alguém poderia me ajudar a solucionar este erro?

Aqui está a sql que desejo incluir em minha rev interlude acis:

<Regular L2J>

INSERT INTO `custom_armor` VALUES ('26200', 'Ixion Breastplate', 'chest', 'true', 'heavy', '0', 'leather', 'a', '0', '-1', '278', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26201', 'Ixion Gaiters', 'legs', 'true', 'heavy', '0', 'leather', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26202', 'Ixion Gauntlets', 'gloves', 'true', 'heavy', '0', 'blood_steel', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26203', 'Ixion Plate Boots', 'feet', 'true', 'heavy', '0', 'leather', 'a', '0', '-1', '209', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26204', 'Ixion Leather Breastplate', 'chest', 'true', 'light', '0', 'blood_steel', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26205', 'Ixion Leather Leggings', 'legs', 'true', 'light', '0', 'leather', 'a', '0', '-1', '139', '0', '665', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26206', 'Ixion Leather Gloves', 'gloves', 'true', 'light', '0', 'leather', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26207', 'Ixion Leather Boots', 'feet', 'true', 'light', '0', 'blood_steel', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26208', 'Ixion Tunic', 'chest', 'true', 'magic', '0', 'fine_steel', 'a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26209', 'Ixion Stockings', 'legs', 'true', 'magic', '0', 'silver', 's', '0', '-1', '0', '71', '31', '4440000', '222', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26210', 'Ixion Mittens', 'gloves', 'true', 'magic', '0', 'gold', 's', '0', '-1', '0', '48', '21', '2960000', '148', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26211', 'Ixion Slippers', 'feet', 'true', 'magic', '0', 'silver', 's', '0', '-1', '0', '95', '42', '5920000', '296', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26212', 'Ixion Headgear', 'head', 'true', 'heavy', '0', 'fine_steel', 'a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26213', 'Ixion Circlet', 'head', 'true', 'light', '0', 'leather', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26214', 'Ixion Cap', 'head', 'true', 'magic', '0', 'fine_steel', 'a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');

<L2J Frozen>


INSERT INTO `custom_armor` VALUES ('26200', 'Ixion Breastplate', 'chest', 'true', 'heavy', '0','a', '0', '-1', '278', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26201', 'Ixion Gaiters', 'legs', 'true', 'heavy', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26202', 'Ixion Gauntlets', 'gloves', 'true', 'heavy', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26203', 'Ixion Plate Boots', 'feet', 'true', 'heavy', '0','a', '0', '-1', '209', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26204', 'Ixion Leather Breastplate', 'chest', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26205', 'Ixion Leather Leggings', 'legs', 'true', 'light', '0','a', '0', '-1', '139', '0', '665', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26206', 'Ixion Leather Gloves', 'gloves', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26207', 'Ixion Leather Boots', 'feet', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26208', 'Ixion Tunic', 'chest', 'true', 'magic', '0','a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26209', 'Ixion Stockings', 'legs', 'true', 'magic', '0','s', '0', '-1', '0', '71', '31', '4440000', '222', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26210', 'Ixion Mittens', 'gloves', 'true', 'magic', '0','s', '0', '-1', '0', '48', '21', '2960000', '148', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26211', 'Ixion Slippers', 'feet', 'true', 'magic', '0','s', '0', '-1', '0', '95', '42', '5920000', '296', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26212', 'Ixion Headgear', 'head', 'true', 'heavy', '0','a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26213', 'Ixion Circlet', 'head', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26214', 'Ixion Cap', 'head', 'true', 'magic', '0','a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');

<Armorset>

INSERT INTO `custom_armorsets` VALUES ('61', '26200', '26201', '26212', '26202', '26203', '40006', '0', '0', '3623');
INSERT INTO `custom_armorsets` VALUES ('62', '26204', '26205', '26213', '26206', '26207', '40007', '0', '0', '3624');
INSERT INTO `custom_armorsets` VALUES ('63', '26208', '26209', '26214', '26210', '26211', '40008', '0', '0', '3625');

 

Agora, LordRayaN disse:

Sei que criar sql é a coisa mias fácil do mundo, porém estou quebrando a cabeça e não encontro o possível erro. Alguém poderia me ajudar a solucionar este erro? (Faz muito tempo que trabalhei com interlude, estou voltando agora porque dei uma pausa no h5)

Aqui está a sql que desejo incluir em minha rev interlude acis:

<Regular L2J>

INSERT INTO `custom_armor` VALUES ('26200', 'Ixion Breastplate', 'chest', 'true', 'heavy', '0', 'leather', 'a', '0', '-1', '278', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26201', 'Ixion Gaiters', 'legs', 'true', 'heavy', '0', 'leather', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26202', 'Ixion Gauntlets', 'gloves', 'true', 'heavy', '0', 'blood_steel', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26203', 'Ixion Plate Boots', 'feet', 'true', 'heavy', '0', 'leather', 'a', '0', '-1', '209', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26204', 'Ixion Leather Breastplate', 'chest', 'true', 'light', '0', 'blood_steel', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26205', 'Ixion Leather Leggings', 'legs', 'true', 'light', '0', 'leather', 'a', '0', '-1', '139', '0', '665', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26206', 'Ixion Leather Gloves', 'gloves', 'true', 'light', '0', 'leather', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26207', 'Ixion Leather Boots', 'feet', 'true', 'light', '0', 'blood_steel', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26208', 'Ixion Tunic', 'chest', 'true', 'magic', '0', 'fine_steel', 'a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26209', 'Ixion Stockings', 'legs', 'true', 'magic', '0', 'silver', 's', '0', '-1', '0', '71', '31', '4440000', '222', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26210', 'Ixion Mittens', 'gloves', 'true', 'magic', '0', 'gold', 's', '0', '-1', '0', '48', '21', '2960000', '148', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26211', 'Ixion Slippers', 'feet', 'true', 'magic', '0', 'silver', 's', '0', '-1', '0', '95', '42', '5920000', '296', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26212', 'Ixion Headgear', 'head', 'true', 'heavy', '0', 'fine_steel', 'a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26213', 'Ixion Circlet', 'head', 'true', 'light', '0', 'leather', 'a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26214', 'Ixion Cap', 'head', 'true', 'magic', '0', 'fine_steel', 'a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');

<L2J Frozen>


INSERT INTO `custom_armor` VALUES ('26200', 'Ixion Breastplate', 'chest', 'true', 'heavy', '0','a', '0', '-1', '278', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26201', 'Ixion Gaiters', 'legs', 'true', 'heavy', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26202', 'Ixion Gauntlets', 'gloves', 'true', 'heavy', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26203', 'Ixion Plate Boots', 'feet', 'true', 'heavy', '0','a', '0', '-1', '209', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26204', 'Ixion Leather Breastplate', 'chest', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26205', 'Ixion Leather Leggings', 'legs', 'true', 'light', '0','a', '0', '-1', '139', '0', '665', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26206', 'Ixion Leather Gloves', 'gloves', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26207', 'Ixion Leather Boots', 'feet', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26208', 'Ixion Tunic', 'chest', 'true', 'magic', '0','a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26209', 'Ixion Stockings', 'legs', 'true', 'magic', '0','s', '0', '-1', '0', '71', '31', '4440000', '222', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26210', 'Ixion Mittens', 'gloves', 'true', 'magic', '0','s', '0', '-1', '0', '48', '21', '2960000', '148', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26211', 'Ixion Slippers', 'feet', 'true', 'magic', '0','s', '0', '-1', '0', '95', '42', '5920000', '296', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26212', 'Ixion Headgear', 'head', 'true', 'heavy', '0','a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26213', 'Ixion Circlet', 'head', 'true', 'light', '0','a', '0', '-1', '46', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');
INSERT INTO `custom_armor` VALUES ('26214', 'Ixion Cap', 'head', 'true', 'magic', '0','a', '0', '-1', '69', '0', '0', '0', '0', 'true', 'true', 'true', 'true', '0', '0');

<Armorset>

INSERT INTO `custom_armorsets` VALUES ('61', '26200', '26201', '26212', '26202', '26203', '40006', '0', '0', '3623');
INSERT INTO `custom_armorsets` VALUES ('62', '26204', '26205', '26213', '26206', '26207', '40007', '0', '0', '3624');
INSERT INTO `custom_armorsets` VALUES ('63', '26208', '26209', '26214', '26210', '26211', '40008', '0', '0', '3625');

 

 

Link para o comentário
Compartilhar em outros sites

  • Registre-se

    Faça parte da maior e  mais antigas comunidades sobre Lineage2 da América Latina.





×
×
  • Criar Novo...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.