forked from vmark99/FIFA-14-Autobuyer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
34 lines (25 loc) · 1011 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
Namespace FIFA14;
require_once 'vendor/autoload.php';
//require 'search.php';
require 'classes/core.php';
// Sample to search for Team Fitness cards
echo "Credits: ";
print_r($con["getCredits"]);
echo "<br><br>";
// Consumables($macr,$micr,$num,$cat,$start,$lev,$minb,$maxb)
$fitness = $s->Consumables(0,0,12,"fitness",0,"gold",0,900);
//You can get the item data's like this
FOREACH ($fitness['auctionInfo'] as $auction){
$resid = $auction['itemData']['resourceId'];
$b = $s->baseID($resid);
print_r($b); // This is the base ID calculated from resource ID
// An example
if($b == 5002006){ // Checks if the type of card is Team Fitness - Gold
$tradeid = $auction['tradeId']; // Trade ID
$price = $auction['buyNowPrice']; // BuyNowPrice
$bid = $s->Bid($tradeid,$bid); // Sends TradeID and Amount of coins to Bid
print_r($bid);
}
// You can make a for loop to seach through pages and buy the cards at 59th min
}