Skip to content
View in the app

A better way to browse. Learn more.

Tip.It Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

GE Lookup Script

Featured Replies

Does anyone have some code (or if somone else has done it, a link) to simply lookup the market price of an item on the Grand exchange in the following format:

 

 

 

www.blah.com/ge.php?id=100

 

 

 

and it just returns the figure.

 

 

 

Cheers.

 

 

 

Do not want anything fancy.

612d9da508.png

Mercifull.png

Mercifull <3 Suzi

"We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12

  • Author

<?php



$id = $_GET['obj'];



$url = "http://itemdb-rs.runescape.com/viewitem.ws?obj=".$id;



function rs_getprices($url) {

$price = array();



$fh = fopen($url, "rb");

while (!feof($fh)) {

$line = fgets($fh);

if(!$min)

sscanf($line, "Minimum price: %s", $min);

else if(!$mar)

sscanf($line, "Market price: %s", $mar);

else if(!$max)

sscanf($line, "Maximum price: %s", $max);

else break;

}

fclose($fh);

$price['minimum'] = $min;

$price['market'] = $mar;

$price['maximum'] = $max;

return $price;

}

$item = rs_getprices($url);



?>



<?php



echo $item['market'];



?>

 

 

 

that works but its not sanitised and anyone can put obj=blahblah.com at the end instead of only allowing numbers.

 

 

 

Could someone here help me make it so it will only accept numbers and display error messages accordingly etc.?

612d9da508.png

Mercifull.png

Mercifull <3 Suzi

"We don't want players to be able to buy their way to success in RuneScape. If we let players start doing this, it devalues RuneScape for others. We feel your status in real-life shouldn't affect your ability to be successful in RuneScape" Jagex 01/04/01 - 02/03/12

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.