Fixed nonexistent oracle teleport back to town.

This commit is contained in:
MobiusDevelopment
2020-07-02 03:02:55 +00:00
parent 8ab8cd7046
commit 169487938e
8 changed files with 52 additions and 20 deletions

View File

@@ -16,6 +16,7 @@
*/
package teleports.OracleTeleport;
import org.l2jmobius.commons.util.Rnd;
import org.l2jmobius.gameserver.model.Location;
import org.l2jmobius.gameserver.model.actor.instance.NpcInstance;
import org.l2jmobius.gameserver.model.actor.instance.PlayerInstance;
@@ -275,6 +276,14 @@ public class OracleTeleport extends Quest
htmltext = "rift_back.htm";
st.exitQuest(true);
}
else
{
final Location loc = RETURN_LOCS[Rnd.get(RETURN_LOCS.length)];
player.teleToLocation(loc.getX(), loc.getY(), loc.getZ());
htmltext = "rift_back_unknown.htm";
player.setIn7sDungeon(false);
st.exitQuest(true);
}
}
else if (event.equalsIgnoreCase("Festival"))
{

View File

@@ -0,0 +1,4 @@
<html><body>Rift Post:<br>
I cannot find your original location.<br1>
I will return you to a random return point.
</body></html>