Ir para conteúdo

Npc / Corrigindo A Fala


hique86

Posts Recomendados

Estou com 2 NPC's no meu Ot o Rashi e Riona eles estão com as falas iniciais muito zuadas, já veio assim quando eu baixei o ot.

 

"14:26 Rashid: bem vindo, [Vip] Testee! eu o esperava filho da puta."

 

"14:26 Riona: bem vindo, [Vip] Testee! eu o esperava filho da puta."

 

já olhei no xml, no arquivo lua e não consegui encontrar onde mudar isso..

 

me ajuda ae por favor ou me indique outros npc's para substituir.

 

valew

Link para o comentário
Compartilhar em outros sites

Estou com 2 NPC's no meu Ot o Rashi e Riona eles estão com as falas iniciais muito zuadas, já veio assim quando eu baixei o ot.

 

"14:26 Rashid: bem vindo, [Vip] Testee! eu o esperava filho da puta."

 

"14:26 Riona: bem vindo, [Vip] Testee! eu o esperava filho da puta."

 

já olhei no xml, no arquivo lua e não consegui encontrar onde mudar isso..

 

me ajuda ae por favor ou me indique outros npc's para substituir.

 

valew

 

O que o NPC faz?

Mande o script deles

Link para o comentário
Compartilhar em outros sites

Estou com 2 NPC's no meu Ot o Rashi e Riona eles estão com as falas iniciais muito zuadas, já veio assim quando eu baixei o ot.

 

"14:26 Rashid: bem vindo, [Vip] Testee! eu o esperava filho da puta."

 

"14:26 Riona: bem vindo, [Vip] Testee! eu o esperava filho da puta."

 

já olhei no xml, no arquivo lua e não consegui encontrar onde mudar isso..

 

me ajuda ae por favor ou me indique outros npc's para substituir.

 

valew

 

O que o NPC faz?

Mande o script deles

 

 

NPC Riona (vende bps e outras coisas)

 

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Riona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

<health now="100" max="100"/>

<look type="329" head="132" body="0" legs="132" feet="0" addons="3"/>

<parameters>

<parameter key="module_shop" value="1"/>

<parameter key="shop_buyable" value="backpack,1988,20;

green backpack,1998,20;

brocade backpack,9774,20;

yellow backpack,1999,20;

red backpack,2000,20;

purple backpack,2001,20;

blue backpack,2002,20;

gray backpack,2003,20;

golden backpack,2004,20;

beach backpack,5949,20;

camouflage backpack,3940,20;

pirate backpack,5926,20;

fur backpack,5926,20;

pick,2553,10;

shovel,2554,20;

rope,2120,50"/>

</parameters>

</npc>

 

NPC Rashid (compra tudos os loots)

 

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Rashid" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

<health now="100" max="100"/>

<look type="133" head="132" body="0" legs="132" feet="0" addons="3"/>

<parameters>

<parameter key="module_shop" value="1"/>

<parameter key="shop_sellable" value="Dragon scale mail,2492,40000;Dwarven armor,2503,30000;Golden armor,2466,20000;Leopard armor,3968,1000;Mammoth fur cape,7463,6000;Pirate shirt,6095,500;Pirate knee breeches,5918,200;Bone shield,2541,80;Castle shield,2535,5000;Dark shield,2521,400;Demon shield,2520,30000;Medusa shield,2536,9000;Scarab shield,2540,2000;Tortoise shield,6131,150;Beholder helmet,3972,7500;Devil helmet,2462,1000;Krimhorn helmet,7461,200;Pirate hat,6096,1000;Ragnir helmet,7462,400;Skull helmet,5741,40000;Crocodile boots,3982,1000;Fur boots,7457,2000;Pirate boots,5462,3000;Steel boots,2645,30000;Amber staff,7426,8000;Beastslayer axe,3962,1500;Brutetamer's staff,7379,1500;Crystal sword,7449,600;Daramanian mace,2439,110;Daramanian waraxe,2440,1000;Diamond sceptre,7387,3000;Dragon slayer,7402,15000;Dragonbone staff,7430,3000;Furry club,7432,1000;Heavy machete,2442,90;Lunar staff,7424,5000;Mammoth whopper,7381,300;Sapphire hammer,7437,7000;Silver dagger,2402,500;Taurus mace,7425,500;War axe,2454,9000;Wyvern fang,7408,1500;Ancient amulet,2142,200;Scarab amulet,2135,200;Light Shovel,5710,300;Patched Boots,2641,2000"/>

<parameter key="shop_buyable" value=""/>

</parameters>

</npc>

Link para o comentário
Compartilhar em outros sites

Amigo passe o script.lua do npc nao xml

 

se vc nao sabe qual e o script.lua vou te ensinar

 

 

<npc name="Riona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

 

em vermelhor ele esta falando

Editado por mulizeu
Link para o comentário
Compartilhar em outros sites

os dois estão usando o mesmo arquivo .lua

 

default.lua

 

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

 

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end

function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end

function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end

function onThink() npcHandler:onThink() end

 

npcHandler:addModule(FocusModule:new())

Editado por Hique86
Link para o comentário
Compartilhar em outros sites

os dois estão usando o mesmo arquivo .lua

 

default.lua

 

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

 

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end

function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end

function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end

function onThink() npcHandler:onThink() end

 

npcHandler:addModule(FocusModule:new())

 

 

Substitui o "riona" por isso:

 

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Riona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

<health now="150" max="150"/>

<look type="329" head="132" body="0" legs="132" feet="0" addons="3"/>

<parameters>

<parameter key="module_shop" value="1"/>

<parameter key="message_greet" value="Ola |PLAYERNAME|. Eu vendo acessorios, se deseja comprar diga {trade}."/>

<parameter key="shop_buyable" value="backpack,1988,20;green backpack,1998,20;brocade backpack,9774,20;brocade backpack,9774,20;yellow backpack,1999,20;red backpack,2000,20;purple backpack,2001,20"/>

</parameters>

</npc>

 

Edite os itens que deseja colcoar a venda !!

 

No rashid, faça a mesma coisa:

 

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Rashid" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

<health now="100" max="100"/>

<look type="146" head="12" body="101" legs="122" feet="115" addons="2"/>

<parameters>

<parameter key="module_shop" value="1"/>

<parameter key="message_greet" value="Ola |PLAYERNAME|. Eu compro diversos equipamentos, se estiver interesado diga {trade}."/>

<parameter key="shop_sellable" value="Dragon scale mail,2492,40000;Dwarven armor,2503,30000;Golden armor,2466,20000;Leopard armor,3968,1000;Mammoth fur cape,7463,6000;Pirate shirt,6095,500;Pirate knee breeches,5918,200;Bone shield,2541,80;Castle shield,2535,5000;Dark shield,2521,400;Demon shield,2520,30000;Medusa shield,2536,9000;Scarab shield,2540,2000;Tortoise shield,6131,150;Beholder helmet,3972,7500;Devil helmet,2462,1000;Krimhorn helmet,7461,200;Pirate hat,6096,1000;Ragnir helmet,7462,400;Skull helmet,5741,40000;Crocodile boots,3982,1000;Fur boots,7457,2000;Pirate boots,5462,3000;Steel boots,2645,30000;Amber staff,7426,8000;Beastslayer axe,3962,1500;Brutetamer's staff,7379,1500;Crystal sword,7449,600;Daramanian mace,2439,110;Daramanian waraxe,2440,1000;Diamond sceptre,7387,3000;Dragon slayer,7402,15000;Dragonbone staff,7430,3000;Furry club,7432,1000;Heavy machete,2442,90;Lunar staff,7424,5000;Mammoth whopper,7381,300;Sapphire hammer,7437,7000;Silver dagger,2402,500;Taurus mace,7425,500;War axe,2454,9000;Wyvern fang,7408,1500;Ancient amulet,2142,200;Scarab amulet,2135,200;Light Shovel,5710,300;Patched Boots,2641,2000"/>

<parameter key="shop_buyable" value=""/>

</parameters>

</npc>

Editado por Lolksky
Link para o comentário
Compartilhar em outros sites

Sobre o 1° npc eu n reiparei no defaut mais tente assim

 

<npc name="Riona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="143" head="0" body="126" legs="87" feet="87" addons="3"/>
   	<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Ola |PLAYERNAME|. Eu vendo equipamentos. Diga {trade}."/>
<parameter key="shop_buyable" value="backpack,1988,20;
green backpack,1998,20;
brocade backpack,9774,20;
yellow backpack,1999,20;
red backpack,2000,20;
purple backpack,2001,20;
blue backpack,2002,20;
gray backpack,2003,20;
golden backpack,2004,20;
beach backpack,5949,20;
camouflage backpack,3940,20;
pirate backpack,5926,20;
fur backpack,5926,20;
pick,2553,10;
shovel,2554,20;
rope,2120,50"/>/>
</parameters>
</npc>

 

 

 

se nao der tente esse aki

 

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Riona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">
<health now="100" max="100"/>
<look type="329" head="132" body="0" legs="132" feet="0" addons="3"/>
<parameters>
<parameter key="module_shop" value="1"/>
<parameter key="message_greet" value="Ola |PLAYERNAME|. Eu vendo equipamentos. Diga {trade}."/>
<parameter key="shop_buyable" value="backpack,1988,20;
green backpack,1998,20;
brocade backpack,9774,20;
yellow backpack,1999,20;
red backpack,2000,20;
purple backpack,2001,20;
blue backpack,2002,20;
gray backpack,2003,20;
golden backpack,2004,20;
beach backpack,5949,20;
camouflage backpack,3940,20;
pirate backpack,5926,20;
fur backpack,5926,20;
pick,2553,10;
shovel,2554,20;
rope,2120,50"/>
</parameters>
</npc>

Editado por mulizeu
Link para o comentário
Compartilhar em outros sites

os dois estão usando o mesmo arquivo .lua

 

default.lua

 

local keywordHandler = KeywordHandler:new()

local npcHandler = NpcHandler:new(keywordHandler)

NpcSystem.parseParameters(npcHandler)

 

function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end

function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end

function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end

function onThink() npcHandler:onThink() end

 

npcHandler:addModule(FocusModule:new())

 

 

Substitui o "riona" por isso:

 

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Riona" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

<health now="150" max="150"/>

<look type="329" head="132" body="0" legs="132" feet="0" addons="3"/>

<parameters>

<parameter key="module_shop" value="1"/>

<parameter key="message_greet" value="Ola |PLAYERNAME|. Eu vendo acessorios, se deseja comprar diga {trade}."/>

<parameter key="shop_buyable" value="backpack,1988,20;green backpack,1998,20;brocade backpack,9774,20;brocade backpack,9774,20;yellow backpack,1999,20;red backpack,2000,20;purple backpack,2001,20"/>

</parameters>

</npc>

 

Edite os itens que deseja colcoar a venda !!

 

No rashid, faça a mesma coisa:

 

<?xml version="1.0" encoding="UTF-8"?>

<npc name="Rashid" script="data/npc/scripts/default.lua" walkinterval="2000" floorchange="0">

<health now="100" max="100"/>

<look type="146" head="12" body="101" legs="122" feet="115" addons="2"/>

<parameters>

<parameter key="module_shop" value="1"/>

<parameter key="message_greet" value="Ola |PLAYERNAME|. Eu compro diversos equipamentos, se estiver interesado diga {trade}."/>

<parameter key="shop_sellable" value="Dragon scale mail,2492,40000;Dwarven armor,2503,30000;Golden armor,2466,20000;Leopard armor,3968,1000;Mammoth fur cape,7463,6000;Pirate shirt,6095,500;Pirate knee breeches,5918,200;Bone shield,2541,80;Castle shield,2535,5000;Dark shield,2521,400;Demon shield,2520,30000;Medusa shield,2536,9000;Scarab shield,2540,2000;Tortoise shield,6131,150;Beholder helmet,3972,7500;Devil helmet,2462,1000;Krimhorn helmet,7461,200;Pirate hat,6096,1000;Ragnir helmet,7462,400;Skull helmet,5741,40000;Crocodile boots,3982,1000;Fur boots,7457,2000;Pirate boots,5462,3000;Steel boots,2645,30000;Amber staff,7426,8000;Beastslayer axe,3962,1500;Brutetamer's staff,7379,1500;Crystal sword,7449,600;Daramanian mace,2439,110;Daramanian waraxe,2440,1000;Diamond sceptre,7387,3000;Dragon slayer,7402,15000;Dragonbone staff,7430,3000;Furry club,7432,1000;Heavy machete,2442,90;Lunar staff,7424,5000;Mammoth whopper,7381,300;Sapphire hammer,7437,7000;Silver dagger,2402,500;Taurus mace,7425,500;War axe,2454,9000;Wyvern fang,7408,1500;Ancient amulet,2142,200;Scarab amulet,2135,200;Light Shovel,5710,300;Patched Boots,2641,2000"/>

<parameter key="shop_buyable" value=""/>

</parameters>

</npc>

 

 

Aeeeeeeeeeeee, karacolhes mannnnn, valewwwwwwwwwwwwwwwwwwwwwwwwwwww

 

funcionou certinho aquiiii...

 

me add no msn man

 

hique_86@hotmail.com

Link para o comentário
Compartilhar em outros sites

  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...