Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

    Tuto que vai ajuda muita gente!!!(CRIANDO NPC SHOP) by kiIllLer.

    avatar
    gabriel


    Mensagens : 12
    Pontos : 5321
    Data de inscrição : 15/11/2009

    Tuto que vai ajuda muita gente!!!(CRIANDO NPC SHOP) by kiIllLer. Empty Tuto que vai ajuda muita gente!!!(CRIANDO NPC SHOP) by kiIllLer.

    Mensagem  gabriel Ter Nov 17, 2009 2:00 am

    Ola
    Como Disse Você Vai Aprender Agora A Criar Um Npc Merchant, PRA QUALQUER VERSAO, De Maneira Extremamente Facil. smile.gif Parece Mentira?????????? Vamo ver Enton.

    1º Vamos Criar A Sql Do seu Npc.
    . Abra Seu Navicat, Va Na Tabela "NPC" Clique Com O botão Direito Nela Va Ate em "Dump Sql File" Escolha
    Um lugar Para Salvar O Arquivo e Clique Em salvar.
    . Logo Depois Va Onde Vc Salvou O Arquivo "NPC" Escolha Um Npc , Copie-o, Abra O Bloco De Notas Cole, E Mude
    A 12ª Linha Para "L2Merchant" ( Pra Quem tiver Duvida E A linha "Type" Normalmente L2Monter, L2Pet....etc.)Mude A 1ª Linha Q E a Linha Da "ID" Do "NPC" Coloque Uma Inexistente Em Sua db. Se Desejar Mude A Linha INSERT INTO `npc` VALUES e Coloque INSERT INTO `custom_npc` VALUES.

    Ex: INSERT INTO `custom_npc` VALUES ('111741', '35629', 'Lidia von Hellmann', '0', 'Mercenary', '0', 'Monster3.lidia_von_helmann', '10.00', '25.40', '73', 'male', 'L2Merchant', '40', '25000', '1493', '11.85', '2.78', '40', '43', '30', '21', '20', '10', '0', '0', '4000', '2250', '2000', '2000', '500', '0', '720', '8209', '8209', '0', '88', '132', null, '0', '0', '0', 'LAST_HIT');

    Logo Depois SALVE, Não Se Esqueca De salvar Com a Extensão ".sql", e EXECUTE Em Seu Navicat ( Pra Quem tem Duvida , Abra Seu Navicat, Botão Direito Nele "Execute Batch File", E veja Se Deu Certo, Se De Errado, Confira A ID dele.)
    2º Agora VAmos Criar A Htm Do Seu Npc.
    . Para Não Complicar Seus PACOVÀ Copie A HTM Do Npc Q vou Deixar Aqui E salve Em Seu PC, Pra Toda Vez Q for Fazer Um Npc Merchant Ja Ta com Ele PRATICAMENTE PRONTO.
    Vamos La entao.

    <html>
    <body>
    <center>
    <br><center><font color="007700">NPC SHOP S</font></center>
    <br><br>
    <br><img src="L2.Sparta" width=260 height=1>
    <br><center><font color="007700">GRADE S ITENS</font></center>
    <br><button value="SET DRACONIC" action="bypass -h npc_%objectId%_multisell 01" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <br><button value="SET MAJOR ARCANA" action="bypass -h npc_%objectId%_multisell 02" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <br><button value="SET IMPERIAL CRUSADER" action="bypass -h npc_%objectId%_multisell 03" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <br><button value="JOIAS S" action="bypass -h npc_%objectId%_multisell 80123" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <center>
    <center>
    </body>
    </html>

    Galera Lembrando Q Isso E so Um exemplo, Vcs Podem Fazer O q Quiserem. Essa E a HTM de UM NPC SHOP Q Uso,
    Com Essa HTM Vcs Podem Fazer O q Quiserem.
    . Copie A HTM Cole No Bloco de Notas E Salve Com A ID DO NPC Q VC FEZ Seguido de ".htm". Depois Copie e Va em Gameserver/dist/data/html/Merchant E cole A htm Do NPC AKI.
    3. Agora Vamos A Multisell Do Npc ( A PARTE MAIS FACIL )

    Vou ajudar mais voces: tipo voce criou seu npc shop e tals e quer colocar armas nele manualmente exemplo: voce precisara de dois programas o primeiro é o .net frameork 2.0 eo segundo é o l2multisell 1.5 entao quando instala é só abri o arquivo item_icon execute esse arquivo no seu navicat e pronto.
    agora so abri o l2multisell escolher o id da multisell que voce fez e adiciona os itens que estao ao lado esquerdo do seu programa.

    A Multisell Fazer Manualmente Eu Acho Perca De tempo, VC Aprende, Mais Demora PAKAS.

    . Feito Sua Multisell, Ex. Vc fez 3 Multisells e Salvou-as Com Os Numeros 11,12 e 13. Salve-as Em Gamesever/dist/data/multisell, depois Va Na HTM do NPC q VC Criou E Coloque O numero de Suas Multsells Em Seus Devidos Lugares(OBSERVAÇÃO: nao pode ser o mesmo numero existente na sua html vamos entender melhor.(se por acaso eu estou colocando um id tipo assim: 18975 e esse id ja tem na pasta html voce tera que muda esse id para nao da erro.)
    <html>
    <body>
    <center>
    <br><center><font color="007700">NPC SHOP S</font></center>
    <br><br>
    <br><img src="L2.Sparta" width=260 height=1>
    <br><center><font color="007700">GRADE S ITENS</font></center>
    <br><button value="SET DRACONIC" action="bypass -h npc_%objectId%_multisell 11" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <br><button value="SET MAJOR ARCANA" action="bypass -h npc_%objectId%_multisell 12" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <br><button value="SET IMPERIAL CRUSADER" action="bypass -h npc_%objectId%_multisell 13" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <br><button value="JOIAS S" action="bypass -h npc_%objectId%_multisell 80123" width=204 height=14 back="sek.cbui36" fore="sek.cbui72">
    <center>
    <center>
    </body>
    </html>

    Depois De Toda Essa Complicação Para Fazer Um Npc, Ligue Seu Server E de //Spawn No Npc Q vc Criou
    Moleza Moleza.

    CREDITOS>>eu by kiIllLer.

      Data/hora atual: Seg maio 06, 2024 10:24 pm