Jump to content

Recommended Posts

Posted

this command allow players to use .invul command and become immortal!

 

package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;
import net.sf.l2j.gameserver.model.actor.instance.L2PcInstance;

public class invul
   implements IVoicedCommandHandler
{
   private static String[] _voicedCommands = { "invul" };

   public   boolean useVoicedCommand(String command, L2PcInstance activeChar, String target)
   {

     if (command.equalsIgnoreCase("invul"))
     {
    	 
    	 activeChar.setIsInvul(true);
 activeChar.sendMessage("you are now immortal");

     }
	if (command.equalsIgnoreCase("uninvul"))
	{

    	 activeChar.setIsInvul(false);
 activeChar.sendMessage("you are now mortal");

}
return false;
   }
   public String[] getVoicedCommandList()
   {
   return _voicedCommands;
   }
}

NOT TESTED!

Posted

Really nice and unique.

Firstly it must tested and we must see if really works.

Anyway Credits?

[Wait for someone to test(i am not in good pc to test it right now )]

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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..

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