Post by ifandbut on Nov 25, 2005 1:36:39 GMT -5
EDIT: Fond a different/better way of doing the same thing. See my post in the scripts section for the finished script.
Hi everyone. I just started scripting in general but I'v had a decent ammount of programing experience in everything from Basic to C so I kinda know what I am doing.
I wanted to make my own Summon Magic skill bot (yes I know it's been done before but I wanted something to do) and I was able to creat the summon and release part just fine but when I get to the resting to get MP back I ran into a proublem. I'll post my code now.
Ok, so I summon avatars till I cant summon any more (there maybe better ways of doing this but I'll fix that latter) then I should input the command /heal to FFXI and heal. The script then checks my current MP and sees if it's equal to my max MP every 5 seconds, if it is then I input the command /heal to FFXI to make my character stand up again and continue to summon.
Proublem is when I come to my mp check loop all my character does is kneel then stand up again. Is there a proublem where I put my calls to the /heal or a proublem with my mp checking loop?
Thanks for any help,
Ifandbut
Hi everyone. I just started scripting in general but I'v had a decent ammount of programing experience in everything from Basic to C so I kinda know what I am doing.
I wanted to make my own Summon Magic skill bot (yes I know it's been done before but I wanted something to do) and I was able to creat the summon and release part just fine but when I get to the resting to get MP back I ran into a proublem. I'll post my code now.
summon1 = "/ma Carbuncle <me>"
summon2 = "/ma Leviathan <me>"
summon3 = "/ma Ramuh <me>"
release = "/pet Release <me>"
heal = "/heal"
current_mp = FFXI.player_GetCurrentMP()
max_mp = FFXI.player_GetMaxMP()
while true do
while current_mp > 7 do --Summons 3 avatars
Control.control_SendString(summon1)
Windower.script_Sleep(9000)
Control.control_SendString(release)
current_mp = FFXI.player_GetCurrentMP()
Windower.script_Sleep(1000)
Control.control_SendString(summon2)
Windower.script_Sleep(9000)
Control.control_SendString(release)
current_mp = FFXI.player_GetCurrentMP()
Windower.script_Sleep(1000)
Control.control_SendString(summon3)
Windower.script_Sleep(9000)
Control.control_SendString(release)
current_mp = FFXI.player_GetCurrentMP()
Windower.script_Sleep(4000)
end
--PROUBLEM START
Control.control_SendString(heal)
while current_mp > max_mp do --Should rest till full MP
Windower.script_Sleep(5000)
current_mp = FFXI.player_GetCurrentMP()
end
Control.control_SendString(heal)
end
Ok, so I summon avatars till I cant summon any more (there maybe better ways of doing this but I'll fix that latter) then I should input the command /heal to FFXI and heal. The script then checks my current MP and sees if it's equal to my max MP every 5 seconds, if it is then I input the command /heal to FFXI to make my character stand up again and continue to summon.
Proublem is when I come to my mp check loop all my character does is kneel then stand up again. Is there a proublem where I put my calls to the /heal or a proublem with my mp checking loop?
Thanks for any help,
Ifandbut