Jump to content

Recommended Posts

Posted

Dont work for me.

 

This is the error.

 

    [javac] C:\workspace\L2J-Edelvez\trunk\Edelvez-GS\java\com\edelvez\gameserver\handler\itemhandlers\Potions.java:630: cannot find symbol
    [javac] symbol  : variable item
    [javac] location: class com.edelvez.gameserver.handler.itemhandlers.Potions
    [javac] 		if (activeChar.getPvpFlag() != 0 && item.getItemId() == 728)
    [javac] 		                                    ^
    [javac] C:\workspace\L2J-Edelvez\trunk\Edelvez-GS\java\com\edelvez\gameserver\handler\itemhandlers\Potions.java:633: missing return value
    [javac] 			return;
    [javac] 			^
    [javac] Note: C:\workspace\L2J-Edelvez\trunk\Edelvez-GS\java\com\edelvez\gameserver\GeoEngine.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: C:\workspace\L2J-Edelvez\trunk\Edelvez-GS\java\com\edelvez\Config.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors

 

Some one know how to fix this?

  • 3 months later...
Posted

Whit this small modification you can disallow potions in pvp

 

go to com.l2jfree.gameserver.handler.itemhandler.potion.java

 

search for this:

 

		if (activeChar.isAllSkillsDisabled())
	{
		activeChar.sendPacket(ActionFailed.STATIC_PACKET);
		return;
	}

 

then after that insert this:

 

		if (activeChar.getPvpFlag() != 0)
	{
		if (item.getItemId() == your itemID)
		{
		    activeChar.sendMessage("You cannot use this in pvp mode!");
		    return;
		}
	}

 

credits to crion for the base code and to me because of some correction

(with crion's code in gracia i get several error message like cannot find symbol and others)

 

 

very sux code :S

 

 

 

open L2Character and search with ctrl + f

 

 

Search that ====

private boolean checkDoCastConditions(L2Skill skill)

 

 

 

after that :

 

                      if (skill == null || (skill.getFlyType() != null && isMovementDisabled()))
	{
	// Send a Server->Client packet ActionFailed to the L2PcInstance
                                sendPacket(ActionFailed.STATIC_PACKET);
		return false;
	}

 

paste that :

 

                      if(this.isInCombat() && skill.getId() == Here your SkillId)
	         {
		 sendMessage("You cannot use this in pvp mode!");
		 return false;
	            }

 

OR:

 

 

             if(this.isInCombat() && skill.isPotion())
	{
		 sendMessage("You cannot use this in pvp mode!");
		 return false;
	}

 

 

better take that:

 


if(this instanceof L2PcInstance)
	{

	L2PcInstance player = (L2PcInstance) this;

	if(this.isInCombat() && skill.getId() == Your skill id here && player.getPvpFlag() > 0 )
	{
		 sendMessage("You cannot use this in pvp mode!");
		 return false;
	}

	if(this.isInCombat() && skill.isPotion() && player.getPvpFlag() > 0 )
	{
		 sendMessage("You cannot use this in pvp mode!");
		 return false;
	}
 }

  • 4 months later...
  • 1 year later...
  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



  • Posts

    • WoW Midnight — AFK Fishing Bot v2.0     Fully rewritten. No more pixel detection. V2 is audio-only and paired with a companion addon that handles everything inside the game — one keybind does it all.     Showcase:                  What's new in v2.0 Audio-only detection. Listens for the splash. No screen scanning, no calibration, no zone tuning. It just works anywhere. One key for everything. Same keybind casts the line and loots the catch. Bound via the included BobberAssist addon. Auto-buff system. Drop your lures, teas, potions (Haranir Phial, Sanguithorn Tea, Ominous Octopus Lure, etc.) into the addon. Set a timer. The bot refreshes them automatically before each cast. Sit-and-fish mode. Optional — bot types /sit when you start. Fewer interrupts from Root Crabs and roaming mobs. Smart anti-AFK. Fires only between catches, never mid-cast. AutoDestroy addon included. Junk items deleted automatically after every catch. VB-CABLE support. Play music, Discord, YouTube with zero interference. Randomized timing — natural 50–120 ms reactions.                       Features One-key start (F6) — press and walk away Audio isolation via VB-CABLE — play music, YouTube, Discord with zero interference Configurable consumable auto-use (lures / baits / potions / teas) with per-item timers Sit-and-fish mode to avoid ambient mob aggro Anti-AFK built in — jumps every 5 minutes in stand mode, jump + re-sit in sit mode (between catches only, never mid-cast) AutoDestroy addon included — automatically deletes junk items to keep bags clean after every catch Randomized splash→loot and loot→recast delays (natural timing, 50–120 ms reaction) Works in any zone, any fishing spot No pixel detection means no zone-specific tuning — it just works        Why v2 > v1 V1 scanned your screen for the bobber. It broke when the UI changed, the camera moved, or a new zone had different visuals. V2 only listens for the splash — nothing visual to break. Plus the new addon lets a single keybind cast, loot, and use your buffs. Way less setup, way more reliable.            Safety Runs completely external. No injection, no memory reads, no file edits. Watches nothing, listens to audio, presses one key. Use at your own risk. Automation is against Blizzard's ToS.          V1 owners Free upgrade. DM me for the new build.   One-time payment, lifetime access. DM on Discord: Nythrand
    • Hi as the title says, I need a working script for anti captcha. First window appears and have to click continue, then comes up another to type the code. Tell me how much u want for help $$.    
    • Did your boss send you to post this? hahaha
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..