Jump to content

Interacting with stairs


Bloodycub

Recommended Posts

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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Reply to this topic...

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

  • Recently Browsing   0 members

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