July 2, 20169 yr if (Stairsarea2thfloor.contains(myPlayer())); walking.walk(Stairsarea2thfloor);???? i need to climb down
July 2, 20169 yr 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 July 2, 20169 yr by FrostBug
July 2, 20169 yr Author Interact with the staircase, or use webwalking instead. Also what on earth is a "seconth floor" ? i need to interact with staircase "climb down" And its typo
July 2, 20169 yr i need to interact with staircase "climb down" And its typo RS2Object stairs = getObjects().closest(o -> o.getName().equls("Stairs) && o.hasAction("Climb-down")); stairs.interact("Climb-down");
July 2, 20169 yr Author 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.
July 2, 20169 yr 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
July 2, 20169 yr Author 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
July 2, 20169 yr well you dont make it any better 5/5 You should be able to use that information to fix the problem, though.
July 2, 20169 yr if (Stairsarea2thfloor.contains(myPlayer())); walking.walk(Stairsarea2thfloor); ???? i need to climb down 10/10
July 2, 20169 yr 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.
Create an account or sign in to comment