Postado Outubro 27, 2019 5 anos Administrador .Qual servidor ou website você utiliza como base? TFS 1.3 Sem erro na source. Seguinte o npc faz os dialogos segue a tree não deixa pular as conversas etc, ele chega a adicionar o item mas não adiciona a storage. oque esta errado? help? 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 local voices = { { text = 'Add one fresh dead human and stir it well... ' }, { text = 'Argh, if I only had a pan!' }, { text = 'Head, Legs, Feet and Fingers! All fresh!' }, { text = 'Buying fresh dead humans!' }, { text = 'Buying many types of humans and ingredients, too!' }, { text = 'Hmm, hmm, now which ingredients do I need...' }, { text = 'Need food? I have plenty for sale!' } } npcHandler:addModule(VoiceModule:new(voices)) -- Basic keywords keywordHandler:addKeyword({'satan'}, StdModule.say, {npcHandler = npcHandler, text = 'You will oath to the devil {oracle},you join us thats your DEAL. {no}.'}) keywordHandler:addKeyword({'name'}, StdModule.say, {npcHandler = npcHandler, text = 'Billy.'}) keywordHandler:addKeyword({'job'}, StdModule.say, {npcHandler = npcHandler, text = 'I\'m a farmer and a {cook}. I\'d love to make pancakes, but I\'m eat soul know a good {king}.'}) keywordHandler:addKeyword({'time'}, StdModule.say, {npcHandler = npcHandler, text = 'I came here for peace and leisure, so leave me alone with \'time\'.'}) keywordHandler:addKeyword({'how', 'are', 'you'}, StdModule.say, {npcHandler = npcHandler, text = 'Thank you, I\'m satan.'}) keywordHandler:addKeyword({'help'}, StdModule.say, {npcHandler = npcHandler, text = 'I\'m a cook, not a priest. If you need information, I can provide you with general {cook}.'}) keywordHandler:addKeyword({'cook'}, StdModule.say, {npcHandler = npcHandler, text = 'I\'m the best cook around the hell. You can sell most types of {devils} to me. Just ask me for a {Alastair the uniue god} to see what satan have to offer for you guys..'}) keywordHandler:addKeyword({'devil'}, StdModule.say, {npcHandler = npcHandler, text = 'wee need boss killers, to hunt some devils, will not provide more information about that. so you want make a Satan Deal? {Satan Deal}.'}) keywordHandler:addKeyword({'demons'}, StdModule.say, {npcHandler = npcHandler, text = 'yeah, they are pretty cool, i think fuck then, but we all love {satan}.'}) keywordHandler:addKeyword({'hints'}, StdModule.say, {npcHandler = npcHandler, text = 'As an adventurer, you should always have at least a backpack, a rope, a shovel, a weapon, an armor and a shield.'}) keywordHandler:addKeyword({'trade'}, StdModule.say, {npcHandler = npcHandler, text = 'There are lots and lots of dusty books. You can read them for some basic knowledge about the world.Oh yeah i sell souls.'}) keywordHandler:addKeyword({'king'}, StdModule.say, {npcHandler = npcHandler, text = 'The king and his tax collectors are far away. You\'ll meet them soon enough.'}) keywordHandler:addKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, text = 'That\'s right, I\'m the god of cooking!'}) -- Start H1QUEST -- local panKeyword = keywordHandler:addKeyword({'oracle'}, StdModule.say, {npcHandler = npcHandler, text = 'you need find one person its close to {bron} on amazon camp, carlin'}) panKeyword:addChildKeyword({'bron'}, StdModule.say, {npcHandler = npcHandler, text = 'The fortress are close to bron.', reset = true}, function(player) return player:getStorageValue(6666) < 0 end, function(player) player:setStorageValue(6666, 1) player:addItem(8704, 1) end ) panKeyword:addChildKeyword({''}, StdModule.say, {npcHandler = npcHandler, text = 'YOU NEED FINDS FOR ME FIND IT, GO THERE KILL THE DEVILS!', reset = true}) npcHandler:setMessage(MESSAGE_WALKAWAY, 'HAIL SATAN!') npcHandler:setMessage(MESSAGE_FAREWELL, '.....') npcHandler:setMessage(MESSAGE_SENDTRADE, 'Satan !.') npcHandler:setMessage(MESSAGE_GREET, 'Hello, |PLAYERNAME|. I\'m a Satan and cook, maybe I can interest you in a {trade} with soul? You can also ask me for general {demons} about {hints}?.') npcHandler:addModule(FocusModule:new()) TibiaKing Team- KingTópicos www.tibiaking.com
Postado Outubro 27, 2019 5 anos Solução Aparentemente está correto, você relogou o char e tentou ver na database se o player estava com a storage? Pois a storage só entra na database ao relogar que é quando o player salva.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.