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

    • Γεια σε ολους, προσπαθω εδω και 2 μερες να κανω αυτο το πραγμα να λειτουργει. το καταφερα για ενα διαστημα 5 ωρων. αλλα φαινεται οτι το discord μου κανει block to dll. ή κατι αλλο που δεν μπορω να ειμαι σιγουρος για το τι φταιει... αν καποιος γνωριζει κατι ας στειλει ενα pm να το δουμε μαζι.  *το source το εφιαξα εγω. https://youtu.be/kMvrbo9VBZc  ενα βιντεο που δειχνει πως δουλευε πριν σταματησει να δουλευει...   
    • thank you, please move to the desired category
    • wrong section, you need move this post to https://maxcheaters.com/forum/72-marketplace-l2packs-files/
    • Unlock Unlimited Access with GoProxy's Residential Proxies!   Experience seamless, secure, and unrestricted connectivity worldwide with GoProxy's Unlimited Residential Proxies. Our service offers access to a global network of rotating residential IPs, ensuring top performance for your large-scale data collection, streaming, and more.     ✔️Unlimited Traffic & IPs: Enjoy unrestricted access with our rotating residential proxies, delivering high performance through a vast global IP pool. ✔️High Success Rate: Achieve a 99.96% success rate with a rapid 0.6-second response time, ensuring efficient and reliable operations. ✔️Flexible Sessions: Customize IP rotation to fit your project needs, with options for automatic rotation and sticky sessions lasting up to 60 minutes. ✔️Global Coverage: Access IPs from over 120 countries, making it ideal for businesses requiring high bandwidth without region-specific constraints.     All plans include unlimited traffic and IPs, unlimited concurrent requests, and access to real residential IP addresses. Elevate your online operations with GoProxy's Unlimited Residential Proxies—your smart choice for large-scale projects.   👉 Learn more and get started today: GoProxy Unlimited Proxies
  • Topics

×
×
  • Create New...