From affff96837dacafafeba41dce7af9915d97a78ae Mon Sep 17 00:00:00 2001 From: Filip Maj Date: Sun, 9 Jul 2017 11:40:28 -0400 Subject: [PATCH] A default return destination is now set on new character based on initialTown. --- data/scripts/player.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data/scripts/player.lua b/data/scripts/player.lua index 00926769..6a82be35 100644 --- a/data/scripts/player.lua +++ b/data/scripts/player.lua @@ -7,11 +7,14 @@ function onBeginLogin(player) initialTown = player:GetInitialTown(); if (initialTown == 1 and player:HasQuest(110001) == false) then - player:AddQuest(110001); + player:AddQuest(110001); + player:SetHomePoint(1280001); elseif (initialTown == 2 and player:HasQuest(110005) == false) then player:AddQuest(110005); + player:SetHomePoint(1280061); elseif (initialTown == 3 and player:HasQuest(110009) == false) then player:AddQuest(110009); + player:SetHomePoint(1280031); end end