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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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