Ir para conteúdo
Banner com Efeitos

L3K0T

Diretor
  • Registro em

  • Última visita

Tudo que L3K0T postou

  1. ok xo fazer aqui rapidão to com sono kkkk npc <?xml version="1.0"?> <npc name="Paladin" script="data/npc/scripts/vocacao.lua" access="1" monster="1" speed="0" lookdir="2" pushable="0" level="100"> <health now="150" max="150"/> <look type="51" head="120" body="120" legs="114" feet="114" addons="3"/> <parameters> <parameter key="message_greet" value="Ola {|PLAYERNAME|}, voce deseja vira {paladin} ?" /> </parameters> </npc> scripts vocacao.lua 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 local talkUser = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid if getPlayerVocation(cid) > 3 then selfSay('{'..getPlayerName(cid)..'} Eu já te ajudei!!', cid) return true end if(msgcontains(msg, 'Paladin') or msgcontains(msg, 'paladin')) then selfSay('Bom se você chegou aqui é por que você está muito corajoso e vc deja virar {paladin} ?', cid) talkState[talkUser] = 1 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 1) then doPlayerSetVocation(cid, 3) doPlayerAddItem(cid, 2160, 60) --2160 é i id do item 60 é a quantidade-- selfSay('Parabéns {'..getPlayerName(cid)..'}, agora você é da vocacão paladin', cid) end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) me fala os itens que eu termino ele
  2. L3K0T postou uma resposta no tópico em Suporte Tibia OTServer
    config.lua n compativel mas tente reinstalar ele
  3. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} local pos = {x=152,y=58,z=7} --Pos para onde o player sera levado-- local itemid = 2468 --Id do item que vai ser removido do player-- 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 if msgcontains(msg, "offer") or msgcontains(msg, "help") then selfSay("Eu posso te levar a TAL lugar por um "..getItemNameById(itemid).." item, fale {travel} se quizer viajar.", cid) talkState[cid] = 0 elseif msgcontains(msg, 'travel') then if doPlayerRemoveItem(cid, itemid, 1) then selfSay("Boa viagem.", cid) doTeleportThing(cid, pos) else selfSay("Voce nao tem o item nescessario.", cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  4. a data base não é dele, pega de outro server na mesma versão do seu server...
  5. cria né kkkkk global.lua
  6. viu assim a gente resolve rsrs importa a data base e vamos fazer do zero....
  7. olha lá em cima editei
  8. malz eu nm vi kkkk mas tu ja tem as tabela da guild lá em player em data base ? estão corretas lá ? add na pasta lib global.lua e coloca isso dentro function getPlayerNameByGUID(guid) local name = 0 local resultId = db.getResult("SELECT `name` FROM `players` WHERE `id` = " .. guid) if(resultId:getID() ~= -1) then name = resultId.getDataString(resultId, "name") resultId:free() end return name end
  9. liga o server com sqlite e veja se ligar é data base faça o teste....
  10. manda ai pra gente seu script lá do talkactions
  11. config.lua storeTrash = true deixa false e tente,....
  12. qual é a memória do seu pc e qual versão 64 biits ou 32 bits ? vc pode ativar a dep pra ver se funfa de boa fica lá em iniciar/sistemas/configuração avançada/ sistema/avaçada/ configuração de memória
  13. ALTER TABLE `Accounts` ADD `blocked` NOT NULL DEFAULT '0',
  14. sim eu te ajudo, vai em config.php lá na pasta htdocs. procura: $config['database']['host'] = " muda pra $config['database']['host'] = "%DB_HOST%"; $config['database']['login'] = " muda pra $config['database']['login'] = "%DB_LOGIN%"; $config['database']['password'] = " muda pra $config['database']['password'] = "%DB_PASS%"; $config['database']['database'] = " muda pra $config['database']['database'] = "%DB_NAME%"; $config['server_name'] = " muda pra $config['server_name'] = "%SERVER_NAME%"; isso vai fazer instalar o sample que esta em install provavelmente vc importo ele lá :0 as senhas estão criptografadas em Sha1
  15. manda seu config.lua fazendo favor...
  16. poste umas imagens e os links do acesso da guild pra que eu possa lhe ajudar!
  17. Object Builder compila em opção estendido, mas se lembre que os clientes da CipSoft não suporte, só OTC boa sorte!
  18. mano olha lá em cima que editei CREATE TABLE IF NOT EXISTS `z_news_big` ( `hide_news` tinyint(1) NOT NULL DEFAULT '0', `date` int(11) NOT NULL DEFAULT '0', `author` varchar(255) NOT NULL, `author_id` int(11) NOT NULL, `image_id` int(3) NOT NULL DEFAULT '0', `topic` varchar(255) NOT NULL, `text` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  19. eu modifiquei olha lá
  20. Meu letestnews.php é o seguinte: add lá e vai mandando os erros pra mim add isso no data base CREATE TABLE IF NOT EXISTS `z_news_big` ( `hide_news` tinyint(1) NOT NULL DEFAULT '0', `date` int(11) NOT NULL DEFAULT '0', `author` varchar(255) NOT NULL, `author_id` int(11) NOT NULL, `image_id` int(3) NOT NULL DEFAULT '0', `topic` varchar(255) NOT NULL, `text` text NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  21. dat editor ja era fio usa object builder é bem melhor e sem problemas lá vc vai saber mais fácil http://www.tibiaking.com/forum/topic/30624-object-builder/veja os vidios no youtube se vai gostar!

Informação Importante

Confirmação de Termo