Thread Rating:
  • 2 Vote(s) - 1.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How does Macro command "Misc.LoadUrl(Url)" works? xD
#5
example:
Code:
HP:=Self.Health()
Misc.LoadUrl(http://yoursite.com/yourscript.php?hp=!HP!)

If your health is 400 it will load http://yoursite.com/yourscript.php?hp=400
So, will run the script of "yourscript.php" with querystring attribute "hp=400"

Let's assume yourscript.php has this code, it will save your current hp on database
Code:
$conn = new MyDatabaseConnection('localhost', 'user', 'pass');
$hp = $_GET['hp'];
$conn->write('hp', $hp);

You can write some php code to save your info in db, and execute every 10 seconds, for example, with auto macro, it will keep your info updated on db
BBot Brasil no Facebook:
https://www.facebook.com/groups/bbotbr
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)