Ir para conteúdo

[8.6] Task System 4.0! (Task system + Daily Task System)

Featured Replies

  • 4 weeks later...
  • Respostas 296
  • Visualizações 45.6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • tenta deixar essa linha: if isPlayer(cid) and isMonster(target) and not isSummon(target) then assim if isPlayer(cid) and isMonster(target) then   e testa

  • gostei dessa ideia, então estou num projeto e estou meio sem tempo, já passei parto do simple task pra tfs 1.2 e tal. terminando esse projeto e de passar o sistema pra tfs 1.2 eu começo a editar o sis

Posted Images

Postado
3 horas atrás, Vodkart disse:

 

sim

Opa, testei e funcionou com sucesso, mas depois de eu ter adicionado algumas daily tasks começou a dar esse erro:
 

[Error - CreatureScript Interface]
[19:49:55.575] domodlib('task_func')
[19:49:55.579] function onLook(cid, thing, position, lookDistance)
[19:49:55.579]  if isPlayer(thing.uid) and getTaskPoints(thing.uid) > 0 then
[19:49:55.583]          doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(thing.uid) == 0 and "She" or "He").. " is a "..GetRankTask(thing.uid))
[19:49:55.587]  end
[19:49:55.587]  return true
[19:49:55.587] end
[19:49:55.587] Description:
[19:49:55.591] [string "task_sys = {..."]:39: '}' expected (to close '{' at line 28) near '['

[19:49:55.591] [Error - CreatureScript Interface]
[19:49:55.595] domodlib('task_func')
[19:49:55.595] function onKill(cid, target)
[19:49:55.599]  if isPlayer(cid) and isMonster(target) then
[19:49:55.599]          local t,daily = task_sys[getTaskMission(cid)], daily_task[getDailyTaskMission(cid)]
[19:49:55.603]          if t and getPlayerStorageValue(cid, t.start) > 0 and isInArray(t.monsters_list, getCreatureName(target):lower()) and getPlayerStorageValue(cid, task_sys_storages[3]) < t.count then
[19:49:55.611]                  setPlayerStorageValue(cid, task_sys_storages[3], getPlayerStorageValue(cid, task_sys_storages[3]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[3])+1))
[19:49:55.615]                  if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[3]) < t.count then
[19:49:55.619]                          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[3]) .. "/" .. t.count .. "] da Task do " .. t.name .. ".")
[19:49:55.627]                  end
[19:49:55.627]                  if getPlayerStorageValue(cid, task_sys_storages[3]) >= t.count then
[19:49:55.631]                          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Task System] Parab├®ns! Voc├¬ terminou a Task do "..t.name..", volte ao npc parece receber sua recompensa.")
[19:49:55.639]                  end
[19:49:55.639]          end
[19:49:55.639]          if daily and getPlayerStorageValue(cid, task_sys_storages[7]) > 0 and getPlayerStorageValue(cid, task_sys_storages[6]) - os.time() >= 0 and isInArray(daily.monsters_list, getCreatureName(target):lower()) and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then
[19:49:55.651]                  setPlayerStorageValue(cid, task_sys_storages[5], getPlayerStorageValue(cid, task_sys_storages[5]) < 0 and 1 or (getPlayerStorageValue(cid, task_sys_storages[5])+1))
[19:49:55.655]                  if getPlayerStorageValue(cid, task_sys_storages[8]) <= 0 and getPlayerStorageValue(cid, task_sys_storages[5]) < daily.count then
[19:49:55.659]                          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"[Daily Task System] defeated Total [" .. getPlayerStorageValue(cid, task_sys_storages[5]) .. "/" .. daily.count .. "] da Task do " .. daily.name .. ".")
[19:49:55.667]                  end
[19:49:55.667]                  if getPlayerStorageValue(cid, task_sys_storages[5]) >= daily.count then
[19:49:55.671]                          doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE,"[Daily Task System] Parab├®ns! Voc├¬ terminou a Task do "..daily.name..", volte ao npc parece receber sua recompensa.")
[19:49:55.679]                  end
[19:49:55.679]          end
[19:49:55.679]  end
[19:49:55.679]  return true
[19:49:55.683] end
[19:49:55.683] Description:
[19:49:55.683] [string "task_sys = {..."]:39: '}' expected (to close '{' at line 28) near '['
[19:49:55.687]  done.

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