Jump to content
  • 0

Question

Posted (edited)

Even putting a reuse time of 2 seconds in the potions and autopotion, players using custom interface can take advantage of this bug and regenerate their CP absurdly watch the video

Is there a way to put something like a protection that if using the item too fast the player takes kick or jail?

 

XML

	<item id="5591" type="EtcItem" name="CP Potion">
		<set name="icon" val="icon.etc_cp_potion_i00" />
		<set name="default_action" val="SKILL_REDUCE" />
		<set name="etcitem_type" val="POTION" />
		<set name="immediate_effect" val="true" />
		<set name="material" val="LIQUID" />
		<set name="weight" val="25" />
		<set name="price" val="200" />
		<set name="reuse_delay" val="1000" />
		<set name="is_stackable" val="true" />
		<set name="is_oly_restricted" val="true" />
		<set name="handler" val="SoulShots" />
		<set name="item_skill" val="2166-1" />
	</item>
	<item id="5592" type="EtcItem" name="Greater CP Potion">
		<set name="icon" val="icon.etc_cp_potion_i01" />
		<set name="default_action" val="SKILL_REDUCE" />
		<set name="etcitem_type" val="POTION" />
		<set name="immediate_effect" val="true" />
		<set name="material" val="LIQUID" />
		<set name="weight" val="100" />
		<set name="price" val="500" />
		<set name="reuse_delay" val="1000" />
		<set name="is_stackable" val="true" />
		<set name="is_oly_restricted" val="true" />
		<set name="handler" val="SoulShots" />
		<set name="item_skill" val="2166-2" />
	</item>

 

AutoPotion: 

 

    /** Configuration */
    private final static int MP_MINIMUM_PERCENTAGE = 80; // Example MP pot will be activated if MP is lower than 75%
    private final static int HP_MINIMUM_PERCENTAGE = 95; // Example MP pot will be activated if HP is lower than 75%
    private final static int CP_MINIMUM_PERCENTAGE = 95; // Example MP pot will be activated if CP is lower than 90%
    
    private final static int POT_TRIGGER = 2000; 

 

i use l2jsunrise (H5)

 

 

 

 

 

Edited by HARDECORE

2 answers to this question

Recommended Posts

  • 0
Posted (edited)

My pack has flood protection option for UseItem and PotionUse. maybe search for something similar in your pack.

Edited by sotid
  • 0
Posted
1 hour ago, sotid said:

My pack has flood protection option for UseItem and PotionUse. maybe search for something similar in your pack.

 

 

Here in mine, I found nothing. show me what yours is like? in which file, like this etc ..

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

    • Inventory restock: Premium business accounts are now available.   ✔ Wallester Business EU 🇪🇺|💳 Unlimited virtual cards, physical cards, 🏦 multi-currency IBAN, ₿ crypto & stablecoin deposits. ✔ Stripe Business UK 🇬🇧|💳 Instant virtual cards (Visa/Mastercard), high-conversion checkout, multi-currency payouts, ₿ crypto payments, no-code payment links. ✔ Mercury Business US 🇺🇸|🏦 US checking & savings, 💳 unlimited virtual cards, domestic & International wires, native stablecoin settlement. ✔ Payset Business EU 🇪🇺|🏦 Multiple IBANs, UK sort code, SEPA Instant, 💳 unlimited virtual cards, multi-currency accounts. ✔ Novo Business US 🇺🇸|🏦 Business checking account, ACH payments & invoicing, 💳 virtual & physical cards, novo boost.
    • Let me see if I understand correctly, older gentlemen, when a newcomer shows up to create modern things with the help of AI, doing what you charge them to do, you point the finger and laugh. I believe that's why everything is stagnant. The product isn't for programming experts, it's for newcomers. Don't buy from you if they can do it themselves using this base. You're going to deliver a similar product, maybe even worse than this one, so why are you complaining? PowerShell, as you well know, started with it, then came new platforms and new apps, new creation models, all with different languages; I chose the simplest one for my taste. This is about being organized and knowing how to choose the right words for each situation. It's not 100%, but it already gives a good impression. Nothing is 100%, so a topic written by AI, and all the code that you charge an absurd amount for to prohibit and sell hacks, could be open source so that everyone can create new practices, new models, new information for passing packets, prohibiting the use of cheats that cause server owners to break so much. Let's remember that the Admin doesn't always shut down the server; it's the players who find problems and take advantage by buying and reselling items, and they say that the GM shuts down the server every week, but that's a lie. What they do is duplicate items with packages and sell them, but perhaps this could give some future developers a starting point to create their own protection following the model in the initial documentation. Because none of you answer a question from a newbie, you think you're superior because you have knowledge, but with AI, people like that can have the same knowledge as you, but with less practice. And if they practice a lot, 10,000 hours, they can be as good as all of you older developers in the L2J field.
  • 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..