Page 1 of 1
After death teleport to only one town.
Posted: Sun Oct 31, 2010 7:12 pm
by hiroshima
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision : Latest
L2JDP Revision : Latest
hey guys i am wondering how to change "After death" teleport to one town. I searched... prolly its already there but i not found, u must to forgive me

What i mean? example: I die in Ketra, i click on "Go to village" and i am in Giran. Simple

i think code is simple too. Thanks.
Re: After death teleport to only one town.
Posted: Sun Oct 31, 2010 10:33 pm
by hope
Zone.xml
Re: After death teleport to only one town.
Posted: Sun Oct 31, 2010 10:58 pm
by SolidSnake
Code: Select all
Index: java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java===================================================================--- java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java (revision 4422)+++ java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java (working copy)@@ -178,7 +178,8 @@ break; default:- loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);+ loc = new Location(X, Y, Z); break; }
Re: After death teleport to only one town.
Posted: Tue Nov 02, 2010 4:40 pm
by ReaLm
Ok, i found this RequestRestartPoint.class, and decompiled it. but now how to use this script?
Re: After death teleport to only one town.
Posted: Wed Nov 03, 2010 11:23 am
by jurchiks
omfg...
you need to modify THE SOURCE CODE, not decompile nightlies!!
Re: After death teleport to only one town.
Posted: Wed Nov 03, 2010 12:53 pm
by Naonah
jurchiks wrote:omfg...
you need to modify THE SOURCE CODE, not decompile nightlies!!

Re: After death teleport to only one town.
Posted: Wed Nov 03, 2010 2:39 pm
by ReaLm
jurchiks wrote:omfg...
you need to modify THE SOURCE CODE, not decompile nightlies!!
HOW TO MODIFY THE SOURCE CODE? WHAT IS A FILE? I'm didnt see this code:
Code: Select all
default:# - loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town);
in to RequestRestartPoint.class, for change code..
Re: After death teleport to only one town.
Posted: Wed Nov 03, 2010 3:00 pm
by ReaLm
I've found similar code from RequestRestartPoint$DeathTask.class :
Code: Select all
case 27: // '\033' if(!activeChar.isInJail()) return; loc = new Location(0xfffe414c, 0xfffc30d3, -2984); break; default: loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, com.l2jserver.gameserver.datatables.pe.Town); break; } activeChar.setInstanceId(instanceId); activeChar.setIsIn7sDungeon(false); activeChar.setIsPendingRevive(true); activeChar.teleToLocation(loc, true); }
Tryed to change code this:
Code: Select all
- loc = MapRegionTable.getInstance().getTeleToLocation(activeChar, MapRegionTable.TeleportWhereType.Town); + loc = new Location(my, location, zone); break; }
saved the file to .class extension, and overwrited to original RequestRestartPoint$DeathTask.class, then I zipped all files to l2jserver.zip and renamed in to l2jserver.jar...
Re: After death teleport to only one town.
Posted: Wed Nov 03, 2010 3:20 pm
by janiii
at first, please read something about basic java. thanks. topic closed until you return here with basic java knowledge.