sunleo Posted December 18, 2011 Posted December 18, 2011 Very useful post .. thanks a lot for sharing :)
sunleo Posted December 18, 2011 Posted December 18, 2011 can exchange loc = new Location(81236, 148638, -3469); to use loc = new Location(Config.LocRespawnX, Config.LocRespawnY, Config.LocRespawnZ); config : +public static int LocRespawnX; +public static int LocRespawnY; +public static int LocRespawnZ; +LocRespawnX = Integer.parseInt(l2jdemonniacSettings.getProperty("LocX", "10724")); +LocRespawnY = Integer.parseInt(l2jdemonniacSettings.getProperty("LocY", "-23729")); +LocRespawnZ = Integer.parseInt(l2jdemonniacSettings.getProperty("LocZ", "-3650")); also works! :D tha's a good idea dude . You can easily change what location you want instantly thank repatching :) keep sharing :)
benaz Posted April 9, 2012 Posted April 9, 2012 Cheers! Was looking this for ages! Anyways, google search engine is better than mxc. lol
ExCaLiBuR® Posted April 28, 2012 Posted April 28, 2012 very good i test and working one question i can use more location ?? loc = new Location(81236, 148638, -3469); loc = new Location(819356, 148938, -3499); loc = new Location(815236, 1486938, -3969);
Mimosin Posted February 2, 2013 Posted February 2, 2013 can exchange loc = new Location(81236, 148638, -3469); to use loc = new Location(Config.LocRespawnX, Config.LocRespawnY, Config.LocRespawnZ); config : +public static int LocRespawnX; +public static int LocRespawnY; +public static int LocRespawnZ; +LocRespawnX = Integer.parseInt(l2jdemonniacSettings.getProperty("LocX", "10724")); +LocRespawnY = Integer.parseInt(l2jdemonniacSettings.getProperty("LocY", "-23729")); +LocRespawnZ = Integer.parseInt(l2jdemonniacSettings.getProperty("LocZ", "-3650")); also works! :D Add: + public static boolean LocEnable; + LocEnable = Boolean.parseBoolean(CustomSettings.getProperty("LocEnable", "true")); requestrestartpoint... default: + if (Config.LocEnable) + loc = new Location(Config.LocRespawnX, Config.LocRespawnY, Config.LocRespawnZ); + else loc = MapRegionManager.getInstance().getTeleToLocation(activeChar, MapRegionManager.TeleportWhereType.Town); break; Is better :$
xdem Posted February 19, 2013 Posted February 19, 2013 What about arenas? like coliseum/giran arena. It should be normal spawn. xD sad, but true story, btw the code is 4 years old :troll:
`Sword Posted April 14, 2013 Posted April 14, 2013 sad, but true story, btw the code is 4 years old :troll: ### Eclipse Workspace Patch 1.0 #P L2J-Archid-Game Index: src/main/java/com/l2jarchid/gameserver/network/clientpackets/RequestRestartPoint.java =================================================================== --- src/main/java/com/l2jarchid/gameserver/network/clientpackets/RequestRestartPoint.java (revision 1060) +++ src/main/java/com/l2jarchid/gameserver/network/clientpackets/RequestRestartPoint.java (working copy) @@ -148,7 +148,7 @@ break; default: - loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town); + if (!activeChar.isInsideZone(L2Character.ZONE_PVP) + { + loc = new Location(81236, 148638, -3469); //Giran + } + else + { + loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town); + } break; }
Recommended Posts