Skip to content

Who Know Java Code Please

Featured Replies

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

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

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.

 

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?

  • Author

yes dodie

if (!isOnEvent() || (isOnEvent() && getFame() > 10))

      setFame(getFame() - 1);

Create an account or sign in to comment

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.