|
Help
Jan 1, 2006 3:33:33 GMT -5
Post by dragondude on Jan 1, 2006 3:33:33 GMT -5
It wont work... It says "`then" expected near `=""... What does that mean...
Windower.console_Write("Created by: Dragondude XIV") Windower.console_Write("Questions? Dragondude14@hotmail.com")
while true do
mp = FFXI.player_GetCurrentMP() max_mp = FFXI.player_GetMaxMP() status = FFXI.player_GetStatus()
if mp < 20 and status = 33 then Control.control_SendString("/heal on") end
if mp = max_mp and status = 0 then Control.control_SendString("/heal off")
if status = 33 then Control.control_SendString("/ma Protect <me>") Windower.script_Sleep(10000)
if status = 33 then Control.control_SendString("/ma \"Protect II\" <me>") Windower.script_Sleep(15000) end
|
|
|
Help
Jan 1, 2006 5:46:23 GMT -5
Post by limitedmoon on Jan 1, 2006 5:46:23 GMT -5
first, 33=resting and 0=standing.
Windower.console_Write("Created by: Dragondude XIV") Windower.console_Write("Questions? Dragondude14@hotmail.com")
while true do
mp = FFXI.player_GetCurrentMP() max_mp = FFXI.player_GetMaxMP() status = FFXI.player_GetStatus()
if mp < 20 and status == 0 then Control.control_SendString("/heal on") end
if mp == max_mp and status == 33 then Control.control_SendString("/heal off") end
if status == 0 then Control.control_SendString("/ma Protect <me>") Windower.script_Sleep(10000) end
if status == 0 then Control.control_SendString("/ma \"Protect II\" <me>") Windower.script_Sleep(15000) end end should work you needed to change the "=" to "==" and add "end" after your if statements. with the 33 and 0 mix up it would just keep doing /heal off wile you had full mp and standing.
|
|
|
Help
Jan 1, 2006 13:31:57 GMT -5
Post by dragondude on Jan 1, 2006 13:31:57 GMT -5
Ahh, ok, I'll give it a try, thanks.
|
|
|
Help
Jan 3, 2006 18:58:13 GMT -5
Post by dragondude on Jan 3, 2006 18:58:13 GMT -5
wait... i'm going about this wrong, may i ask why you need it to be "==" and "end end"?
|
|
nebula
Junior Member
fear.
Posts: 59
|
Help
Jan 5, 2006 1:31:49 GMT -5
Post by nebula on Jan 5, 2006 1:31:49 GMT -5
= sets it equal, == tests equality
for every if you need an end, for every while you need an end...so the last lines of the script would be end (to close the if) then end to close the while
|
|
|
Help
Jan 5, 2006 22:14:34 GMT -5
Post by dragondude on Jan 5, 2006 22:14:34 GMT -5
Oh! thanks neb!
|
|