Fixed nonexistent oracle teleport back to town.
This commit is contained in:
@@ -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"))
|
||||
{
|
||||
|
@@ -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>
|
Reference in New Issue
Block a user