|
Post by NeoRaven456 on May 24, 2005 20:41:53 GMT -5
I've been wanting to make a script that will cast protect on me while I sleep so I can get my Enhancing up, and I figured I'd write one myself once I learn how.
I read the Tutorial for AutoIt scripting and came up with this:
AutoItSetOption("SendKeyDelay", 30) AutoItSetOption("SendKeyDownDelay", 30)
Func CastProtect() Send("/ma "Protect" <me>") Send("{ENTER}") Sleep(10000) Send("/heal") Send("{ENTER}") Sleep(20000) EndFunc
$Protect=0 to 1000 Step 1 CastProtect() Next
Now I'm not sure how correct that is, but I'm pretty sure its far from it. Also When I tried to run it, it said "Unknown Command" for the first line, and also for the Sleep command.
I downloaded the latest version of AutoIt, can anyone give me a some advice or maybe another tutorial? I'm willing to learn
|
|
|
Post by Jubei on May 25, 2005 15:58:09 GMT -5
Download and use AutoTerror 0.21. AutoTerror is a modded version of AutoIt and has mostly the same functions. [ftp]http://www.lucidsoft.org/~toast/AutoTerror%200.21%20Alpha.zip[/ftp] I'd also checkout the Sticky from these Forums on FFACT function calls. tinyterror.proboards37.com/index.cgi?board=AutoTerror&action=display&thread=1108550855You probably want to start using the ingame macros sets instead of making your script type in the spells manually. I'd use AutoTerror and FFACT to do this as it provides more scope for these types of scripts. FFACT is a utility for FFXI scripters and provides almost realtime game info such as your Current MP, Max MP, Max HP, position coordinates(X,Y,Z) etc. AutoTerror is modded so it can retrieve this information from FFACT for use in determining current player and target player/mob status. You can download FFACT from www.ffact.botanybay.net/forums/index.php?showtopic=539&st=0entry3634I made a quick script to show you what can be done using FFACT and AutoTerror. This Script will cast Protect forever and go to the heal position once you run out of MP. It will heal to Max MP then resume casting Protect again. This will repeat till you stop the script. I don't usually make scripts for ppl but i wanted to make one for myself that performs this function anyway :] FFACTInit (); WinActivate("FFXiApp"); WinWaitActive("FFXiApp"); $Status=FFACTPlayerGetStatus(); $CurMP=FFACTPlayerGetCurrentMP(); $MaxMP=FFACTPlayerGetMaximumMP(); AutoItSetOption("SendKeyDelay", 40) AutoItSetOption("SendKeyDownDelay", 40)
While (1==1);//set's up infinite loop statement
While $Status = 0;//Status 0 indicates your standing and not engaged in combat.
Update()
CastProtect()
If $CurMP < 10 Then ;// Set this to the lowest amount of MP you can use to cast the spell. Send("{ESC}") Send("{ESC}") Send("^1");//Set Heal Macro "/heal" to CTRL+1 ingame. Sleep(2000) EndIf
Update()
WEnd
While $Status = 33;//Status 33 indicates your in healing position.
Update()
If $CurMP = $MaxMP Then Send("^1");//Set Heal Macro "/heal" to CTRL+1 ingame. Sleep(2000) EndIf
Update()
WEnd
Update()
WEnd
Func CastProtect() Send("^2");//set Protect Macro "/ma "Protect" <me>" to CTRL+2 ingame. Sleep(10000) EndFunc
Func Update() FFACTPlayerUpdate(); $Status=FFACTPlayerGetStatus(); $CurMP=FFACTPlayerGetCurrentMP(); $MaxMP=FFACTPlayerGetMaximumMP(); EndFunc;//Updates FFACT target info when called
|
|
|
Post by NeoRaven456 on May 25, 2005 19:03:04 GMT -5
Thank you very very much, It should take awhile for me to actually learn all this but thank you for the links, looking forward to learning.
Also is this illegal? People look down upon it, but is it really illegal?
[Update]
Just tested it out, and this was the sequence:
Cast Protect Rest Try to Cast protect while resting immediatly Stand up (Before 1 tick of MP regen) Cast Protect (repeat)
This went on until I ran out of MP and continued just replacing Cast Protect, with Not enough MP to cast protect. Possibly something wrong with the Detect MP, solved through resolution maybe? Not sure, I'll mess around with it, post if you have a solution.
|
|
|
Post by Jubei on May 25, 2005 19:39:32 GMT -5
I forgot to mention...install ACTOOLS. FFACT still relies on this program i think....or something to do with the way AutoTerror reads FFACT. I take it your a first time FFACT user so installing this should straighten it out. I tested this script using Cure tonight and i didn't have any problems with it ;] Click on this link to dld it : www.actool.net/files/actoolinstall_530.exeEDIT: It's against SE EULA to leave unattended bots on while your sleeping. If your caught away from your computer whilst this script is running then you may get a suspension or possibly a lifetime ban....i'd recommend running it with one eye on the screen and the other on the TV or read a book or something :]
|
|
|
Post by NeoRaven456 on May 26, 2005 13:57:29 GMT -5
Would it be possible to write a script that detects tells from:
GM******
Don't All the GM names start with that? go /anon and Friend List invisible, unequip linkshell and find a remote area to decrease all possible people knowing you on, and use a FFACT function to reply to a /tell with:
Yes I am here, but I have to go now.
and if that happens, maybe an If Then statement could be written? If /tell received, Then Logout(), or something along those lines?
|
|
|
Post by TinyTerror on May 26, 2005 14:46:56 GMT -5
Im going to add Chat functions to the next version of autoterror, so yes, you will be able to do this.
|
|
|
Post by mdhakk on May 26, 2005 23:39:31 GMT -5
I used jubei's script and I got the same result that neo got. Neo if you fixed the problem could you tell me how?
EDIT: I figured it out, just had to put all the files in the same folder.
Fow now Im just using a modified version of jupei's script, but Im going to see if its possible to write a script that allows me to do this right near mh and possibly find a way to have my guy run in and out of mh to speed things up.
|
|
|
Post by castonelll on Jun 5, 2005 13:45:01 GMT -5
I’m just downloading the program now from the www.actool.net/files/actoolinstall_530.exe {Hyperlink} Its interesting reading about this, and I will try to grasp the concepts myself rather than asking for help constantly. I’ve read probably 50%+ of all the posts, I have also noticed TinyTerror doesn’t like “leeches” :"> that’s definitely not my intension….
|
|
Dirp
New Member
Posts: 2
|
Post by Dirp on Jun 6, 2005 8:57:24 GMT -5
Something else to consider as well,I wrote a autoit script to do the same thing you guys wanted.It can be used to raise any type of magic(enhancing,healing,etc) and it will also change jobs(via nomad moogle)to replenish your mana quickly. While it does not use ffact,about the only thing that would really need it here,is the target support so you can target the moogle specifically.But even this is remedied just by your positioning and camera view.However,since the new version of ffact is out,I will look into this as well. tinyterror.proboards37.com/index.cgi?board=AUTOIT&action=display&thread=1117708515p.s. Yes these are illegal in SE eye's,and not just frowned upon.As Jubei advised,it is best to actually be there when the script is running so you can react to any tells you may encounter.Otherwise you might face suspension,or even possible banning.I also advise you bind a keystroke in windower so you can minimize the game with one key.This will allow you to quickly minimize the game,pause your script,and then go back into the game very quickly,should the occassion arise.This is only for pure autoit scripts,whereas autoit wont recieve any keyboard input while the game is in focus.
|
|
|
Post by TinyTerror on Jun 7, 2005 11:32:15 GMT -5
If you are sitting there with the script running, it is technically legal. Even if a GM decides to mess with you for running a skillup script, if you are sitting there able to respond, what are they going to do? Attended botting has always been the recomended method of operation for this forum. Its the best way to do things, and the fairest way to treat others.
|
|