Post by dragondude on Dec 26, 2005 23:55:17 GMT -5
Well I'm tryin to make my first script... It's just a stupid enhancing magic thing but I can't get it to work... I tried to follow the same scripting method as the summoning one made by ifandbut but it is just not turning out... can you help me improve it? here it is:
Its my first one, tell me what you think and what i did wrong and how to improve, lol.
-------Enhancing Magic Skill Up Bot v1.0
-------By: Dragondude XIV
-------Script basis by: Kevin Schneider (aka Ifandbut)
Windower.console_write("Enhancing Magic Skill up Bot")
Windower.console_write("By:Dragondude XIV")
Windower.console_write("Dragondude14@hotmail.com")
Windower.console_write("Enjoy!!")
while true do
current_mp = FFXI.player_GetCurrentMP()
max_mp = FFXI.player_GetMaxMP()
status = FFXI.player_GetStatus()
if current_mp < 9 then --If I dont have enough MP then rest
if status ~= 33 then
Control.control_SendString("/heal on")
end
end
if current_mp == max_mp then --When I have full mp stop resting
Control.control_SendString("/heal off")
end
current_mp = FFXI.player_GetCurrentMP()
----Start of chain Enhancing magic block----
if current_mp >= 9 and statu ~= 33 then
Control.control_SendString("/ma Protect <me>")
end
current_mp = FFXI.player_GetCurrentMP()
if current_mp >= 20 then
Control.control_SendString("/ma Protect II <me>")
Windower.script_Sleep(3000)
end
current_mp = FFXI.player_GetCurrentMP()
if current_mp >= 17 then
Control.control_SendString("/ma Blink <me>")
Windower.script_Sleep(6000)
end
Windower.script_Sleep(4000) --make sure all the casting timers are reset and account for lag
end
Its my first one, tell me what you think and what i did wrong and how to improve, lol.