Skip to content

code for check buffs

Featured Replies

L2jfrozen 1004

looking for a code that prevents people to add/change sub if they have buffs.

Solved by `Son

12 hours ago, sotid said:

L2jfrozen 1004

looking for a code that prevents people to add/change sub if they have buffs.

 

On VillageMaster, section

if (command.startsWith("Subclass"))

Edit whatever subcommand (probably 1/2/3, or at least 2) with a check :

if (player.getBuffCount() != 0)
	break;

The less annoying / more transparent method for the user is probably what SweeTs said.

  • Author
22 hours ago, SweeTs said:

Simply remove all buffs before sub change. Simple. 


I already have this in my pack /sources, and it doesnt work . Am I  missing something?


https://ibb.co/dd4rmd

 

11 hours ago, Tryskell said:

 

On VillageMaster, section


if (command.startsWith("Subclass"))

Edit whatever subcommand (probably 1/2/3, or at least 2) with a check :


if (player.getBuffCount() != 0)
	break;

The less annoying / more transparent method for the user is probably what SweeTs said.


I tried but I get this
https://ibb.co/g5Rqgd

 

I tried like this too

 

if(player.getBuffCount() != 0)
	break;

or like that

if (player.getBuffCount() >= 0)
	break;

or like that

if (player.getBuffCount() != 0)
{
	break;
}

or like that

if (player.getBuffCount() >= 0)
{
	break;
}

or like that

if(player.getBuffCount() != 0)
{
	break;
}

always get this message...

change ur project encode to utf-8.

  • Author
21 hours ago, wongerlt said:

change ur project encode to utf-8.

 

Do you mean save it as utf-8?

 

20 hours ago, `Son said:

use return; instead of break;

Thank you it worked , not sure why I didnt think about it..xD

  • Solomun locked this topic
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.