

Bot
-
Posts
47 -
Joined
-
Last visited
-
Feedback
0%
Posts posted by Bot
-
-
-
This is excellent news. When do we get to download?
-
So it's like the old RuneScape then, Kati? People say the same about WoW but I tried it and to this day I still dislike WoW. I'll stay away from it if you say it's addictive. Maybe the OP should monitor himself as well so he doesn't get addicted.
-
My PSN is in the main post of the thread
.
-
-
I want this game. Last time I wanted a game it was amazing (Bioshock Infinite)
-
Will many scripts be released with the bot?
That depends on what the script developers have come up with.
-
I don't think that it's a major improvement over BattleField 3. There's definitely room for improvement imo, too many illusions going around and lens flare.
-
1
-
-
I support
-
-
COD4: 1st Prestige
COD5: No prestige
MW2: 10th Prestige
Black OPS: 15th Prestige
MW3: 20th Prestige
Black Ops 2: Prestige Master
Pretty proud that I haven't missed max since Cod5
-
Elephant
-
Way to hijack my thread guys. I also have an xbox though, My name on that is I think BL1SZ and I have Black Ops I for it .
-
I've been wanting to get in to LoL since you just got into it. How is it? Would you recommend it ?
-
The introduction sub-section is right here http://osbot.org/forum/index.php?/forum/54-introductions/
As for the script progress, I think the developers can use their own medium to display their progress and probably just put it on the script's thread.
-
As long as the rules make sense on the server I'd play it.
-
This is more progress towards more users finally getting to use OSBot.
Power On! -
I got that damaged profile thing in Zombies but it restored my rank.
Yeah I play Zombies. -
The reasoning behind it I think is performance. HTML5 is a pretty recent language like Bythex said and it brings a lot of great web features to the table. RuneScape is a web based game and it makes sense to use a more web orientated platform.
-
(This is my second time typing this entire thread)
The Switch Statement
Part of this knowledge comes from: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/switch.html
The switch statement is a cleaner, faster way to show multiple if else statements. In a switch block, a Character, Byte, Short, Integer, String or Enum can be used. Here is an example using String
switch(myString) { case "A": break; case "B": break;}
Enums use the Enum constants when switching. For example:
switch(myEnum){ case MEnum.Foo; break; case MEnum.ooF; break;}
Note that the only time the cases are enclosed within quotation marks( " ) is when we are using a String. Also notice the fact that we use a break after every case. This is to prevent falling through to the next case. For example
switch(myString) { case "A": case "B": break;}
In the case of A, not only will everything under the case of A be executed, but so will everything following that unless it is broken with a break
Extra Information from thiefmn6092:
once the number of conditions goes over a certain threshold (3 i believe with oracles jvm), a switch statement will be evaluated as a http://en.wikipedia.org/wiki/Branch_table. there are also other conditions that determine whether this is used. this allows the jvm to optimize more selectively for that block of code as well.
The Ternary Operator
You can consult: http://alvinalexander.com/java/edu/pj/pj010018 if you find this unclear. However, if you do please let me know.
The ternary is another way of replacing an if else statement that might look like
if(myInt == 2) { someInt = 5;}
In a ternary, this would look like
someInt = myInt == 2 ? 5 : someInt;
Here's a breakdown of what just happened. The structure of a basic ternary is
field = (Condition) ? (Action) : (Default Action/What happens if the condition is failed)
The condition is any condition that you would normally meet in an if statement. If you have an if statement like this
if(myInt == 2 || myInt == 4 || myInt == 6) { someInt = 5;}
Then the ternary would look like
someInt = myInt == 2 || myInt == 4 || myInt == 6 ? 5 : someInt;
You can also stack multiple ternaries into one statement so where the default action would be we can say
someInt = myInt == 2 || myInt == 4 || myInt == 6 ? 5 : myInt == 8 ? 10 : -1;
That is the same as saying
if(myInt == 2 || myInt == 4 || myInt == 6) { someInt = 5;} else if(myInt == 8) { someInt = 10;} else { someInt = -1;}
The ternary just puts it into one neat little line. Of course you can apply your java syntax knowledge and use brackets.
Let me know if I missed anything, this is my second attempt so I'm kind of worn.
-
-
Anybody wanna game on BO2? I play on PS3 my name is BotMw
Here's an image from when I went 148-5.
-
Well there goes the Beta and I'm not an official script developer yet.
I hope the developers are getting on with the day they have and hope we could see some scripts. -
Four.
Staff:
YOU SHALL NOT POST!
PUBLIC Bot BETA live!
in News & Announcements
Posted
Thank you finally..