SRL Archive - Discussions and Debates

Funorb:Bouncedown script


Rambozin

2009-05-29 18:38:09

Hello guys,

It has been a while since I have been on here, as I have been playing FunOrb for some while now (the Minigame site from Jagex).

I was wondering if it was possible to make a script for the game BounceDown. I can still script, but I don't know how to start on the script.

Can someone help me out?
Thanks in advance,
Rambozin.

Naike

2009-05-29 19:29:09

I help you out if you post Pictures and how to play the game.

Feel free to pm for any function request :)

Dervish

2009-05-29 20:30:51

From: N1ke!
I help you out if you post Pictures and how to play the game.

Feel free to pm for any function request :)


Would be easiest if you tried it out tbh…

Rambozin

2009-05-31 11:30:37

Yea, it's just about falling down, evading platforms and trying to not hit the bottom-top.

You can play it here: http://mggameserver4.funorb.com/bouncedown/8003/game.ws?js=1

Gu3st...

2009-05-31 11:54:26

From: Rambozin
Yea, it's just about falling down, evading platforms and trying to not hit the bottom-top.

You can play it here: http://mggameserver4.funorb.com/bouncedown/8003/game.ws?js=1

Wow, it looks like a hard game to make a script for, but it is possible…

TODO lists:
- Find out where you are and who you are (if you are playing against other people)
- Find out what your speed is (very hard to do without some sort of reflection)
- Find the next platform and check if it is good or bad to go to that one (like, if it is the ice one and its 10 pixels over the flames.. not a good idea to go to that platform then…)
- If it lands on a platform that makes your blob move then the script has to make sure that is has enough time/speed to get off it on the right side of the platform.

It would be easy if you used some sort of reflection :o
Welcome back! :) Are you staying?

Rambozin

2009-05-31 12:03:29

I have never left :p I just didn't post, but I tried to keep up with the news every now and then ^^

The hardest part where I don't see a sollution for is indeed the speed-part. I could try and make the script check every x miliseconds what the speed is by comparing 2 printscreens that are taking very fast after eachother, but I have no idea how to start on scripting that ;p

Gu3st...

2009-05-31 12:36:00

From: Rambozin
I could try and make the script check every x miliseconds what the speed is by comparing 2 printscreens that are taking very fast after eachother, but I have no idea how to start on scripting that ;p
Yes that is a good idea

MePoint is the point where your character is
Point1 and Point2 is controlpoints
Function should maybe look something like

function GetSpeed : Integer;
var
Point1, Point2 : TPoint;
begin
GetMePos(Point1);
Wait(100);
GetMePos(Point2);
Result := Distance(Point1.x, Point1.y, Point2.x, Point2.y); // Fill in formula here :P
end;

BobboHobbo

2009-05-31 12:42:24

That games so hard, cant get past 2300 points. I reakon making a script for it is to hard aswell

Rambozin

2009-05-31 14:36:36

Hmm I've never learnt how to work with TPoints, I should check a tutorial about it ^^

Well it are exams now, so I won't be able to put much time into it, we will see how it comes out.

Thanks for all the comments guys, at least I can try something now! :D

PS: My highscore is 3975 now .

Gu3st...

2009-05-31 14:42:24

wow, almost 4000? The most I've ever gotten is 2460 :P

EDIT:
function GetMePos(var P : TPoint): Boolean;
var
TPA : TPointArray;
begin
if not FindColorsTolerance(TPA, 8870912, 64, 0, 575, 445, 0) then
begin
Result := False;
WriteLn(' Could not find self.');
Exit;
end;
P := MiddleTPA(TPA);
Result := True;
end;

function GetSpeed : Integer;
var
Point1, Point2 : TPoint;
begin
if not GetMePos(Point1) then
Exit;
Wait(50);
if not GetMePos(Point2) then
Exit;
Result := Distance(Point1.x, Point1.y, Point2.x, Point2.y); // Fill in formula here :P
end;

var
Me : TPoint;

begin
while True do
begin
if GetMePos(Me) then
MoveMouse(Me.X, Me.Y);
end;
end.
This is working :)

Da 0wner

2009-05-31 15:01:14

I will now try again. I sux0r. I only got 1.2k. But I only tried once XD.

Edit: 2408 woot.

Gu3st...

2009-05-31 16:16:11

From: Da 0wner
I will now try again. I sux0r. I only got 1.2k. But I only tried once XD.

Edit: 2408 woot.

My record is 2495, 5 more and I would have gotten a new achievement :(

noidea

2009-05-31 19:06:26

I got 1k :<

Rambozin

2009-05-31 23:09:35

Most of the times I can get a little above 3k lol. It isn't that hard if you play it a few times ^^ Just try not to fall before you see a platform that you are sure you can jump on (and that is not too high)

lordsaturn

2009-06-01 08:06:04

Good luck with this is all I'm going to say..