Ir para conteúdo

9k22

Membro
  • Registro em

  • Última visita

Tudo que 9k22 postou

  1. São todos os bosses, após mata-los não está contando no NPC, todo o problema é isso! Ex: eu mato os 300 crocodile e conta normalmente, ai ganho xp e o npc manda eu matar o boss que é o snapper, após mata-lo o npc não conta e fica como eu não tivesse matado o boss. Espero que consiga me ajudar, obrigado.
  2. Bem, estou com um task system completo aqui 8.7 mais possui um problema que não estou conseguindo solucionar! Tipo, está tudo 100%, mais o problema é na hora que ele pede para matar o boss, é nessa parte que o player mapa o boss mais nada aconteçe, o npc não reconheçe que o player matou o boss, já adicionei a tag lá na pasta do monstro! Tipo, alguem poderia fazer 2 coisas para mim? ou uma ou outra.. 1º - Tirar todos os bosses, não precisando o player matar tal boss! 2º - Arrumar para que funcione corretamente (bem melhor rsrs) Aqui o npc.xml local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic = {} local data = { [14007] = {'crocodile', 'Happy hunting, old chap! Come back to me when you are through with your task.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u crocodiles. Come back to me when you are done.', 'Spiffing work, old chap. Now I have a special task for you. Recently several citizens of Port Hope have vanished. It is rumoured that they were killed by a crocodile. The people call it \'Snapper\'. Hunt down and kill that evil man eating beast.', 800, 1, 'Snapper', }, [14008] = {'tarantula', 'Happy hunting, old chap! Come back to me when you are through with your task.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u tarantulas. Come back to me when you are done.', 'Nicely done! Now I shall assign you a special task. Rumour has it that there is an ancient and evil tarantula who preys on humans. She is called \'Hide\'. Track her down and kill her! Good luck, old chap.', 1500, 1, 'Hide'}, [14009] = {'carniphila', 'Good show, old chap! Speak to me again when you are done hunting.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u carniphilas. Come back to me when you are done.', 'That took some time, huh? Good hunting though. If you\'re up for another hunting mission just ask me for a {task}.', 1500, 1}, [14010] = {'stone golem', 'Happy hunting, friend! When you have finished hunting, return here. ', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u stone golems. Come back to me when you are done.', 'Good show, old chap. If you\'re up for another hunting mission just ask me for a task.', 2000, 1}, [14011] = {'mammoth', 'Happy hunting, friend! Come back to me when you are done hunting.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u mammoths. Come back to me when you are done.', 'Jolly good job you did there, but now I have a special task for you. The citizens of Svargrond live in fear because of a frightfully bad-tempered mammoth they call \'Blood Tusk\'. Go there and put an end to him. Happy hunting!', 'Bloodtusk', 4000, 1}, [14012] = {'ice golem', 'Happy hunting, friend! Come back to me when you are done hunting.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u ice golems. Come back to me when you are done.', 'As i see it, you need more of a challenge! I have heard that there is an ice golem the hunters in Svargrond call \'Shardhead\'. He is an extremely dangerous example of his kind! I believe you are equal to the task, %s!', 15000, 1, 'Shardhead'}, [14013] = {'quara constrictor scout', 'Happy hunting, friend! Come back to me when you are done hunting.', 'Alright, then you should go on with your task. You have already killed %u quara scouts in total. Come back to me when you are done.', 'Jolly good show! What a hunter! If you\'re up for another hunting mission just ask me for a {task}.', 10000, 1}, -- ? [14014] = {'quara constrictor', 'Happy hunting, friend! Come back to me when you are done hunting.', 'Alright, then you should go on with your task. You have already killed %u underwater quaras in total. Come back to me when you are done.', 'Superb work. However, there is something else I want you to do. It is said that there is a Quara general named \'Thul\' who is responsible for the attacks on Liberty Bay. Find him and kill him and bring peace to Liberty bay!', 12000, 1, 'Thul'}, -- OK [14015] = {'water elemental', 'Happy hunting, my old mocker! Come back to me when you are done hunting. ', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u water elementals. Come back to me when you are done.', 'Fantastic! If you\'re up for another hunting mission just ask me for a {task}.', 7000, 1}, [14016] = {'earth elemental', 'Happy hunting, friend! Come back to me when you are done hunting. ', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u earth elementals. Come back to me when you are done.', 'Fantastic! If you\'re up for another hunting mission just ask me for a {task}.', 10000, 1}, [14017] = {'energy elemental', 'Happy hunting, pal! Come back to me when you are done hunting. ', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u energy elementals. Come back to me when you are done.', 'Fantastic! If you\'re up for another hunting mission just ask me for a {task}.', 10000, 1}, [14018] = {'fire elemental', 'Happy hunting, old friend! Come back to me when you are done hunting. ', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u fire elementals. Come back to me when you are done.', 'Fantastic! If you\'re up for another hunting mission just ask me for a {task}.', 7000, 1}, [14019] = {'mutated rat', 'Happy hunting, old chap! Come back to me when you are done hunting. ', 'Alright, then stop dilly dallying here and go on with your task. You have already exterminated %u mutated rats. Come back to me when you are done.', {'Very good work, old chap. Lucky you are here - I have just been told of a task which is perfect for you. ...', 'The Yalaharians are having a spot of bother with a huge mutated rat. They call it \'Esmeralda\' and you should find her somewhere in the sewers. Good hunting!'}, 10000, 1, 'Esmeralda'}, -- OK [14020] = {'giant spider', 'Jolly good show! Come back to me when you are done hunting. ', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u giant spiders. Come back to me when you are done.', 'Well THAT was a hunt. Good job. Have you heared about \'The Old Widow\'? It must have a hideout. Try to find it and slay the beast.', 5000, 1, 'Old Widow'}, [14021] = {'hydra', 'Happy hunting, old chap! Come back to me when you are done hunting.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u hydras. Come back to me when you are done.', {'With Nornur the God of Fate as my witness, you are truly born to hunt. If anyone can do this task, you can! Listen: ...', 'It is said that the Lizards of Chor are training hydras for attacks against us. They have already successfully bred a hydra named \'The Many\'. Find her and kill her!'}, 0, 2, 'Many'}, [14001] = {'sea serpent', 'Happy hunting, old chap! Come back to me when you are done hunting.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u sea serpents. Come back to me when you are done.', 'Good job, old chap! Are you up for a challenge? Have you heard of the legendary sea serpent called \'The Leviathan\'? It must be somewhere near the spot you found. This is a true test of your hunting skills - find it and kill it. Good hunting!', 0, 2, 'Leviathan'}, [14022] = {'behemoth', 'Happy hunting, old chap! Come back to me when you are done hunting.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u behemoths. Come back to me when you are done.', 'Such marvellous hunting skills! Perhaps you can help me with this one. Have you heard about \'Stonecracker\'? ...', 0, 2, 'Stonecracker'}, -- OK [14002] = {'serpent spawn', 'Happy hunting, old chap! Come back to me when you are done hunting.', 'Alright, then return to your duties! Day light is a-wasting! You have already smashed %u serpent spawns. Come back to me when you are done.', 'My - you can be proud of yourself! However, you\'re not finished yet. There are rumours about a being called \'The Noxious Spawn\' which was seen deep down in the ruins of Banuta. Try to find its hideout.', 0, 2, 'Noxious Spawn'}, } local curTask = 14500 local points = 14501 local rank = 14502 local questLog = 14503 local tiquanda = 14505 local demodras = 14506 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 greetCallback(cid) local cur, r, msg = getPlayerStorageValue(cid, points), getPlayerStorageValue(cid, rank) if cur >= 5 and r < 1 then msg = 'Welcome back |PLAYERNAME|. You have completed 5 tasks for our society. Ask me for a {promotion} to advance your rank!' elseif cur >= 10 and r < 2 then msg = 'Good to see you again |PLAYERNAME|. You have completed 10 tasks for our society. Ask me for a {promotion} to advance your rank!' elseif cur >= 20 and r < 3 then msg = 'Salutations |PLAYERNAME|. You have completed 20 tasks for our society. Ask me for a {promotion} to advance your rank!' elseif cur >= 30 and r < 4 then msg = 'Always good to welcome you back, |PLAYERNAME|. You have completed 30 tasks for our society. Ask me for a {promotion} to advance your rank!' elseif cur >= 50 and r < 5 then msg = 'By the gods....50 hunting tasks....this is astounding! Ask me for a {promotion} to advance your rank! And while you are here, I also have another {special} task for you.' else msg = 'Welcome back |PLAYERNAME|. What brings you here this time?' end npcHandler:setMessage(MESSAGE_GREET, msg) Topic[cid] = 0 return true end function creatureSayCallback(cid, _type, msg) if not npcHandler:isFocused(cid) then return false end if msgcontains(msg, 'task') then local cur = getPlayerStorageValue(cid, curTask) if cur < 1 or (cur ~= 14006 and getPlayerStorageValue(cid, cur) == tasks[data[cur][1]].amount + 1 and getPlayerStorageValue(cid, cur + 100) == -1) then local v, lvl = '', getPlayerLevel(cid) if lvl < 50 then v, Topic[cid] = '{Crocodiles}, {tarantulas}, {carniphilas}, {stone golems} or {mammoths}', 1 elseif lvl < 90 then v, Topic[cid] = '{Ice golems}, {Quara}, {elementals}, {mutated rats} or {giant spiders}', 2 elseif 90 <= lvl then v, Topic[cid] = '{Hydras}, {sea serpents}, {behemoths}' .. (getPlayerStorageValue(cid, rank) == 5 and ', {serpent spawns} or {demons}' or ' or {serpent spawns}'), 3 end selfSay('All right, what would you like to hunt? ' .. v .. '?', cid) elseif cur == 14006 and getPlayerStorageValue(cid, cur) == tasks['demon'].amount then selfSay({'Such derring do deserves a special reward! Take this holy icon. It neutralizes great evil and gives you access to areas which are protected by those forces. But remember ...', 'This is a one time opportunity! You won\'t get the holy icon twice.'}, cid) doPlayerAddItem(cid, 10305, 1) setPlayerStorageValue(cid, curTask, -1) elseif cur ~= 14006 and getPlayerStorageValue(cid, cur) == tasks[data[cur][1]].amount and getPlayerStorageValue(cid, cur + 100) < 1 then local tmp if type(data[cur][4]) == 'table' then tmp = {} for i = 1, #data[cur][4] do tmp[i] = string.format(data[cur][4][i], getCreatureName(cid)) end end selfSay(tmp or string.format(data[cur][4], getCreatureName(cid)), cid) if data[cur][5] > 0 then doPlayerAddExp(cid, data[cur][5]) doSendAnimatedText(getThingPos(cid), data[cur][5], 215) end if data[cur][6] then setPlayerStorageValue(cid, points, getPlayerStorageValue(cid, points) + 1) end if data[cur][7] then -- special task (he sends you to kill the boss) setPlayerStorageValue(cid, cur + 100, 1) end setPlayerStorageValue(cid, cur, getPlayerStorageValue(cid, cur) + 1) Topic[cid] = 0 elseif getPlayerStorageValue(cid, cur + 100) == 2 then setPlayerStorageValue(cid, points, getPlayerStorageValue(cid, points) + (isInArray({14001, 14002, 14021, 14022}, cur) and 2 or 1)) selfSay('Fantastic! If you\'re up for another hunting mission just ask me for a {task}.', cid) setPlayerStorageValue(cid, cur + 100, -1) else selfSay(getPlayerStorageValue(cid, cur + 100) < 1 and 'You are not done with your task yet. Come back to me when you are. Or do you want to abort your task to start a different one?' or string.format('Find %s\'s hideout. I hope for you that you are skilled enough to kill him. Or do you want to abort your task to start a different one?', data[cur][7]), cid) Topic[cid] = 4 end elseif msgcontains(msg, 'trade') and getPlayerStorageValue(cid, rank) >= 1 then local items = { {name='antlers', id=11208, sell=50}, {name='bloody pincers', id=10549, sell=50}, {name='crab pincers', id=11183, sell=35}, {name='cyclops toe', id=10573, sell=55}, {name='frosty ear of a troll', id=10564, sell=30}, {name='hydra head', id=11193, sell=600}, {name='lancer leetle shell', id=11366, sell=80}, {name='mutated bat ear', id=10578, sell=420}, {name='sabretooth', id=11222, sell=400}, {name='sandcrawler shell', id=11367, sell=20}, {name='scarab pincers', id=10547, sell=280}, {name='terramite legs', id=11365, sell=60}, {name='terramite shell', id=11363, sell=170}, {name='terrorbird beak', id=11184, sell=95}, {name='cyclops trophy', id=7398, sell=500}, {name='minotaur trophy', id=7401, sell=500}, } if getPlayerStorageValue(cid, rank) >= 3 then table.insert(items, {name='deer trophy', id=7397, sell=1000}) table.insert(items, {name='lion trophy', id=7400, sell=1000}) table.insert(items, {name='wolf trophy', id=7394, sell=1000}) end if getPlayerStorageValue(cid, rank) >= 4 then table.insert(items, {name='behemoth trophy', id=7396, sell=6000}) table.insert(items, {name='demon trophy', id=7393, sell=8000}) table.insert(items, {name='dragon lord trophy', id=7399, sell=5000}) table.insert(items, {name='demon backpack', id=10518, buy=1000}) end openShopWindow(cid, items, function(cid, itemid, subType, amount, ignoreCap, inBackpacks) customCallbackOnBuy(cid, itemid, subType, amount, ignoreCap, inBackpacks, items) end, function(cid, itemid, subType, amount, ignoreCap, inBackpacks) customCallbackOnSell(cid, itemid, subType, amount, ignoreCap, inBackpacks, items) end ) selfSay("Alright, show me what you've got.", cid) elseif Topic[cid] == 4 then local cur = getPlayerStorageValue(cid, curTask) if msgcontains(msg, 'yes') or msgcontains(msg, 'abort') then selfSay('Alright, as you wish. Ask me for a task if you are interested in a different hunting mission.', cid) setPlayerStorageValue(cid, cur, -1) setPlayerStorageValue(cid, curTask, -1) if getPlayerStorageValue(cid, cur + 100) > 0 then setPlayerStorageValue(cid, cur + 100, -1) end else selfSay(cur == 14006 and string.format('Alright, then stop dilly dallying here and go on with your task. You have already exterminated %u demons. Come back to me when you are done.', getPlayerStorageValue(cid, cur)) or getPlayerStorageValue(cid, cur + 100) < 1 and string.format(data[getPlayerStorageValue(cid, curTask)][3], getPlayerStorageValue(cid, cur)) or 'Alright, then you should go on with your task.', cid) end Topic[cid] = 0 elseif Topic[cid] == 1 and msgcontains(msg, 'crocodile') then local v = tasks['crocodile'] selfSay('They are a nuisance! You\'ll find them here in the jungle near the river. Hunt ' .. v.amount .. ' crocodiles and you\'ll get a nice reward. Interested?', cid) Topic[cid] = v.storage elseif Topic[cid] == 1 and msgcontains(msg, 'tarantula') then local v = tasks['tarantula'] selfSay('There is a veritable plague of tarantulas living in the caves north of the river to the east. Can you squish ' .. v.amount .. ' tarantulas for the Hunting Elite. What do you say?', cid) Topic[cid] = v.storage elseif Topic[cid] == 1 and msgcontains(msg, 'carniphila') then local v = tasks['carniphila'] selfSay('Damn walking weed-thingies! You\'ll find them deeper in the jungle. Weed out ' .. v.amount .. ' carniphilas for our society. Alright?', cid) Topic[cid] = v.storage elseif Topic[cid] == 1 and msgcontains(msg, 'golem') then local v = tasks['stone golem'] selfSay('They can be found all over Tibia. You\'ll find them in mountain caves or rocky dungeons. Hunt ' .. v.amount .. ' of them and come back to me. Understood?', cid) Topic[cid] = v.storage elseif Topic[cid] == 1 and msgcontains(msg, 'mammoth') then local v = tasks['mammoth'] selfSay('This particular species are found in Svargrond. Impressive beasts, but you wouldn\'t want one in your back garden. Hunt ' .. v.amount .. ' of them. Alright?', cid) Topic[cid] = v.storage elseif Topic[cid] == 2 and msgcontains(msg, 'golem') then local v = tasks['ice golem'] selfSay('The ice golems on the glacier of Hrodmir are becoming a threat to the civilians in Svargrond. Travel to the Ice Islands and hunt ' .. v.amount .. ' Ice Golems. Do you accept this task?', cid) Topic[cid] = v.storage elseif Topic[cid] == 2 and msgcontains(msg, 'quara') then selfSay('There are different types of quaras. The weaker {scouts} which can be found on Malada, one of the shattered Islands and the more skilled {underwater} kind which can be found in Calassa and some smaller colonies. Which one do you wish to hunt?', cid) Topic[cid] = 5 elseif Topic[cid] == 5 and msgcontains(msg, 'scout') then local v = tasks['quara constrictor scout'] selfSay('Good choice! Hunt down those Quara scouts - remember no less than ' .. v.amount .. '! Focus! Do you accept this task?', cid) Topic[cid] = v.storage elseif Topic[cid] == 5 and msgcontains(msg, 'underwater') then local v = tasks['quara constrictor'] selfSay('As you wish. Seek out a Quara settlement and hunt ' .. v.amount .. ' Quaras, it doesn\'t matter which type you hunt. Alright?', cid) Topic[cid] = v.storage elseif Topic[cid] == 2 and msgcontains(msg, 'elemental') then selfSay({'Since the creation of the elemental shrines and the portals, the curtain separating the worlds is thin, allowing the elementals to surge into our world. They have to be contained. ...', 'The choice as to which kind of elementals you hunt is yours, as long as they are in the lands of Tibia. Hunt 70 {earth}, {energy}, {fire} or {water} elementals. Which one do you choose?'} , cid) Topic[cid] = 6 elseif Topic[cid] == 6 and msgcontains(msg, 'water') then local v = tasks['water elemental'] selfSay('Alright, go hunt ' .. v.amount .. ' water elementals or massive water elementals. Don\'t forget your umbrella! Alright?', cid) Topic[cid] = v.storage elseif Topic[cid] == 6 and msgcontains(msg, 'earth') then local v = tasks['earth elemental'] selfSay('Good choice! I need you to slay ' .. v.amount .. ' earth elementals or massive earth elementals. There are some in the so called Taboo-area in the eastern jungle of Tiquanda and I heard about a cave in Edron where you\'ll find them. Are you game?', cid) Topic[cid] = v.storage elseif Topic[cid] == 6 and msgcontains(msg, 'energy') then local v = tasks['energy elemental'] selfSay('A brave hunter! Kill ' .. v.amount .. ' energy elementals or massive energy elementals. You\'ll find them in the mountains between Darama and Tiquanda. Are you sure you want to do this?', cid) Topic[cid] = v.storage elseif Topic[cid] == 6 and msgcontains(msg, 'fire') then local v = tasks['fire elemental'] selfSay('Don\'t get burnt! Your challenge, should you choose to accept it, is to kill ' .. v.amount .. ' fire elementals or massive fire elementals. Are you ready?', cid) Topic[cid] = v.storage elseif Topic[cid] == 2 and msgcontains(msg, 'mutated rat') then local v = tasks['mutated rat'] selfSay('Recently, I heard of a disturbing development in Yalahar - a plague of monstrous Mutated rats! If they were to spread to the rest of Tibia.. <shudders> My task for you is to contain their numbers in Yalahar. Hunt ' .. v.amount .. ' of them. What do you say?', cid) Topic[cid] = v.storage elseif Topic[cid] == 2 and msgcontains(msg, 'giant spider') then local v = tasks['giant spider'] selfSay('Never liked spiders. Entirely too many legs. And I always find them in my bath! Those nasty creepy crawlies are a threat to the hygiene of every living being in Tibia. Hunt ' .. v.amount .. ' of them. Okay?', cid) Topic[cid] = v.storage elseif Topic[cid] == 3 and msgcontains(msg, 'hydra') then local v = tasks['hydra'] selfSay('The hydras are located in the eastern jungle of Tiquanda and there are several mountain caves that are inhabited by them. Your task is to hunt a mere ' .. v.amount .. ' hydras. Are you willing to do that?', cid) Topic[cid] = v.storage elseif Topic[cid] == 3 and msgcontains(msg, 'sea serpent') then local v = tasks['sea serpent'] selfSay({'The sea serpents are a threat to honest seafarers! Captain Haba knows where to find them. ...', 'Go to Svargrond and talk to him. ' .. v.amount .. ' sea serpents should be enough to reduce the threat - but not their young though! After all, they are an endangered species! Got it?'}, cid) Topic[cid] = v.storage elseif Topic[cid] == 3 and msgcontains(msg, 'behemoth') then local v = tasks['behemoth'] selfSay('Behemoths must be kept away from the settlements at all costs. You\'ll find them east of here in the taboo-area or under the cyclopolis in Edron. Go there and hunt a few of them - shall we say... ' .. v.amount .. '? Are you up for that?', cid) Topic[cid] = v.storage elseif Topic[cid] == 3 and msgcontains(msg, 'serpent spawn') then local v = tasks['serpent spawn'] selfSay('Very dangerous, nasty, slimey creatures. They live deep in the old ruins of Banuta. I think a mere ' .. v.amount .. ' serpent spawns should do the trick. What do you say?', cid) Topic[cid] = v.storage elseif Topic[cid] == 3 and getPlayerStorageValue(cid, rank) == 5 and msgcontains(msg, 'demon') and getPlayerStorageValue(cid, curTask) < 1 then local v = tasks['demon'] selfSay('The spawn of pure evil must be erased from Tibia. You\'ll find demons lurking in the northern ruins of Edron as well as in some of other deeper dungeons of Tibia. We need to wipe them out! Slay ' .. v.amount .. ' demons for the Greater Good!', cid) setPlayerStorageValue(cid, curTask, v.storage) setPlayerStorageValue(cid, v.storage, 0) Topic[cid] = 0 elseif Topic[cid] >= 14000 and msgcontains(msg, 'yes') then selfSay(data[Topic[cid]][2], cid) setPlayerStorageValue(cid, curTask, Topic[cid]) setPlayerStorageValue(cid, Topic[cid], 0) if getPlayerStorageValue(cid, questLog) < 1 then setPlayerStorageValue(cid, questLog, 1) setPlayerStorageValue(cid, points, 0) end Topic[cid] = 0 elseif msgcontains(msg, 'special') and getPlayerStorageValue(cid, rank) == 5 then local v, k = getPlayerStorageValue(cid, tiquanda), getPlayerStorageValue(cid, demodras) if v < 1 then if getPlayerLevel(cid) >= 90 then setPlayerStorageValue(cid, tiquanda, 1) selfSay({'Have you heard about {Tiquandas Revenge}? It is said that the jungle itself is alive and takes revenge for all the bad things people have done to it. ...', 'I myself believe that there is some truth in this clap trap. Something \'real\' which therefore must have a hideout somewhere. Go find it and take revenge yourself! Ask me about the {special} task when you\'re done.'}, cid) else selfSay('Your eagerness is commendable, and your rank within our hunting elite is great buuuut I\'m afraid you\'re a little bit too weak for the special tasks. Get more experience and the special tasks will be no match for you.', cid) end elseif v == 2 then selfSay('Great achievement, old chap! You are an outstanding hunter, no doubt about it!', cid) setPlayerStorageValue(cid, tiquanda, 3) elseif v == 3 and k < 1 then if getPlayerLevel(cid) >= 100 then setPlayerStorageValue(cid, demodras, 1) selfSay('This task is a very dangerous one. I want you to look for {Demodras}\' hideout. It might be somewhere under the {Plains of Havoc}. Good luck, old chap, come back in one piece and ask me about the {special} task when you\'re done.', cid) else selfSay('Your eagerness is commendable, and your rank within our hunting elite is great buuuut I\'m afraid you\'re a little bit too weak for the special tasks. Get more experience and the special tasks will be no match for you.', cid) end elseif k == 2 then selfSay('Great achievement, old chap! You are an outstanding hunter, no doubt about it!', cid) setPlayerStorageValue(cid, demodras, 3) end elseif msgcontains(msg, 'promotion') then local cur, r, msg, exp, item = getPlayerStorageValue(cid, points), getPlayerStorageValue(cid, rank) if cur >= 5 and r < 1 then msg, exp = {'You have completed 5 tasks! Let me promote you to the first rank: Huntsman. Congratulations! ...', 'If you find any trophies that you don\'t need, feel free to ask me for a trade.'}, 5000 elseif cur >= 10 and r < 2 then msg, exp = {'You have completed 10 hunting tasks. It\'s time for a promotion. You advance to the rank of \'Ranger\'. Congratulations! ...', 'Oh, I made a deal with Lorek. He ships Rangers from our society - and higher ranks of course - to Banuta, Chor or near the mountain pass to Darama. Just ask him for a passage.'}, 8000 elseif cur >= 20 and r < 3 then msg, exp = {'Good show! You have completed 20 hunting tasks for the \'Paw and Fur - Hunting Elite. You have earned the right to join the ranks of those known as \'Big game hunter\'. Congratulations! ...', 'From now on I\'ll buy more trophies from you!'}, 10000 elseif cur >= 30 and r < 4 then msg, exp, item = 'Spiffing! You have done 30 hunting tasks! From now on you can call yourself a \'Trophy hunter\'. As a reward I have this special backpack for you and in addition you can sell some more rare trophies to me.', 15000, 10518 elseif cur >= 50 and r < 5 then msg, exp = 'Congratulations! You have made the highest rank: \'Elite hunter\'. If haven\'t yet done so ask me for the {special} task.', 30000 end if msg then selfSay(msg, cid) setPlayerStorageValue(cid, rank, math.max(1, r + 1)) if exp then doPlayerAddExp(cid, exp) doSendAnimatedText(getThingPos(cid), exp, 215) end if item then doPlayerAddItem(cid, item, 1) end end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:setMessage(MESSAGE_FAREWELL, 'Happy hunting, old chap!') npcHandler:setMessage(MESSAGE_WALKAWAY, 'Happy hunting, old chap!') npcHandler:setCallback(CALLBACK_GREET, greetCallback) npcHandler:addModule(FocusModule:new()) Creaturescript caso precise: function onKill(cid, target, damage, flags) if damage == false or (flags and flags ~= 3) then return true else local f = getCreatureMaster(target) if f and f ~= target then return true end end local name = getCreatureName(target):lower() local a = tasks[name] if a then if getPlayerStorageValue(cid, 14500) ~= a.storage or getPlayerStorageValue(cid, a.storage) == a.amount then return true end local b = getPlayerStorageValue(cid, a.storage) + 1 doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Task (".. name:upper() .."): " .. (b == a.amount and "Completed!" or b .." / ".. a.amount)) setPlayerStorageValue(cid, a.storage, b) end return true end
  3. Como assim um outfit para colocar no seu client? Expecifique melhor.
  4. 9k22 postou uma resposta no tópico em Suporte Tibia OTServer
    Obrigado, mais eu já consegui resolver, tive que fazer um por um ao invez de adicionar a tag |STATE| ... Ex: <missionstate id="764" description="You already hunted 764/2000 sea serpents."/> <missionstate id="765" description="You already hunted 765/2000 sea serpents."/> <missionstate id="766" description="You already hunted 766/2000 sea serpents."/> <missionstate id="767" description="You already hunted 767/2000 sea serpents."/> Já viu né? ksopakspaskpoa
  5. 9k22 postou uma resposta no tópico em Suporte Tibia OTServer
    Eu não fiz double post Wtf? Ouch, pensei que uma duvida era em sugestões kkk errei intão, sorry gatinha rsrs
  6. Cara, o npc só serve para vender a rod, o default é default. <parameter key="shop_buyable" value="advanced fishing,7379,1000000"/> Isso faz que o NPC venda a advanced rod: 7379 é o id da rod 1000000 é o valor Não precisa mecher mais em nada, só faz oque eu te falei, em data/npc e dpois sumona o npc...
  7. 9k22 postou uma resposta no tópico em Suporte Tibia OTServer
    Bem, estou usando o Advanced task system + task system gesior php! O arquivo quests.xml para baixar no 4shared não estava funcionando. Alguem teria ele ai ou teria como me informar como fazer funcionar? Tentei: <quest name="Task" startstorageid="14500" startstoragevalue="1"> <mission name="Paw and Fur: Crocodile" storageid="14500" startvalue="1" endvalue="1"> <missionstate id="0-300" description="You already hunted |STATE|/300 crocodile."/> <missionstate id="201" description="You killed 300 crocodile. You can restart that task if you are still under Level 50."/> </mission> Mais não funcionou :S
  8. 9k22 postou uma resposta no tópico em Suporte Tibia OTServer
    liberou a porta 7172? Essa porta serve para o player conseguir ter informações vindas do servidor para poder jogar normalmente!
  9. 9k22 postou uma resposta no tópico em Suporte Bots
    Bem, você poderia pegar esse tal arquivo ou pegar mais informações! Se for verdade, volto pro global ainda hj kkk Mais se eles modificaram o magebot, creio que possa se tornar verdade sim.
  10. Quer me da seu dedicado? ksopakspoaskpoa Cara, meus pesames por isto vey, sei como é dificil perder uma baita grana assim pelo motivo de vp's. Sei como é pois já gastei muita grana com VPs e o servidor num dava sucesso ai sempre me ferrava!
  11. 9k22 postou uma resposta no tópico em Playground (Off-topic)
    Aaa maldito kspoAKSpoakspoakpo
  12. 9k22 postou uma resposta no tópico em Suporte Tibia OTServer
    Tenta este: local days = { ["Sunday"] = { ["00:00"] = {nome = "Broadcast", pos = {x=185, y=54, z=7}, monster = {"40 NAME MONSTER"}, Time = 15}, ["21:00"] = {nome = "Broadcast", pos = {x=185, y=54, z=7}, monster = {"100 NAME MONSTER"}, Time = 15} }, ["Saturday"] = { ["00:00"] = {nome = "Broadcast", pos = {x=185, y=54, z=7}, monster = {"40 NAME MONSTER"}, Time = 15}, ["21:13"] = {nome = "Broadcast", pos = {x=185, y=57, z=7},monster = {"100 NAME MONSTER"}, Time = 15} } } function onThink(interval, lastExecution) function getDayName() local days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"} return days[os.date("*t")["wday"]] end hours = tostring(os.date("%X")):sub(1, 5) tb = days[getDayName()][hours] if tb then function removeMonster(pid) if (isMonster(pid) == true) then doRemoveCreature(pid) end end end return true end addEvent(removeCreature, tb.Time*60*1000) doBroadcastMessage(hours .. " - " .. tb.nome .. " Iníciou.") for _,x in pairs(tb.monster) do for s = 1, tonumber(x:match("%d+")) do doSummonCreature(x:match("%s(.+)"), tb.pos) end end end return true end Não meixa no: Modifique o name monster mais não modifique o número do lado!
  13. Em data/npc crie um arquivo com extenção .xml e adicione isto! <?xml version="1.0" encoding="UTF-8"?> <npc name="Rod Magic" script="default.lua" walkinterval="2000" floorchange="0"> <health now="150" max="150"/> <look type="128" head="20" body="110" legs="50" feet="110" corpse="2212"/> <parameters> <parameter key="module_shop" value="1"/> <parameter key="message_greet" value="Olá |PLAYERNAME|. Eu vendo a advanced fishing."/> <parameter key="shop_buyable" value="advanced fishing,7379,1000000"/> </parameters> </npc> Ta ai!
  14. 9k22 postou uma resposta no tópico em Suporte Tibia OTServer
    No mysql tem a parte: Save = 0 Modifique para: Save = 1 Em cada sample, após você fazer isso, vai salvar tudo no player!
  15. 9k22 postou uma resposta no tópico em Suporte Bots
    Mage bot dar ban sim, faz um teste. Abre o magebot e uma conta qualquer, liga o dash + heal + anti-poison ou qualquer coisa do genêro, velho, só vc com o dash ligado e dar pelo menos 5~6 passos, seu character vai ser desconectado (levou ban). Magebot é criado apenas para otservs etc.. Como pode saber, magebot vc paga 20 reais e fica com ele forever. Se fosse para global, seria mensal o pagamento do mesmo!
  16. Ta massa mesmo, mais o problema é que ta faltando apenas 2 dias para acabar minha key e to sem grana pra comprar novamente!
  17. 9k22 postou uma resposta no tópico em Suporte Tibia OTServer
    Em: monster = {"40 Nomemonster", "50 Fire Devil", "4 Orshabaal"}, Você retira e adiciona apenas: monster = {"1 Nome_do_monstro"}, Faça isso em todos...
  18. Ta aqui sociopata: local function tameMonster(cid, item, itemEx, tame, run, broken) n = math.random(100) if n <= broken then doCreatureSay(cid, "Lost item", TALKTYPE_ORANGE_1) doRemoveItem(item.uid) elseif n > broken and n <= (tame+broken) then doRemoveItem(item.uid) doCreatureSay(cid, "You tamed the mount", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You tamed the mount "..getCreatureName(itemEx.uid)..".") return true elseif n > (tame+broken) and n <= (tame+broken+run) then doCreatureSay(cid, "the monster fled", TALKTYPE_ORANGE_1) doRemoveCreature(itemEx.uid) else doCreatureSay(cid, "Try again", TALKTYPE_ORANGE_1) end return false end local function inArray(table, value) for i,v in pairs(table) do if (v.name == string.lower(value)) then return i end end return 0 end local mounts = { {item = 13307, name = "wailing widow", id = 1, tame=10, run=39, broken=51}, {item = 13298, name = "terror bird", id = 2, tame=10, run=39, broken=51}, {item = 5907, name = "bear", id = 3, tame=7, run=39, broken=54}, {item = 13295, name = "black sheep", id = 4, tame=7, run=35, broken=58}, {item = 13293, name = "midnight panther", id = 5, tame=10, run=39, broken=51}, {item = 13294, name = "draptor", id = 6, tame=10, run=39, broken=51}, {item = 13305, name = "crustacea gigantica", id = 7, tame=10, run=39, broken=51}, {item = 13292, name = "tin lizzard", id = 8, tame=10, run=36, broken=54}, {item = 13247, name = "boar", id = 10, tame=10, run=39, broken=51}, {item = 13291, name = "undead cavebear", id = 12, tame=10, run=39, broken=51} } function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then if inArray(mounts, getCreatureName(itemEx.uid)) > 0 then i = inArray(mounts, getCreatureName(itemEx.uid)) if item.itemid == mounts[i].item and not canPlayerRideMount(cid, mounts[i].id) then if tameMonster(cid, item, itemEx, mounts[i].tame, mounts[i].run, mounts[i].broken) then doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE) doRemoveCreature(itemEx.uid) doPlayerAddMount(cid, mounts[i].id) else doSendMagicEffect(toPosition, CONST_ME_POFF) end end end end return true end Agradeço vodkart pela função! REP+
  19. Nome: Mount System Versão: 8.70 Sistema: Action Bem, estava vendo aqui e não encontrei nenhum mount system pareçido com oque tenho aqui intão vou postar para vocês completo e funcionando perfeitamente. Testado em Crystal server V1.0 Em data/action/script crie um arquivo .lua e adicione: local function tameMonster(cid, item, itemEx, tame, run, broken) n = math.random(100) if n <= broken then doCreatureSay(cid, "Lost item", TALKTYPE_ORANGE_1) doRemoveItem(item.uid) elseif n > broken and n <= (tame+broken) then doRemoveItem(item.uid) doCreatureSay(cid, "You tamed the mount", TALKTYPE_ORANGE_1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You tamed the mount "..getCreatureName(itemEx.uid)..".") return true elseif n > (tame+broken) and n <= (tame+broken+run) then doCreatureSay(cid, "the monster fled", TALKTYPE_ORANGE_1) doRemoveCreature(itemEx.uid) else doCreatureSay(cid, "Try again", TALKTYPE_ORANGE_1) end return false end local function inArray(table, value) for i,v in pairs(table) do if (v.name == string.lower(value)) then return i end end return 0 end local mounts = { {item = 13307, name = "wailing widow", id = 1, tame=10, run=39, broken=51}, {item = 13298, name = "terror bird", id = 2, tame=10, run=39, broken=51}, {item = 5907, name = "bear", id = 3, tame=7, run=39, broken=54}, {item = 13295, name = "black sheep", id = 4, tame=7, run=35, broken=58}, {item = 13293, name = "midnight panther", id = 5, tame=10, run=39, broken=51}, {item = 13294, name = "draptor", id = 6, tame=10, run=39, broken=51}, {item = 13305, name = "crustacea gigantica", id = 7, tame=10, run=39, broken=51}, {item = 13292, name = "tin lizzard", id = 8, tame=10, run=36, broken=54}, {item = 13247, name = "boar", id = 10, tame=10, run=39, broken=51}, {item = 13291, name = "undead cavebear", id = 12, tame=10, run=39, broken=51} } function onUse(cid, item, fromPosition, itemEx, toPosition) if isCreature(itemEx.uid) then if inArray(mounts, getCreatureName(itemEx.uid)) > 0 then i = inArray(mounts, getCreatureName(itemEx.uid)) if item.itemid == mounts[i].item and not getPlayerMount(cid, mounts[i].id) then if tameMonster(cid, item, itemEx, mounts[i].tame, mounts[i].run, mounts[i].broken) then doSendMagicEffect(fromPosition, CONST_ME_MAGIC_BLUE) doRemoveCreature(itemEx.uid) doPlayerAddMount(cid, mounts[i].id) else doSendMagicEffect(toPosition, CONST_ME_POFF) end end end end return true end Agora em action.xml adicione: <action itemid="13295" event="script" value="tools/mounts.lua"/> --reins <action itemid="13294" event="script" value="tools/mounts.lua"/> --harness <action itemid="13293" event="script" value="tools/mounts.lua"/> --leather whip <action itemid="13298" event="script" value="tools/mounts.lua"/> --carrot on a stick <action itemid="13247" event="script" value="tools/mounts.lua"/> --hunting horn <action itemid="13305" event="script" value="tools/mounts.lua"/> --Giant Shrimp <action itemid="13291" event="script" value="tools/mounts.lua"/> --Maxilla Maximus <action itemid="5907" event="script" value="tools/mounts.lua"/> --Slingshot <action itemid="13307" event="script" value="tools/mounts.lua"/> --Sweet Smelling Bait <action itemid="13292" event="script" value="tools/mounts.lua"/> --Tin key Agora em items/items.xml adicione na ultima linha, antes do </items> <item id="13291" name="maxilla maximus" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13292" name="tin key" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13293" name="leather whip" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13294" name="harness" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13295" name="reins" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13298" name="carrot on a stick" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13305" name="giant shrimp" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13307" name="sweet smelling bait" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> <item id="13247" name="hunting horn" article="a"> <attribute key="description" value="A hermit near Carlin might be able to tell you more about it." /> <attribute key="weight" value="200" /> </item> E por ultimo em XML/mounts.xml adicione: <?xml version="1.0" encoding="UTF-8"?> <mounts> <mount id="1" clientId="368" name="Widow Queen" speed="10" /> <mount id="2" clientId="369" name="Racing Bird" speed="20" /> <mount id="3" clientId="370" name="War Bear" speed="10" /> <mount id="4" clientId="371" name="Black Sheep" speed="5" /> <mount id="5" clientId="372" name="Midnight Panther" speed="20" /> <mount id="6" clientId="373" name="Draptor" speed="40" /> <mount id="7" clientId="374" name="Titanica" speed="15" /> <mount id="8" clientId="375" name="Tin Lizzard" speed="15" /> <mount id="9" clientId="376" name="Blazebringer" speed="20" /> <mount id="10" clientId="377" name="Rapid Boar" speed="20" /> <mount id="11" clientId="378" name="Stampor" speed="20" /> <mount id="12" clientId="379" name="Undead Cavebear" speed="20" /> </mounts> Caso já tenha os items configurados no items.xml, basta trocar a config do action! tame - possibilidade do monstro fugir em % run - possibilidade de adquirir a montaria em % broken - possibilidade de quebrar o item em % PS: caso modifique preste muita atenção, ao total tem que dar 100 em tame, run e broken juntos ex: Créditos: ruda 100%
  20. 9k22 postou uma resposta no tópico em Playground (Off-topic)
    Haha, to com 24 reps, alguem da + 1 24 é de viado ;s
  21. 9k22 postou uma resposta no tópico em Playground (Off-topic)
    Veio, o meu é lixo kkk Tenho preguisa de arrumar ou melhorar!
  22. 9k22 postou uma resposta no tópico em Playground (Off-topic)
    Namorada de um amigo chama-se jessica, eu tiro muita onda cantando essa music ;x
  23. Cara em: [b]function isNewvocation(cid)[/b] [b] Você coloca o nome da sua vocação, exemplo: o nome da vocação nova é Assassin, ai você modifica assim [/b] [b]function isAssassin(cid) return isInArray({9, 10}, getPlayerVocation(cid)) end [/b] [b]
  24. 9k22 postou uma resposta no tópico em Portal
    Posso ser professor, pelo fato de ta muito (bastante tempo mesmo) em area de mapping, posso ajudar! PS: só trabalho com regras de mappear, não adianta se o mapa é bom ou não, oque basta é ta nas regras de mapper ;x Eita, tenho microfone \o/
  25. Vai em data/lib/031-vocation.lua: function isSorcerer(cid) return isInArray({1, 5}, getPlayerVocation(cid)) end function isDruid(cid) return isInArray({2, 6}, getPlayerVocation(cid)) end function isPaladin(cid) return isInArray({3, 7}, getPlayerVocation(cid)) end function isKnight(cid) return isInArray({4, 8}, getPlayerVocation(cid)) end function isRookie(cid) return isInArray({0}, getPlayerVocation(cid)) end Basta modificar... ex: function isSorcerer(cid) return isInArray({1, 5}, getPlayerVocation(cid)) end function isDruid(cid) return isInArray({2, 6}, getPlayerVocation(cid)) end function isPaladin(cid) return isInArray({3, 7}, getPlayerVocation(cid)) end function isKnight(cid) return isInArray({4, 8}, getPlayerVocation(cid)) end function isNewvocation(cid) return isInArray({9, 10}, getPlayerVocation(cid)) end function isRookie(cid) return isInArray({0}, getPlayerVocation(cid)) end

Informação Importante

Confirmação de Termo