Jump to content
  • 0

Who Know Java Code Please


Question

Posted (edited)

Hallo Max who can see if this code correct 

 

                if (true)
                  {

                      if (getFame() > 10)

                       {
                           if (isOnEvent())
                              {
                                setFame(getFame() - 1);

                                return false;
                            }
                      }

I want after  10 points not to lost the points on tvt 

 

Edited by MegaCheat

5 answers to this question

Recommended Posts

  • 0
Posted

If boolean is true 

Then if u have more than 10 and you are in event set fame ( get fame) and make -1 

But return it false.  I dont think is correct and much hardcoded send a pm at discord Amenadiel#2435 i will fix this for free and u can share the fix if u wish here

  • 0
Posted
12 hours ago, MegaCheat said:

Hallo Max who can see if this code correct 

I want after  10 points not to lost the points on tvt 

 

What you mean exactly in this line? If you have 10 points(what those points are?) you don't want to loose those 10 points?

If points get 0 after a value of 10, then somewhere in your code, is a check that set the points to 0.

 

  • 0
Posted
On 1/13/2023 at 3:20 AM, MegaCheat said:

Hallo Max who can see if this code correct 

 

                if (true)
                  {

                      if (getFame() > 10)

                       {
                           if (isOnEvent())
                              {
                                setFame(getFame() - 1);

                                return false;
                            }
                      }

I want after  10 points not to lost the points on tvt 

 

when does this trigger? on death i guess?

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