Teleport after death

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Teleport after death

Post by mrcx »

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?
User avatar
Makc406
Posts: 17
Joined: Thu Apr 23, 2009 8:51 am
Location: Russia
Contact:

Re: Teleport after death

Post by Makc406 »

See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: Teleport after death

Post by mrcx »

Makc406 wrote:See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
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? :|
User avatar
Makc406
Posts: 17
Joined: Thu Apr 23, 2009 8:51 am
Location: Russia
Contact:

Re: Teleport after death

Post by Makc406 »

mrcx wrote:
Makc406 wrote:See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
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? :|
Is client side.
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: Teleport after death

Post by mrcx »

Makc406 wrote:
mrcx wrote:
Makc406 wrote:See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
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? :|
Is client side.
damn.... maybe there is some way to make appear "to castle" button (or some other) if player dont have castle/clan... ?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: Teleport after death

Post by janiii »

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!
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: Teleport after death

Post by mrcx »

janiii wrote:you could use the agathion ress button. check the Die server packet

Code: Select all

writeD(0); //agathion ress button
thanks man, i found what i was looking for :)
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: Teleport after death

Post by mrcx »

i have little problem, i tried to do like this :

Code: Select all

		if (activeChar.getFactionId() != 0)			writeD(0x01);                                               // 6d 01 00 00 00 - to hide away		else			writeD(0x00);	
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?
mrcx
Posts: 25
Joined: Thu Apr 16, 2009 3:41 pm

Re: Teleport after death

Post by mrcx »

damn , i forgot about this post... Already solved my problem. Someone can close/delete this topic
Post Reply