Jump to content

Recommended Posts

Posted

NullPvPFlag.java

 

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*
* http://www.gnu.org/copyleft/gpl.html
*/
package net.sf.l2j.gameserver.handler.voicedcommandhandlers;

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


/**
*
* @Author Revenger
*
*/

public class NullPvPFlag implements IVoicedCommandHandler
{

  private static final String[] VOICED_COMMANDS = { "null_pvp_flag" };


public boolean useVoicedCommand(String command, L2PcInstance activeChar,String target)
{
    if (command.equalsIgnoreCase("null_pvp_flag"))
    {
     if (activeChar.getPvpFlag() != 0 )
     {
    	 activeChar.setPvpFlag(0);
     }
     else if (activeChar.isParalyzed() || activeChar.isRooted() || activeChar.isDead() 
    		 || activeChar.isAlikeDead() || activeChar.isConfused() || activeChar.isBetrayed()
    		 || activeChar.isFakeDeath() || activeChar.isFlying() || activeChar.isMounted()
    		 || activeChar.isInDuel() || activeChar.isInOlympiadMode() || activeChar.inObserverMode()
    		 || activeChar.isInJail())
    		 
     {
    	 activeChar.sendMessage("You Cannot Use This Command Right Now!");
    	 return false;
     }
    }
    return true;
}

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

    }

 

then register it on the gameserver

 

import net.sf.l2j.gameserver.handler.voicedcommandhandlers.NullPvPFlag;

 

_voicedCommandHandler.registerVoicedCommandHandler(new NullPvPFlag());

Posted

yeah... its quite scammable... unless it takes some item and sets your pvp flag to 0 after ~5 secs...

 

BTW... i find this as more propper way

 

  if (activeChar.isParalyzed() || activeChar.isRooted() || activeChar.isDead()

    || activeChar.isAlikeDead() || activeChar.isConfused() || activeChar.isBetrayed()

    || activeChar.isFakeDeath() || activeChar.isFlying() || activeChar.isMounted()

    || activeChar.isInDuel() || activeChar.isInOlympiadMode() || activeChar.inObserverMode()

    || activeChar.isInJail())

   

    {

    activeChar.sendMessage("You Cannot Use This Command Right Now!");

    return false;

    }

  else if (activeChar.getPvpFlag() != 0 )

    {

    activeChar.setPvpFlag(0);

    }

    }

Posted

well well well maybe Revenger soon can make bit bigger things?^^

my first share was..

enterworld.java

if (!activeChar.isHero())
{
activeChar.setHero();
}

lol :D

its a nice start though.

Posted

my first share was..

enterworld.java

if (!activeChar.isHero())
{
activeChar.setHero();
}

lol :D

its a nice start though.

 

my first share was all class subclass to all class :D

nobody born smart good thing that some ppl start to learn^^

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
Reply to this topic...

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



  • Posts

    • i had sent you in discord i think already the link seen you asking in mobius forum  anyway here you go  https://www.mediafire.com/folder/6oh7l7hf34xr9/C1
    • Hello all.   I have some strange errors on server side and the right bar of Open Beta STORE is not showing anymore after changing server ip.   Errors: [11:34:12] TriggerParser: Exception: l2.gameserver.data.xml.parser.exception.InvalidAttributeValueException: Bypass trigger is calling "classMaster#tryShowIcon" action which is missing! l2.gameserver.data.xml.parser.exception.InvalidAttributeValueException: Bypass trigger is calling "classMaster#tryShowIcon" action which is missing! at l2.gameserver.data.xml.parser.TriggerParser.parseBypasses(Unknown Source) ~[server.jar:?] at l2.gameserver.data.xml.parser.TriggerParser.parseTrigger(Unknown Source) ~[server.jar:?] at l2.gameserver.data.xml.parser.TriggerParser.readData(Unknown Source) ~[server.jar:?] at l2.commons.data.xml.AbstractParser.parseDocument(Unknown Source) ~[server.jar:?] at l2.commons.data.xml.AbstractFileParser.parse(Unknown Source) [server.jar:?] at l2.commons.data.xml.AbstractParser.load(Unknown Source) [server.jar:?] at l2.gameserver.data.xml.Parsers.parseAll(Unknown Source) [server.jar:?] at l2.gameserver.GameServer.<init>(Unknown Source) [server.jar:?] at l2.gameserver.GameServer.main(Unknown Source) [server.jar:?]   java.lang.IllegalArgumentException: Couldn't find Config "closedBeta" in file "shop" at l2.commons.config.ConfigManager.getConfigValue(Unknown Source) ~[server.jar:?] at l2.commons.config.ConfigManager.getObjectValue(Unknown Source) ~[server.jar:?] at l2.ext.closedbeta.ClosedBeta.isBetaTester(ClosedBeta.java:32) ~[?:?] at l2.ext.closedbeta.ClosedBeta$OnEnterWorld.onEnterWorld(ClosedBeta.java:23) ~[?:?] at l2.gameserver.model.actor.listener.PlayerListenerList.onEnterWorld(Unknown Source) ~[server.jar:?] at l2.gameserver.network.l2.c2s.EnterWorld.runImpl(Unknown Source) [server.jar:?] at l2.gameserver.utils.ExecutionRecorder.wrapInPacketExecution(Unknown Source) [server.jar:?] at l2.gameserver.network.l2.c2s.L2GameClientPacket.run(Unknown Source) [server.jar:?] at l2.commons.net.nio.impl.MMOExecutableQueue.run(Unknown Source) [server.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?] at java.lang.Thread.run(Thread.java:840) [?:?] Caught at: l2.gameserver.network.l2.c2s.EnterWorld.runImpl(Unknown Source)   I am using lucera files, Ertheia version.   Any help would be gladly appreciated. Thank you.
    • u cant change anything in facebook without a password, so my tiktok case wasnt a hijack.
    • Exactly, if somebody hijacks ur sessions, then u wont see a new device in your "Devices List". And with that hijacked session you are able to change whatever you want unless you have 2FA enabled. And I believe changing a group owner doesn't trigger 2FA.
  • Topics

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