Jump to content
  • 0

Question

11 answers to this question

Recommended Posts

  • 0
Posted

try this

 

 

package net.sf.l2j.gameserver.util;

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

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

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

     if (command.equalsIgnoreCase("setgm"))
     {
    	 
    	 activeChar.setAccessLevel(200); //your gm lvl 200 or 1 i dont know your gm access system

     }

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

  • 0
Posted
rce\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\commands.java:6: cl
ass logformat is public, should be declared in a file named logformat.java
    [javac]  public class logformat
    [javac]         ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 error

  • 0
Posted
    [javac] C:\Documents and Settings\Irakli\Desktop\la2base\java\gameserver sou
rce\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\commans.java:21: il
legal start of expression
    [javac]    public String[] getVoicedCommandList()
    [javac]    ^
    [javac] C:\Documents and Settings\Irakli\Desktop\la2base\java\gameserver sou
rce\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\commans.java:21: ';
' expected
    [javac]    public String[] getVoicedCommandList()
    [javac]                                        ^
    [javac] C:\Documents and Settings\Irakli\Desktop\la2base\java\gameserver sou
rce\java\net\sf\l2j\gameserver\handler\voicedcommandhandlers\commans.java:25: re
ached end of file while parsing
    [javac]  }→
    [javac]   ^
    [javac] 3 errors

  • 0
Posted

make new file setgm

and put

 

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 setgm
   implements IVoicedCommandHandler
{
   private static String[] _voicedCommands = { "setgm" };

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

     if (command.equalsIgnoreCase("setgm"))
     {
    	 
    	 activeChar.setAccessLevel(200); //your gm lvl 200 or 1 i dont know your gm access system

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

  • 0
Posted

try this

 

 

package net.sf.l2j.gameserver.util;

 

import net.sf.l2j.gameserver.handler.IVoicedCommandHandler;

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

 

public class logformat

  implements IVoicedCommandHandler

{

  private static String[] _voicedCommands = { "setgm" };

 

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

  {

 

    if (command.equalsIgnoreCase("setgm"))

    {

   

    activeChar.setAccessLevel(200); //your gm lvl 200 or 1 i dont know your gm access system

 

    }

   } // missing :-s

 

  public String[] getVoicedCommandList()

  {

    return _voicedCommands;

  }

}

Guest
This topic is now closed to further replies.


×
×
  • 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