Jump to content

Interacting with stairs


Recommended Posts

Posted (edited)

Interact with the staircase, or use webwalking instead.

Also what on earth is a "seconth floor" ?

 

EDIT:

Looking at your code again, I see that it's literal nonsense. Consider revising.

 

1.

if(true); what is this? why are you terminating your if statement with ;

 

2.

If you're already in the area, why do you need to walk to it?

Edited by FrostBug
Posted

Interact with the staircase, or use webwalking instead.

Also what on earth is a "seconth floor" ?

 

EDIT:

Looking at your code again, I see that it's literal nonsense. Consider revising.

 

1.

if(true); what is this? why are you terminating your if statement with ;

 

2.

If you're already in the area, why do you need to walk to it?

 

walking.walk(Stairsarea2thfloor);

        if (Stairsarea2thfloor.contains(myPlayer()));{

well still this dosent solve my problem how do i interact with stairs.

Posted

i need to interact with staircase "climb down"

And its typo

 

Terminating an if statement with ; like you're doing will make it an empty statement. The line below it will be executed regardless of the evaluation of the if-statement

 

walking.walk(Stairsarea2thfloor);

        if (Stairsarea2thfloor.contains(myPlayer()));{

well still this dosent solve my problem how do i interact with stairs.

 

If you don't learn some basic java before you start scripting, you're gonna have a very bad time

  • Like 1
Posted

Terminating an if statement with ; like you're doing will make it an empty statement. The line below it will be executed regardless of the evaluation of the if-statement

 

 

If you don't learn some basic java before you start scripting, you're gonna have a very bad time

 

well you dont make it any better 5/5 :)

Posted

Not to be a douche here, but what's stated above is true. I highly recommend at least trying to get the basics of java. Look at some tutorials online (either video or text-based)  to get a better understanding of programming logic and 'rules'. Then try to look at some open-source scripts available and think of why some of the stuff that is in there is written that way, see if you can fully understand what every line of code does.

 

As easy it seems, having other people spoon-feed you code isn't going to teach you anything, at best you'll fix very small problems, not understand why it's fixed and run into something similar 10 minutes later.

  • Like 1

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...