Tudo que Wakon postou
-
(Resolvido)Outfit.lua no such file
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.
-
(Resolvido)Outfit.lua no such file
Não está encontrando o outfit.lua, veja se você não colocou o nome do script em "Data/creaturescripts/scripts" errado.
-
Comandos GOD não funcionam
Tente colocar o type da account em 3 ou 5.
-
Bug no slot de armor
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.
-
Bug no slot de armor
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.
-
Bug no slot de armor
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" />
-
Sem respostas no scripts
É 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.
-
(Resolvido)[PEDIDO] 2 NPC's - Teleportador / Transforma X item
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:
-
[Pokemon] Move Eruption
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"
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
Tentou trocar o XML pelo que eu passei?
-
ERROR: Unable to load config.lua
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/
-
ERROR: Unable to load config.lua
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.
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
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>
-
ERROR: Unable to load config.lua
Poste seu config.lua!
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
Poderia tirar uma foto da distro após tentar sumonar o npc, você pode estar trocando os arquivos.
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
Sim, está normal, ele apresenta algum erro na distro(executável)?
-
Script npc teletransportar.
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>
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
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.
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
Você tentou criar o NPC com comando no servidor? Exemplo: /n npcboss
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
Qual erro? Se funcionou normal com comando, é erro em outra coisa e não no script, tente importar corretamente ou usando outro nome.
-
(Resolvido)Preciso do Script NPC (teletransportar o player)
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())
-
(Resolvido)[AJUDA] como adiciono 1 comando no sql
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"
-
(Resolvido)[AJUDA] Npcs green djinn
Hauron.lua:
-
(Resolvido)[AJUDA] Npcs green djinn
É por que contém letras maiúsculas no nome, não reparei nisso, troque o Yaman.lua:
-
(Resolvido)[AJUDA] Npcs green djinn
Tu disse que já tirou da LIB então troca os script's dos NPC's em "Data/npc/scripts": Alesar.lua: Yaman.lua: