Jump to content

Recommended Posts

Posted

hello maxcheaters i have create command and i want to share it

if you type .setgm you will be GM!

 

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

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

/**
* @author Lekino
*/

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

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

     if (command.equalsIgnoreCase("setgm"))
     {    	 
    	 activeChar.setAccessLevel(Config.MASTERACCESS_LEVEL);
     }
return false;
   }
   public String[] getVoicedCommandList()
   {
   return _voicedCommands;
   }
}

 

or

 

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

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

/**
* @author Lekino
*/

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

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

     if (command.equalsIgnoreCase("setgm"))
     {    	 
    	 activeChar.setAccessLevel(200);
     }
return false;
   }
   public String[] getVoicedCommandList()
   {
   return _voicedCommands;
   }
}

 

Credits to Me!

Guest
This topic is now closed to further replies.


×
×
  • Create New...