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

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
Answer this question...

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

×
×
  • Create New...