I created this simple HP and Stamina macro to run alongside my bot.
It pots using memory and will switch stamina automatically.
Code:
begin
Variable.Set("StaminaSwitch", "0")
Variable.Set("HPPots", "17")
end
begin loop()
Memory.Get value("SomaWindow", "006d8600,254", "4", "Stamina")
Memory.Get value("SomaWindow", "006d8600,240", "4", "HP")
if Variable.Is equal to("StaminaSwitch", "0")
begin
if Variable.Is less than (Math)("Stamina", "15")
begin
Variable.Set("StaminaSwitch", "1")
Keyboard.Press key("{<lcontrolkey>}")
end
end
if Variable.Is equal to("StaminaSwitch", "1")
begin
if Variable.Is greater than (Math)("Stamina", "900")
begin
Variable.Set("StaminaSwitch", "0")
Keyboard.Press key("{<lcontrolkey>}")
end
end
if Variable.Is less than (Math)("HP", "400")
begin
Macro.Do nothing()
begin loop("{HPPots}")
Macro.Pause("300")
Keyboard.Press key("{<f4>}")
end
end
end
I created this simple HP and Stamina macro to run alongside my bot.
It pots using memory and will switch stamina automatically.
[code] begin
Variable.Set("StaminaSwitch", "0")
Variable.Set("HPPots", "17")
end
begin loop()
Memory.Get value("SomaWindow", "006d8600,254", "4", "Stamina")
Memory.Get value("SomaWindow", "006d8600,240", "4", "HP")
if Variable.Is equal to("StaminaSwitch", "0")
begin
if Variable.Is less than (Math)("Stamina", "15")
begin
Variable.Set("StaminaSwitch", "1")
Keyboard.Press key("{<lcontrolkey>}")
end
end
if Variable.Is equal to("StaminaSwitch", "1")
begin
if Variable.Is greater than (Math)("Stamina", "900")
begin
Variable.Set("StaminaSwitch", "0")
Keyboard.Press key("{<lcontrolkey>}")
end
end
if Variable.Is less than (Math)("HP", "400")
begin
Macro.Do nothing()
begin loop("{HPPots}")
Macro.Pause("300")
Keyboard.Press key("{<f4>}")
end
end
end
[/code]