Ir para conteúdo

Featured Replies

Postado

07:03 Almighty'kris [324]: daily task list
07:03 Captain Falcon: Here is the daily tasks list.
07:04 Almighty'kris [324]: daily
07:04 Captain Falcon: Remember, it is of great importance that the daily tasks are done. Now tell me, which monster task would you like to do? 
07:04 Almighty'kris [324]: Hydra
07:04 Captain Falcon: Sorry we don't have this daily task.

 

fiz tudo certinho lá sem erros, dai na hora de pedir a task acontece isso.

  • Respostas 82
  • Visualizações 15.4k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @Jobs hehehe, nice, nice, nice, não mexo com modalwindow, meu servidor é 8.60, usando OTX 1.3, então como não tem diferença os scripts para as versões 1.x, então resolvi postar, vai pegar em todos, se

  • ja tô usando seu lindão!  mais pra frente, seria muito foda se você fizesse modal window! beijos, otimo sistema *-*    

  • Saquei, sim funcionou direitinho aqui, 10x tfs 1.2 xd 

Posted Images

Postado

@KotZletY vi que você tem um Task System tambem, sera que poderia me ajudar com um negocio que esta me dando dor de cabeça, que eu acho que você resolve em 1 minuto.

Queria tirar o TaskLook, não quero que apareça nada quando do look, porque ta dando conflito com outro script que to usando de QUEST LOOK, que é seu, eu to removendo essas partes aqui, mas fica dando erro quando do look no char.

 

function GetRankTask(cid)
	local ranks = {
		[{1, 40}] = "Leite com Pera", 
		[{41, 80}] = "Iniciante",
		[{81, 120}] = "Intermediario",
		[{121, 200}] = "Fodao",		
		[{201, math.huge}] = "Supremo Lord"
	}
	for v , r in pairs(ranks) do
		if getTaskPoints(cid) >= v[1] and getTaskPoints(cid) <= v[2] then
			return r
		end
	end
	return 0
end
function getDeathsAndKills(cid, type) -- by vodka
  local query,d = db.getResult("SELECT `player_id` FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)),0
  if (query:getID() ~= -1) then
    repeat
      d = d+1
    until not query:next()
    query:free()
  end
  return d
end

 

</talkaction>
<event type="look" name="TaskLook" event="script"><![CDATA[
domodlib('task_func')
function onLook(cid, thing, position, lookDistance)
	if isPlayer(thing.uid) and getTaskPoints(thing.uid) > 0 then
		doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").. " has Killed: ["..getDeathsAndKills(thing.uid, "kill").."] Players.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." has Died: ["..getDeathsAndKills(thing.uid, "death").."] Times.\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").." is a "..GetRankTask(thing.uid))
	end	
	return true
end]]>
Mostrar conteúdo oculto

 

Postado
  • Autor
  Em 02/10/2017 em 03:44, KotZletY disse:

adicione:


	if thing:isCreature() then
		if thing:isPlayer() then
			description = string.format("%s\nTask Rank: "..getRankTask(thing), description)
		end
	end

 

 

@Zzyzx para não aparecer o task rank basta não adicionar/remover essa parte, ou você está tentando remover o outro e não o meu ?

 

 

Postado
  Em 27/04/2018 em 16:57, KotZletY disse:

@Yassuo adicionou o hydra na tabela ?

Fiz assim apenas 

task_monsters = {
   [1] = {name = "Orc", mons_list = {"Orc Berserker", "Orc Shaman"},  storage = 30000, amount = 5000, exp = 700000, pointsTask = {1, 1}, items = {{id = 2503, count = 1}, {id = 25377, count = 6}}},
   [2] = {name = "Barbarian Skullhunter", mons_list = {"Barbarian Headsplitter", "Barbarian Brutetamer"}, storage = 30001, amount = 6000, exp = 800000, pointsTask = {1, 1}, items = {{id = 2646, count = 1}, {id = 25377, count = 5}}},
   [3] = {name = "Pixie", mons_list = {"dark faun", "boogy"}, storage = 30002, amount = 1000, exp = 580000, pointsTask = {1, 1}, items = {{id = 29079, count = 1}, {id = 25377, count = 6}}},
   [4] = {name = "sparkion", mons_list = {"breach brood", "dread intruder"}, storage = 30003, amount = 7000, exp = 800000, pointsTask = {1, 1}, items = {{id = 26227, count = 1}, {id = 25377, count = 8}}}
}

task_daily = {
   [1] = {name = "Wailing Widow", mons_list = {"Tarantula", "Spider"}, storage = 40000, amount = 750, exp = 500000, pointsTask = {1, 1}, items = {{id = 25377, count = 1}, {id = 25172, count = 2}}},
   [2] = {name = "Vampire Bride", mons_list = {"Vampire", "Vampire Viscount"}, storage = 40001, amount = 850, exp = 500000, pointsTask = {1, 1}, items = {{id = 25377, count = 1}, {id = 25172, count = 3}}},
   [3] = {name = "Dragon", mons_list = {"Dragon Lord", "Frost Dragon"}, storage = 40002, amount = 1150, exp = 580000, pointsTask = {1, 1}, items = {{id = 25377, count = 1}, {id = 25172, count = 4}}},
   [4] = {name = "Ancient Scarab", mons_list = {"Fleshcrawler", "Ancient Spawn of Morgathla"}, storage = 40003, amount = 1250, exp = 500000, pointsTask = {1, 1}, items = {{id = 25377, count = 1}, {id = 2160, count = 5}}}
}

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo