Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: net.sf.l2j;Config.java
- ===================================================================
- --- net.sf.l2j;Config.java (revision 84)
- +++ net.sf.l2j;Config.java (working copy)
- + /** Unstuck Time */
- + public static int UNSTUCK_TIME;
- + UNSTUCK_TIME = player.getProperty("UnstuckTime", 30);
- Index: net.sf.l2j.gameserver.handler.usercommandhandlers;Escape.java
- ===================================================================
- --- net.sf.l2j.gameserver.handler.usercommandhandlers;Escape.java (revision 84)
- +++ net.sf.l2j.gameserver.handler.usercommandhandlers;Escape.java (working copy)
- // Official timer 5 minutes, for GM 1 second
- if (player.isGM())
- player.doCast(SkillTable.getInstance().getInfo(2100, 1));
- + else
- + {
- + player.sendPacket(new PlaySound("systemmsg_e.809"));
- + int unstuckTimer = Config.UNSTUCK_TIME * 1000;
- +
- + L2Skill skill = SkillTable.getInstance().getInfo(2099, 1);
- + skill.setHitTime(unstuckTimer);
- + player.doCast(skill);
- +
- + if (unstuckTimer < 60000)
- + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_S2).addString("You will unstuck in " + unstuckTimer / 1000 + " seconds."));
- + else
- + player.sendPacket(SystemMessage.getSystemMessage(SystemMessageId.S1_S2).addString("You will unstuck i " + unstuckTimer / 60000 + " minutes."));
- +
- + }
- Index: net.sf.l2j.gameserver.model;L2Skill.java
- ===================================================================
- --- net.sf.l2j.gameserver.model;L2Skill.java (revision 84)
- +++ net.sf.l2j.gameserver.model;L2Skill.java (working copy)
- - private final int _hitTime; // all times in milliseconds
- + private int _hitTime; // all times in milliseconds
- + public void setHitTime(int value)
- + {
- + _hitTime = value;
- + }
- Index: config/player.propertis
- ===================================================================
- --- config/player.propertis (revision 84)
- +++ config/player.propertis (working copy)
- + # Time in seconds for /unstuck
- + UnstuckTime = 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement