Jump to content
  • 0

Question

8 answers to this question

Recommended Posts

  • 0
Posted
  On 6/30/2018 at 6:10 PM, sotid said:

L2jfrozen 1004

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

Expand  

 

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.

  • 0
Posted
  On 6/30/2018 at 8:30 PM, SweeTs said:

Simply remove all buffs before sub change. Simple. 

Expand  


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


https://ibb.co/dd4rmd

 

  On 7/1/2018 at 7:05 AM, 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.

Expand  


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

  • 0
Posted
  On 7/3/2018 at 6:36 AM, wongerlt said:

change ur project encode to utf-8.

Expand  

 

Do you mean save it as utf-8?

 

  On 7/3/2018 at 7:22 AM, `Son said:

use return; instead of break;

Expand  

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

Guest
This topic is now closed to further replies.


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