Skip to content

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

Featured Replies

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

why don't you check how multifunction zone works?

it has the system you want, maybe you can get the idea from there

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.