Jump to content

Question

Posted

Hello. To my server for example you have 50 cp right? you press one time cp and  pap pap pap pap pap :D

my problem is that is use cp handreds of times with no stop. how i can fix it this? can someone help me because is emergency situation to my server

5 answers to this question

Recommended Posts

  • 0
Posted

yea he can, he just puts a check:

if (item.getId() == CPPOTiD)

{

//MAIN CODE

}

well that's the only thing he can do.

 

He can add this in the Potions.java itemhandler :

 

if (item.getId() == CPPOTiD) && (!FloodProtector.getInstance().tryPerformAction(activeChar.getObjectId(), FloodProtector.PROTECTED_CP_POTION))
{
          activeChar.sendMessage("Chill Out! You Can't Use CP Pots so fast!");		 	
           return;
}

 

and then just go to the FloodProtector.java file and create the field PROTECTED_CP_POTION and add the reuse time

 

And you are //done

  • 0
Posted

Come on guys and floodprotector lolfix. fPs aren't supposed to work like/for that.

 

From what I understand, when you push once the CP potion, you got constant use of them instead of only 1. So here are some questions :

 

- does it work for any potion type ? You know as me HPs pot got a cooldown of some seconds, but do mana potion, or any potion with instant effect, do the same effect ?

- does it consumes really a potion to each "pam pam pam" (as you described them), or is it only the skill effect ?

- does it spam only when you push F1-12 buttons, or does it spam aswell when you double click from inventory ?

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