SRL Archive - Web Development

Adding rs game to site


zizi

2008-10-13 06:12:39

how do i add one of the rs worlds to a site, so it automaticly loads & i can log in. you know what i mean. i copied all the html code & tried runing it but it just has a lil x in the corner :mad:

Bobarkinator

2008-10-13 23:36:45

You have to embed the client applet with the right environment variables

osmm

2008-10-14 01:22:59

there is some really east way to do this, just forgot how. I used to save a file with like 10 lines of HTML to my desktop and it would load rs.

Naike

2008-10-14 10:56:37

Try this site called google…
Its really good when searching ;)!

www.google.com

A G E N T

2008-10-14 18:46:06

Iframes are one of the cheesier things to use in web development, but in this case, it's just what you need.

<iframe src="http://world114.runescape.com/p0" target="www.runescape.com" style="width:100%;height:100%;"></iframe>
-> Replace world114 with whatever world you want, for high detail, change p0 to p0,g1.

zizi

2008-10-15 05:53:38

ty agent :)

JaMe$

2009-01-05 19:00:32

How could I load Runescape using php? Anyone knows?

Pyro

2009-01-05 19:05:38

From: JaMe$
How could I load Runescape using php? Anyone knows?


Ahhh…. Just echo the above?

Shady?

2009-01-05 19:51:22

From: Pyro
Ahhh…. Just echo the above?


Yea, try
[php]echo '<iframe src="http://world114.runescape.com/p0" target="www.runescape.com" style="width:100%;height:100%;"></iframe>';[/php]

P1nky

2009-01-06 10:50:39

i did that to my invisionfree website, its easy do A G E N T 's code or Shady's

copy paste.

Ron

2009-01-14 01:52:11

Or you could do this with a get variable called world.

If saved as runescape.php just do runescape.php?world=114 or whatever
[PHP]
// get the world variable, if its not a number, set it to 114
$world = $_GET['world'];
if ( !is_numeric( $world ) )
$world = 114;
// print the frame out according to the $world variable
echo "<iframe src=\"http://world" . $world . ".runescape.com/p0\" target=\"runescape\" style=\"width: 100%;height: 100%;\"></iframe>";
[/PHP]

~Ron :)

TViYH

2009-01-16 11:01:41

Ron, you'd need to change that from p0 to m0 in the parameters.

Here's an example: http://workthemajic.site88.net/world.php?world=133

A G E N T

2009-01-17 12:28:21

[PHP]
$m = isset($_GET['members']);
// get the world variable, if its not a number, set it to 114
$world = $_GET['world'];
if ( !is_numeric( $world ) )
$world = 114;
// print the frame out according to the $world variable
echo "<iframe src=\"http://world" . $world . ".runescape.com/m".(int)$m."\" target=\"runescape\" style=\"width: 100%;height: 100%;\"></iframe>"; [/PHP]

page.php?world=114&members
page.php?world=114