Teleport after death
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 25
- Joined: Thu Apr 16, 2009 3:41 pm
Teleport after death
Hello,im running faction server. And i have one idea. After player dies pops up little window with choises were to revive. I want to make custom restart point for players. Is it possible to do it without client modding? Where i can find it to edit it?
- Makc406
- Posts: 17
- Joined: Thu Apr 23, 2009 8:51 am
- Location: Russia
- Contact:
Re: Teleport after death
See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
-
- Posts: 25
- Joined: Thu Apr 16, 2009 3:41 pm
Re: Teleport after death
i saw that already... but how to add new button in that window like example : to village / to castle/ to clan hall and i want to add new button to crystal... Is it possible to add new one? Or i must edit existing one? Like to clan hall? Where i can find it? Or maybe that window is client side? Is it possible to evade client modding?Makc406 wrote:See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java

- Makc406
- Posts: 17
- Joined: Thu Apr 23, 2009 8:51 am
- Location: Russia
- Contact:
Re: Teleport after death
Is client side.mrcx wrote:i saw that already... but how to add new button in that window like example : to village / to castle/ to clan hall and i want to add new button to crystal... Is it possible to add new one? Or i must edit existing one? Like to clan hall? Where i can find it? Or maybe that window is client side? Is it possible to evade client modding?Makc406 wrote:See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
-
- Posts: 25
- Joined: Thu Apr 16, 2009 3:41 pm
Re: Teleport after death
damn.... maybe there is some way to make appear "to castle" button (or some other) if player dont have castle/clan... ?Makc406 wrote:Is client side.mrcx wrote:i saw that already... but how to add new button in that window like example : to village / to castle/ to clan hall and i want to add new button to crystal... Is it possible to add new one? Or i must edit existing one? Like to clan hall? Where i can find it? Or maybe that window is client side? Is it possible to evade client modding?Makc406 wrote:See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: Teleport after death
you could use the agathion ress button. check the Die server packet
Code: Select all
writeD(0); //agathion ress button
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 25
- Joined: Thu Apr 16, 2009 3:41 pm
Re: Teleport after death
thanks man, i found what i was looking forjaniii wrote:you could use the agathion ress button. check the Die server packetCode: Select all
writeD(0); //agathion ress button

-
- Posts: 25
- Joined: Thu Apr 16, 2009 3:41 pm
Re: Teleport after death
i have little problem, i tried to do like this :
but then i receiving in GS log when characters dies : Failed writing: 06 Die and NPE in Die packet... Maybe someone could give me clue how to fix this problem?
Code: Select all
if (activeChar.getFactionId() != 0) writeD(0x01); // 6d 01 00 00 00 - to hide away else writeD(0x00);
-
- Posts: 25
- Joined: Thu Apr 16, 2009 3:41 pm
Re: Teleport after death
damn , i forgot about this post... Already solved my problem. Someone can close/delete this topic