Page 1 of 1
Teleport after death
Posted: Tue Jun 29, 2010 11:43 am
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?
Re: Teleport after death
Posted: Tue Jun 29, 2010 12:26 pm
by Makc406
See L2_GameServer/java/com/l2jserver/gameserver/network/clientpackets/RequestRestartPoint.java
Re: Teleport after death
Posted: Tue Jun 29, 2010 12:55 pm
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?

Re: Teleport after death
Posted: Tue Jun 29, 2010 1:05 pm
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.
Re: Teleport after death
Posted: Tue Jun 29, 2010 1:11 pm
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... ?
Re: Teleport after death
Posted: Tue Jun 29, 2010 1:49 pm
by janiii
you could use the agathion ress button. check the Die server packet
Re: Teleport after death
Posted: Tue Jun 29, 2010 4:26 pm
by mrcx
janiii wrote:you could use the agathion ress button. check the Die server packet
thanks man, i found what i was looking for

Re: Teleport after death
Posted: Sat Jul 10, 2010 10:15 am
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?
Re: Teleport after death
Posted: Fri Jul 16, 2010 2:39 pm
by mrcx
damn , i forgot about this post... Already solved my problem. Someone can close/delete this topic