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?

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