Jump to content

Question

Posted

Geia sas pedes bori kapios na m pi pws boro na kanw otan o pextis einai deathna exei dio epiloges ena gia town p einai kai na exei alo ena apo kato p tha valo egw thex.

3 answers to this question

Recommended Posts

  • 0
Posted (edited)

Κομμάτι απο το RandomZoneChanger:
 

Index: java/net/sf/l2j/gameserver/network/clientpackets/RequestRestartPoint.java
===================================================================
--- java/net/sf/l2j/gameserver/network/clientpackets/RequestRestartPoint.java   (revision 6)
+++ java/net/sf/l2j/gameserver/network/clientpackets/RequestRestartPoint.java   (working copy)
@@ -14,6 +14,8 @@
 import net.sf.l2j.gameserver.model.entity.Siege.SiegeSide;
 import net.sf.l2j.gameserver.model.location.Location;
 import net.sf.l2j.gameserver.model.pledge.Clan;
+import net.sf.l2j.gameserver.model.zone.ZoneId;
+import net.sf.l2j.gameserver.taskmanager.RandomZoneTaskManager;
 
 public final class RequestRestartPoint extends L2GameClientPacket
 {
@@ -120,7 +122,10 @@
-           if (!player.isGM() && !player.isFestivalParticipant())
-               return;
           
-           loc = player.getPosition();
+           if (!player.isGM() && player.isInsideZone(ZoneId.RANDOM))
+               loc = RandomZoneTaskManager.getInstance().getCurrentZone().getLoc();
+           else
+               loc = player.getPosition();
        }
        // To jail.
        else if (_requestType == 27)
Index: java/net/sf/l2j/gameserver/network/serverpackets/Die.java
===================================================================
--- java/net/sf/l2j/gameserver/network/serverpackets/Die.java   (revision 6)
+++ java/net/sf/l2j/gameserver/network/serverpackets/Die.java   (working copy)
@@ -7,6 +7,7 @@
 import net.sf.l2j.gameserver.model.entity.Siege;
 import net.sf.l2j.gameserver.model.entity.Siege.SiegeSide;
 import net.sf.l2j.gameserver.model.pledge.Clan;
+import net.sf.l2j.gameserver.model.zone.ZoneId;
 
 public class Die extends L2GameServerPacket
 {
@@ -27,7 +28,7 @@
        if (cha instanceof Player)
        {
            Player player = (Player) cha;
-           _allowFixedRes = player.getAccessLevel().allowFixedRes();
+           _allowFixedRes = player.getAccessLevel().allowFixedRes() || player.isInsideZone(ZoneId.RANDOM);
            _clan = player.getClan();
           
        }

 

Edited by StinkyMadness

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock