GaaraDaAreia 0 Postado Junho 20, 2015 Share Postado Junho 20, 2015 Gente, eu estou trabalhando com um servidor aqui e tive que editar o itens.otb dele, eu adicionei itens novos mas usando as sprites que já existem no tibia normal, usando o mesmo cid. Deu certo, criei eles, consigo criar usando o GOD, eles estão funcionando normal, porém meu problema é que o NPC não consegue vender eles. Eu configurei o NPC pra vender esse custom item e quando eu abro a janela de trade ele até aparece lá, porém eu clico em comprar e nada acontece, mesmo eu tendo o dinheiro suficiente, alguém poderia me ajudar? Link para o comentário https://xtibia.com/forum/topic/234931-npc-bugado/ Compartilhar em outros sites More sharing options...
Oiuhygwueuho 5 Postado Junho 20, 2015 Share Postado Junho 20, 2015 acho q tem um arquivo chamado itens.xml já mecheu nele? faz tempo q n crio server Link para o comentário https://xtibia.com/forum/topic/234931-npc-bugado/#findComment-1657116 Compartilhar em outros sites More sharing options...
AdilsonHacker 98 Postado Junho 21, 2015 Share Postado Junho 21, 2015 Posta o script do npc. Link para o comentário https://xtibia.com/forum/topic/234931-npc-bugado/#findComment-1657158 Compartilhar em outros sites More sharing options...
GaaraDaAreia 0 Postado Junho 21, 2015 Autor Share Postado Junho 21, 2015 (editado) O Script do NPC: <?xml version="1.0" encoding="UTF-8"?> <npc name="Knight Seller" script="data/npc/scripts/default.lua" walkinterval="1500" speed="100" walkradius="2" floorchange="0"> <health max="100" now="100"/> <look type="131" head="116" body="92" legs="95" feet="95" addons="3" mount="0"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Ola |PLAYERNAME|. Eu vendo bought warrior itens. Diga {trade}."/> <parameter key="shop_buyable" value="bought warrior helmet,12633,1000000;bought warrior armor,12634,1000000;bought warrior legs,12635,1000000;bought warrior boots,12636,1000000;bought warrior shield,12637,1000000;bought warrior club,12638,1000000;bought warrior axe,12640,1000000;bought warrior sword,12639,1000000"/> </parameters> </npc> A parte do items.xml que tá esses itens: <item id="12633" article="a" name="bought warrior helmet"> <attribute key="slotType" value="head" /> <attribute key="weight" value="100" /> <attribute key="armor" value="1" /> </item> <item id="12634" article="a" name="bought warrior armor"> <attribute key="slotType" value="body" /> <attribute key="weight" value="100" /> <attribute key="armor" value="1" /> </item> <item id="12635" article="a" name="bought warrior legs"> <attribute key="slotType" value="legs" /> <attribute key="weight" value="100" /> <attribute key="armor" value="1" /> </item> <item id="12636" article="a" name="bought warrior boots"> <attribute key="slotType" value="feet" /> <attribute key="weight" value="100" /> <attribute key="armor" value="1" /> </item> <item id="12637" article="a" name="bought warrior shield"> <attribute key="weaponType" value="shield" /> <attribute key="weight" value="100" /> <attribute key="defense" value="1" /> </item> <item id="12638" article="a" name="bought warrior club"> <attribute key="weaponType" value="club" /> <attribute key="weight" value="100" /> <attribute key="defense" value="1" /> <attribute key="attack" value="1" /> </item> <item id="12639" article="a" name="bought warrior sword"> <attribute key="weaponType" value="sword" /> <attribute key="weight" value="100" /> <attribute key="defense" value="1" /> <attribute key="attack" value="1" /> </item> <item id="12640" article="a" name="bought warrior axe"> <attribute key="weaponType" value="axe" /> <attribute key="weight" value="100" /> <attribute key="defense" value="1" /> <attribute key="attack" value="1" /> </item> Lembrando que esses itens são novos no items.otb, mas eles tem um ID novo, só que usando a sprite de items que já tem normalmente no jogo. Editado Junho 21, 2015 por GaaraDaAreia Link para o comentário https://xtibia.com/forum/topic/234931-npc-bugado/#findComment-1657216 Compartilhar em outros sites More sharing options...
Bruno 536 Postado Julho 14, 2015 Share Postado Julho 14, 2015 O tópico foi fechado e movido para lixeira por estar inativo a mais de 10 dias. Caso seja preciso reabrir o mesmo, favor entrar em contato com a equipe. Link para o comentário https://xtibia.com/forum/topic/234931-npc-bugado/#findComment-1660151 Compartilhar em outros sites More sharing options...
Posts Recomendados