Student01 Posted December 15, 2007 Posted December 15, 2007 Hi , I am kinda beginner in autoit scripts, could someone tell me please how can i run next code : Resolution 1024x768 //FIRST OF ALL U NEED TO SET YOUR SWORD AND SHIELD //ON THE SAME SKILL BAR AS U HAVE YOUR SWORD SKILLS PLACED //THEN U NEED TO SET YOUR SPEAR ON THE SAME SKILL BAR //AS U HAVE YOUR SPEAR SKILLS PLACED //THEN... //IF U HAVE DONE ALL THOSE THINGS //U NEED TO FILL ALL CONSTANTS VALUES CORRECTLY //IF U ARE A GLAVIE USER AND U NEED THIS MACRO JUST FOR //CHANGING GLAVIE / SHIELD WHEN U ARE KNOCKED DOWN //U CAN CHANGE A 76TH LINE OF THE MACRO TO // "//keys $sword" INSTEAD OF "keys $sword" ////CONSTANTS//////// constants //write below a number of skillbar //where u have placed your sword and sheild ssbar=2 //write below a quickslot of your shield shield=7 //write below a quickslot of your sword sword=6 //write below a number of skillbar //where u have placed your spear spearbar=3 //write below a quickslot of your spear spear=7 //A speed of klicking heys to switch //shield / sword / spear depends on your CPU speed //here's another constant that u can change //if your macro finish klicking heys before //your item is worn //higher value = longer time of klicking speed=50 end ///////////////////// ////MAIN///////////// while 1=1 delay 100 call sword delay 100 call spear end ////OBJECTS////////// Object 1 255=2,2|255=2,6 255=4,2|255=4,6 255=8,4 255=10,2|255=10,4|255=10,6|255=10,8 End Object 2 255=2,2|255=2,6 255=4,2|255=4,6 255=10,2|255=10,8 255=12,4 End Object 3 255=2,2|255=2,6 255=4,2|255=4,6 255=10,2|255=10,6 255=12,4|255=12,8 End Object 4 255=2,2|255=2,6 255=4,2|255=4,6 255=8,8 255=10,4|255=10,8 255=12,8 End ////PROCEDURES/////// procedure sword isobject $ssbar at 766, 739 loop $speed isobject $ssbar at 766, 739 keys $shield delay 10 keys $sword delay 10 else break end end while 1=1 delay 100 call spear end end end procedure spear isobject $spearbar at 766, 739 loop $speed isobject $spearbar at 766, 739 keys $spear delay 10 else break end end while 1=1 delay 100 call sword end end end ///////////////////// Ty in advance
PsaltyDS Posted December 15, 2007 Posted December 15, 2007 Welcome to AutoIt. This forum is not about writing scripts for you. It's about helping you do it yourself. Crack open the help file that comes with AutoIt (AutoIt.chm) and scan over it. In the table of contents you'll find a few basic tutorials. Do them. When you find a useful function, run the example script in the help file to see how that function works. If you have questions, or get stuck, ask as specific a question as you can. You'll get plenty of help. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now