Jump to content

Welcome to NulledBlog
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. If you already have an account, login here - otherwise create an account for free today!
Photo

Steambot (Can't get item price)


  • Please log in to reply
5 replies to this topic

#1
rfalkner

  • Offline
  • Lurker

  • Posts:
    6
    Reputation:
    0
    Joined:
    12 Apr, 2016

Hello

 

Steambot says "Can't get item price" when user sending tradeoffer. 

 

I have testet MYSQL connection and it works fine. 

 

Anyone knows how to fix this issue?

 

Skype: vikaren2

Email: [email protected]

 

Thanks in advance!


  • 0

#2
xChr11s

  • Offline
  • Veteran

  • Posts:
    423
    Reputation:
    66
    Joined:
    17 Oct, 2015

check ur cost.php ?

Which Leak using ?


  • 0

#3
rfalkner

  • Offline
  • Lurker

  • Posts:
    6
    Reputation:
    0
    Joined:
    12 Apr, 2016

I have tried many different things in my cost.php.

 

This is the current. 

 

<?php
$original_item = $_GET['item'];
$item = str_replace("\"", "", $original_item);
$item = str_replace("\'", "", $item);
$item = str_replace("\\", "", $item);
$backpack_item = str_replace(" ", "+", $item);
$steam_item = str_replace(" ", "%20", $item);
$html_file = file_get_contents("

Please Login or Register to see this Hidden Content

$texttosearch = "<div class='media-body'>\n \t\t\t\t\t<h5 class='media-heading'>$original_item</h5>\n\t\t\t\t\t\tLounge: ";
$csgobackpack_pos = strpos($html_file, $texttosearch);
if($csgobackpack_pos != false) {
$html_money_to_end = substr($html_file, $csgobackpack_pos + strlen($texttosearch));
$lowest_price = substr($html_money_to_end, 0,strpos($html_money_to_end, " "));
}
else {
$link = "

Please Login or Register to see this Hidden Content

$string = file_get_contents($link);
$obj = json_decode($string);
if($obj->{'success'} == "0") die("0");
$lowest_price = $obj->{'lowest_price'};
$lowest_price[strlen($lowest_price)] = 0;
$lowest_price = str_replace("$","",$lowest_price);
$lowest_price = (float)($lowest_price);
}
@include_once ("set.php");
$rs = mysql_query("SELECT * FROM items WHERE name='$item'");
if(mysql_num_rows($rs) > 0) {
 $row = mysql_fetch_array($rs);
 if(time()-$row["lastupdate"] < 3600) die($row["cost"]);
}
mysql_query("DELETE FROM items WHERE name='$item'");
mysql_query("INSERT INTO items (`name`,`cost`,`lastupdate`) VALUES ('$item','$lowest_price','".time()."')");
echo $lowest_price;
?>
 
 
 
Im using this leak: 

Please Login or Register to see this Hidden Content


  • 0

#4
MiszelAgain

  • Offline
  • Lurker

  • Pip
  • Posts:
    9
    Reputation:
    0
    Joined:
    13 Apr, 2016

Lets find another on google and test it :P


  • 0

#5
rfalkner

  • Offline
  • Lurker

  • Posts:
    6
    Reputation:
    0
    Joined:
    12 Apr, 2016

Still having this issue

 

Tried to change cost to: 

 

<?php
$item = $_GET['item'];
$item = str_replace("\"", "", $item);
$item = str_replace("\'", "", $item);
$item = str_replace(" ", "%20", $item);
$item = str_replace("\\", "", $item);
 
$link = "

Please Login or Register to see this Hidden Content

$string = file_get_contents($link);
$json = $string;
 
$obj = json_decode($json);
//print $obj->{"median_price"}; // 12345
//$obj = json_decode($string);
if($obj->{'success'} == "0") die("notfound"); 
$lowest_price = $obj->{'median_price'};
$lowest_price=str_replace("$", "", $lowest_price);
$lowest_price = (float)($lowest_price);
 
echo $lowest_price;
?>

Edited by rfalkner, 15 April 2016 - 01:22 PM.

  • 0

#6
chilledgame

  • Offline
  • Advanced Member

  • PipPipPipPip
  • Posts:
    112
    Reputation:
    -50
    Joined:
    17 Dec, 2015

 

Still having this issue

 

Tried to change cost to: 

 

<?php
$item = $_GET['item'];
$item = str_replace("\"", "", $item);
$item = str_replace("\'", "", $item);
$item = str_replace(" ", "%20", $item);
$item = str_replace("\\", "", $item);
 
$link = "

Please Login or Register to see this Hidden Content

$string = file_get_contents($link);
$json = $string;
 
$obj = json_decode($json);
//print $obj->{"median_price"}; // 12345
//$obj = json_decode($string);
if($obj->{'success'} == "0") die("notfound"); 
$lowest_price = $obj->{'median_price'};
$lowest_price=str_replace("$", "", $lowest_price);
$lowest_price = (float)($lowest_price);
 
echo $lowest_price;
?>

 

this is is long-shot but try this one as its one i used to use fine

Please Login or Register to see this Hidden Content


  • 0

New site now up and running  HTTP://OPCSBETS.COM Minimum deposit $0.05 , coinflip  and roulette  coming soon



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users