message: Added reset task after completing LuaBot task to Atlas Park
diff: @@ -195,6 +195,11 @@ dialog_button = function(id)
  printDebug("LuaBot moving to stat mode: " .. tostring(id))
  LuaBot.Mode = 1 -- Player stats
  MapClientSession.contact_dialog(client, LuaBot.contactDialogs[20].message, LuaBot.contactDialogs[20].buttons)
  +
  + local LuaBotMission = FindTaskByTaskIdx(0)
  + if(LuaBotMission ~= false) then
  + resetTask()
  + end
  elseif (id == 2) then
  printDebug("LuaBot moving to contact mode: " .. tostring(id))
  LuaBot.Mode = 2 -- Contacts
  @@ -356,6 +361,19 @@ dialog_button = function(id)
  Player.AddUpdateTask(LuaBot.task)
  elseif (id == 9) then
  + --Reset task - Back
  + resetTask()
  +
  + LuaBot.Mode = nil
  + MapClientSession.contact_dialog(client, LuaBot.contactDialogs[1].message, LuaBot.contactDialogs[1].buttons)
  + end
  + end
  + end
  +
  + return ""
  +end
  +
  +function resetTask()
  --Reset task - Back
  LuaBot.task = Task.new()
  LuaBot.task.dbId = 1 -- 1939 - 200
  @@ -376,14 +394,7 @@ dialog_button = function(id)
  LuaBot.task.location.location = vec3.new(20, 0, 586)
  LuaBot.task.location.name = "Outbreak"
  LuaBot.task.location.mapName = "Outbreak"
  -
  - LuaBot.Mode = nil
  - MapClientSession.contact_dialog(client, LuaBot.contactDialogs[1].message, LuaBot.contactDialogs[1].buttons)
  - end
  - end
  - end
  -
  - return ""
  + Player.AddUpdateTask(LuaBot.task)
  end
  