Ir para conteúdo

Wakon

Héroi
  • Registro em

  • Última visita

Tudo que Wakon postou

  1. O nome do script na tag deve ser o mesmo que na pasta scripts, se ele não está encontrando provavelmente você colocou algo errado. Se fosse erro no script, acusaria na distro o erro dentro do script, nesse caso ele não está encontrando, tente refazer o processo.
  2. Não está encontrando o outfit.lua, veja se você não colocou o nome do script em "Data/creaturescripts/scripts" errado.
  3. Tente colocar o type da account em 3 ou 5.
  4. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Isso ai eu nunca vi não, tu já testou isso para ver se realmente muda a defesa? Que eu saiba ele só da o atributo quando colocado no slot correto.
  5. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Esses locais no qual você tentou colocar a armor é normal, não é bug. Só será bug se for no slot de boots, helmet, legs, ring e amulet.
  6. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    Você precisa adicionar a armor em "Data/movements" no arquivo movements.xml: <movevent type="Equip" itemid="2472" slot="armor" event="function" value="onEquipItem"> <vocation id="4"/> <vocation id="8" showInDescription="0"/> <vocation id="3"/> <vocation id="7" showInDescription="0"/> </movevent> <movevent type="DeEquip" itemid="2472" slot="armor" event="function" value="onDeEquipItem"/> Se quiser deixar sem vocação é só tirar as <vocation id="id"/>! Talvez seja necessário adicionar em "Data/items" no arquivo items.xml, na parte da armor desejada: <attribute key="slotType" value="body" />
  7. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    É proibido oferecer suporte fora do fórum, leia as regras: http://www.tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Como você ofereceu suporte em dois tópicos, será negativado.
  8. Em "Data/npc/scripts" copie e cole um arquivo.LUA e renomeie para teleporter.lua, apague tudo e cole: local t = { item = 2160, -- Item necessário. pos = {x = 160, y = 54, z = 7} -- Local para onde irá teleportar. } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end msg = msg:lower(); local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'teleport') or msgcontains(msg, 'teleportar') then if getPlayerItemCount(cid, t.item) >= 1 then selfSay('Será cobrado um '..getItemNameById(t.item)..', tem certeza?', cid) talkState[talkUser] = 2 else selfSay('Você não tem um '..getItemNameById(t.item)..' em sua backpack.', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'yes') then if talkState[talkUser] == 2 then if doPlayerRemoveItem(cid, t.item, 1) then doTeleportThing(cid, t.pos) talkState[talkUser] = 0 else selfSay('Você não tem um '..getItemNameById(t.item)..'.', cid) talkState[talkUser] = 0 end end elseif msgcontains(msg, 'no') then if talkState[talkUser] == 2 then talkState[talkUser] = 0 selfSay('Ok...', cid) end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Agora em "Data/npc" copie e cole um arquivo.XML e renomeie para npcteleport.xml, apague tudo e cole: <npc name="NOMEDONPC" script="data/npc/scripts/teleporter.lua" floorchange="0" walkinterval="2000"> <health now="150" max="150"/> <look type="156" head="114" body="114" legs="0" feet="0" addons="3"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. Deseja se {teleportar}?" /> </parameters> </npc> Segundo NPC é só fazer a mesma coisa com criando novos nomes: "Data/npc/scripts" arquivo changeitem.lua: "Data/npc" arquivo changer.xml:
  9. Wakon postou uma resposta no tópico em Suporte Tibia OTServer
    O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → Geral" Para: "OTServ → Suporte OTServ → Suporte de Servidores Derivados"
  10. Troque seu config.lua por esse: E configure o site utilizando o Xampp: http://www.tibiaking.com/forum/topic/8861-como-criar-um-site-para-seu-servidor/
  11. Qual o servidor que você está utilizando? Versão? Esse está configurado para usar com mysql então você deve baixar o Xampp e conectar a database.
  12. Tente alterar o XML para esse: <?xml version="1.0" encoding="UTF-8"?> <npc name="Bossing" script="data/npc/scripts/npcboss.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="138" head="57" body="59" legs="40" feet="76" addons="0"/> <parameters> <parameter key="message_greet" value="Ola |PLAYERNAME|. Deseja desafiar o {boss}?"/> </parameters> </npc>
  13. Poste seu config.lua!
  14. Poderia tirar uma foto da distro após tentar sumonar o npc, você pode estar trocando os arquivos.
  15. Sim, está normal, ele apresenta algum erro na distro(executável)?
  16. Em "Data/npc/scripts" copie e cole um arquivo.LUA, renomeie para tpz.lua, apague tudo e cole isso: local t = { level = 8, -- Level necessário. pos = {x = 160, y = 54, z = 7}, -- Local para teleportar storage = 53222 -- Só mexa se necessário. } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end msg = msg:lower(); local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'quest') then if getPlayerLevel(cid) >= t.level then if getPlayerStorageValue(cid, t.storage) <= 0 then talkState[talkUser] = 2 selfSay('Tem certeza disso?', cid) else return selfSay('Você já fez esta quest.', cid) end else return selfSay('Você precisa de level '..t.level..' para fazer esta quest.', cid) end elseif msgcontains(msg, 'yes') then if talkState[talkUser] == 2 then doTeleportThing(cid, t.pos) setPlayerStorageValue(cid, t.storage, 1) return selfSay('Boa sorte.', cid) end elseif msgcontains(msg, 'no') then if talkState[talkUser] == 2 then talkState[talkUser] = 0 return selfSay('Ok...', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Vá em "Data/npc" copie e cole um arquivo.XML, renomeie para teleporter.xml, apague tudo e cole isso: <?xml version="1.0" encoding="UTF-8"?> <npc name="Teleporter" script="data/npc/scripts/tpz.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="138" head="57" body="59" legs="40" feet="76" addons="0"/> <parameters> <parameter key="message_greet" value="Olá |PLAYERNAME|. Deseja fazer a {quest}?"/> </parameters> </npc>
  17. Então está instalado errado, vamos lá: Na pasta "Data/npc/scripts" você copia e cola um arquivo.LUA e renomeia ele para npcboss.lua, apaga tudo dentro dele e cola isso: local t = { topos = {x = 160, y = 54, z = 7}, -- Local para onde o NPC enviara o player. level = 8, -- Level necessário. storage = 53244 -- Só altere caso essa esteja em uso. } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end msg = msg:lower(); local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'boss') then if getPlayerLevel(cid) >= t.level then if getPlayerStorageValue(cid, t.storage) <= 0 then selfSay('Tem certeza disso?', cid) talkState[talkUser] = 1 else selfSay('Você já desafiou o boss.', cid) talkState[talkUser] = 0 end else selfSay('Você precisa de level '..t.level..' para enfrentar o boss.', cid) end elseif msgcontains(msg, 'yes') then if talkState[talkUser] == 1 then selfSay('Boa sorte!', cid) setPlayerStorageValue(cid, t.storage, 1) doTeleportThing(cid, t.topos) end elseif msgcontains(msg, 'no') then if talkState[talkUser] == 1 then selfSay('Ok...', cid) talkState[talkUser] = 0 end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Agora em "Data/NPC" você copia e cola um arquivo.XML e renomeia para npcboss.xml, apague tudo e cole: <?xml version="1.0" encoding="UTF-8"?> <npc name="Bossing" script="data/npc/scripts/npcboss.lua" walkinterval="2000" floorchange="0"> <health now="100" max="100"/> <look type="138" head="57" body="59" legs="40" feet="76" addons="0"/> <parameters> <parameter key="message_greet" value="Olá |PLAYERNAME|. Deseja desafiar o {boss}?"/> </parameters> </npc> Para criar o NPC use /n npcboss, caso queira alterar o nome dele, altere apenas no arquivo.XML na parte <npc name ="Bossing", testei e está funcional.
  18. Você tentou criar o NPC com comando no servidor? Exemplo: /n npcboss
  19. Qual erro? Se funcionou normal com comando, é erro em outra coisa e não no script, tente importar corretamente ou usando outro nome.
  20. Testa ai: local t = { topos = {x = 160, y = 54, z = 7}, -- Local para onde o NPC enviara o player. level = 3500, -- Level necessário. storage = 53244 -- Só altere caso essa esteja em uso. } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} 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 function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end msg = msg:lower(); local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if msgcontains(msg, 'boss') then if getPlayerLevel(cid) >= t.level then if getPlayerStorageValue(cid, t.storage) <= 0 then selfSay('Tem certeza disso?', cid) talkState[talkUser] = 1 else selfSay('Você já desafiou o boss.', cid) talkState[talkUser] = 0 end else selfSay('Você precisa de level '..t.level..' para enfrentar o boss.', cid) end elseif msgcontains(msg, 'yes') then if talkState[talkUser] == 1 then selfSay('Boa sorte!', cid) setPlayerStorageValue(cid, t.storage, 1) doTeleportThing(cid, t.topos) end elseif msgcontains(msg, 'no') then if talkState[talkUser] == 1 then selfSay('Ok...', cid) talkState[talkUser] = 0 end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  21. Aperta Alt+E, cole o código e aperte F9. O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Suporte OTServ → Suporte de Scripts" Para: "OTServ → Suporte OTServ → Suporte de Programação"
  22. É por que contém letras maiúsculas no nome, não reparei nisso, troque o Yaman.lua:
  23. Tu disse que já tirou da LIB então troca os script's dos NPC's em "Data/npc/scripts": Alesar.lua: Yaman.lua:

Informação Importante

Confirmação de Termo