Jump to content
  • 0

Anyone know how to disable chatban on .deposit/.withdraw commands ?


Question

8 answers to this question

Recommended Posts

  • 0
Posted

You can change it from eclipse.

Go to voicedcommandhandlers and check these 2 commands.

Do you know java ?

Do you think he really needs to know java in order to disable these thingies?oO

Anyway on topic,

If you are using interlude try to find in GameServer.java(core) Find the line which those 2 voicedcommands are registered and delete it  or im sure there are configs for them,

If you are using g epilogue you will find MasterHandler in data/scripts/handlers Find the line which those 2 voicedcommands are registered delete the line and done

  • 0
Posted

Do you think he really needs to know java in order to disable these thingies?oO

no no no

I need theese 2 commands to work

All i need is to disable CHATBAN system on them

To make this i think yes ...

If you are using interlude try to find in GameServer.java(core) Find the line which those 2 voicedcommands are registered and delete it  or im sure there are configs for them,

If you are using g epilogue you will find MasterHandler in data/scripts/handlers Find the line which those 2 voicedcommands are registered delete the line and done

fail :o

  • 0
Posted

all i've found so far is

    {
    	long delayInMilliseconds = delayInMinutes * 60000L;
    	switch (state)
    	{
    		case NONE: // Remove Punishments
    	{
    		switch (_punishLevel)
    		{
    			case CHAT:
	    		{
	    			_punishLevel = state;
	    			stopPunishTask(true);
	    			sendPacket(new EtcStatusUpdate(this));
		            sendMessage("Your Chat ban has been lifted");
		            break;
	    		}
    			case JAIL:
	    		{
	    			_punishLevel = state;
	    			// Open a Html message to inform the player
	        		NpcHtmlMessage htmlMsg = new NpcHtmlMessage(0);
		            String jailInfos = HtmCache.getInstance().getHtm(getHtmlPrefix(), "data/html/jail_out.htm");
		            if (jailInfos != null)
		                htmlMsg.setHtml(jailInfos);
		            else
		                htmlMsg.setHtml("<html><body>You are free for now, respect server rules!</body></html>");
		            sendPacket(htmlMsg);
		            stopPunishTask(true);
		            teleToLocation(17836, 170178, -3507, true);  // Floran
		            break;
	    		}
    		}
    		break;
    	}
    		case CHAT: // Chat Ban
    	{
    		// not allow player to escape jail using chat ban
    		if (_punishLevel == PunishLevel.JAIL)
    			break;
    		_punishLevel = state;
    		_punishTimer = 0;
    		sendPacket(new EtcStatusUpdate(this));
    		// Remove the task if any
    		stopPunishTask(false);
    		
    		if (delayInMinutes > 0)
    		{
    			_punishTimer = delayInMilliseconds;
    			
    			// start the countdown
    			_punishTask = ThreadPoolManager.getInstance().scheduleGeneral(new PunishTask(this), _punishTimer);
                sendMessage("You are chat banned for "+delayInMinutes+" minutes.");
    		}
    		else
    			sendMessage("You have been chat banned");
    		break;
    		
    	}

 

Any ideas how to change chatban time to 1s ??

 

  • 0
Posted
if (delayInMinutes > 0)

    {

    _punishTimer = delayInMilliseconds;

   

    // start the countdown

    _punishTask = ThreadPoolManager.getInstance().scheduleGeneral(new PunishTask(this), _punishTimer);

                sendMessage("You are chat banned for "+delayInMinutes+" minutes.");

 

to:

 

if (delayInMinutes > 0)

    {

    _punishTimer = 1000;

   

    // start the countdown

    _punishTask = ThreadPoolManager.getInstance().scheduleGeneral(new PunishTask(this), _punishTimer);

                sendMessage("You are chat banned for 1 second.");

 

Not the perfect solution, just a hack that does the job :)

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