Morbid
Banned
here is the script so far, not sure if it is correct yet but i feel like I am close.
Now here is what I did for the receive url script, I'm just not sure what to do for it.
Code:
("update_player_health_values",
[(store_script_param, ":player_id", 1), # must be valid
(try_begin),
(player_is_active, ":player_id"),
(store_agent_hit_points, reg1),
(player_get_unique_id, ":player_unique_id", ":player_id"),
(assign, reg0, ":player_unique_id"),
(send_message_to_url, "@http://127.0.0.1/health.php?uid={reg0}&health={reg1}"),
(try_end),
]),
Now here is what I did for the receive url script, I'm just not sure what to do for it.
Code:
(try_begin), #health recall
(eq, ":string_count", 22),
(eq, ":integer_count", 23),
(assign, ":player_id", reg0),
(assign, ":unique_id", reg1),
(assign, ":health", reg2),
(try_begin),
(gt, ":health", 0),
(assign, ":health", 0),
(try_end),