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


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