Jump to content
  • 0

[Code] Give Additional Option On Death On A Specific Location


Question

Posted (edited)

Hello i have a custom zone L2etczone.java

 

I want when player is on this specific location "to village" go him to a standard location in etczone who i will choose

also i need to put additional option on death [To safe location] and move him also in a standard location in the case (village)

 

Pack is L2jfrozen 

 

I have to put the code inside com.l2jfrozen.gameserver.network.clientpackets.Requestrestartpoint.java

 

or i can edit it from this part of the code ..

   @Override
   protected void onExit(L2Character character)
   {
       if (character instanceof L2PcInstance)
       {
    	   ((L2PcInstance) character).setIsInsideEtczone(false);
       }
   }
   
   
  @Override
   public void onDieInside(L2Character character)
   {
     
   }
   
   @Override
   public void onReviveInside(L2Character character)
   {
       onEnter(character);
   }
}
Edited by L2LostWard

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock