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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...