Fix for quest Control Device of the Giants (307).

This commit is contained in:
MobiusDev 2017-12-28 00:15:05 +00:00
parent 412b406777
commit 74051ee271
3 changed files with 3 additions and 9 deletions

View File

@ -101,9 +101,7 @@ public class Q00307_ControlDeviceOfTheGiants extends Quest
{
return "32711-09.html";
}
final String respawn = GlobalVariablesManager.getInstance().getString("GiantsControlDeviceRespawn");
final long remain = !respawn.isEmpty() ? Long.parseLong(respawn) - System.currentTimeMillis() : 0;
if (remain > 0)
if ((GlobalVariablesManager.getInstance().getLong("GiantsControlDeviceRespawn", 0) - System.currentTimeMillis()) > 0)
{
return "32711-09a.html";
}

View File

@ -101,9 +101,7 @@ public class Q00307_ControlDeviceOfTheGiants extends Quest
{
return "32711-09.html";
}
final String respawn = GlobalVariablesManager.getInstance().getString("GiantsControlDeviceRespawn");
final long remain = !respawn.isEmpty() ? Long.parseLong(respawn) - System.currentTimeMillis() : 0;
if (remain > 0)
if ((GlobalVariablesManager.getInstance().getLong("GiantsControlDeviceRespawn", 0) - System.currentTimeMillis()) > 0)
{
return "32711-09a.html";
}

View File

@ -101,9 +101,7 @@ public class Q00307_ControlDeviceOfTheGiants extends Quest
{
return "32711-09.html";
}
final String respawn = GlobalVariablesManager.getInstance().getString("GiantsControlDeviceRespawn");
final long remain = !respawn.isEmpty() ? Long.parseLong(respawn) - System.currentTimeMillis() : 0;
if (remain > 0)
if ((GlobalVariablesManager.getInstance().getLong("GiantsControlDeviceRespawn", 0) - System.currentTimeMillis()) > 0)
{
return "32711-09a.html";
}