01-24-2016, 12:43 AM
(This post was last modified: 01-24-2016, 12:51 AM by Renato Ribeiro.)
example:
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
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
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