Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Injection Guide *Contest Thread*
#6

Eighty Swords Wrote:Good work smoke! I think I will finally be able to set up injection Big Grin

I was looking at some of the macros you gave and I think they're all to train skills and not actually use the skill ingame, is that right? Like the mana potion macro you gave is to continuously make mana potions and not actually use one, or the arms lore one is to keep using it to train the skill, is that right?


If it helps anyone understand what some of the other lines in the macro's mean, here's my explanation from a programmer's point of view. For example if we take the mana potion macro smoke gave;



The lines sub alchemist() and end sub are header for what is called a subroutine. In programming you have a main portion of your program and that can call subroutines. The reason you'd make a subroutine is so that instead of writing something in 3 different portions of your main program you just write a line something like go sub alchemist which will run the subroutine. Each of the macros smoke gave are a subroutine and that's why they all have these two lines.

The lines while true and wend are used to make an infinite loop (not good practice in programming but it works here). Whenever you make a loop in programming you need a starting point, an end point, and an exit condition. In this case smoke said while true, and he didn't assign a variable to this meaning it's always true and will never exit the loop.

I'm not at all familiar with injection so everything I'm saying is from a programming point of view. If smoke wanted, he could have changed the first line to while eyesofnewt>=4, and as long as he has 4 or more eyes of newt the macro would keep going. As soon as he has less then 4 it would stop (and you wouldn't need to manually terminate the macro).

I hope that helped people more then it may have confused you Smile I know the macros didn't make much sense to me until I thought of it in this way.

yeah the scripts are basically to train skills, but theres a section tab in injection to get the skill name and actually use it the command to use a skill is useskill 'Skill name'

so for example hiding would be useskill 'Hiding'

Also the the one line macros above contain a mana pot macro :p, but there not really considered scripts since there one line functions so you can add those to the macro section and add a hotkey you can do it in the script section but theres no point because it takes longer to make (not really much longer but for you new people to injection it would be hard) and it doesn't cast faster just because it's in a script Tongue


I hope this helped ^_^


Messages In This Thread
Injection Guide *Contest Thread* - by smoke - 06-24-2009, 06:01 PM
Injection Guide *Contest Thread* - by imported_Muto - 06-24-2009, 06:08 PM
Injection Guide *Contest Thread* - by smoke - 06-24-2009, 06:11 PM
Injection Guide *Contest Thread* - by Eighty Swords - 06-25-2009, 02:57 PM
Injection Guide *Contest Thread* - by imported_LudaKrishna - 06-25-2009, 03:15 PM
Injection Guide *Contest Thread* - by smoke - 06-25-2009, 03:29 PM
Injection Guide *Contest Thread* - by smoke - 02-05-2010, 04:00 PM
Injection Guide *Contest Thread* - by imported_Hiroshima - 02-10-2010, 08:59 PM
Injection Guide *Contest Thread* - by imported_Hiroshima - 02-10-2010, 09:01 PM
Injection Guide *Contest Thread* - by imported_Hiroshima - 02-10-2010, 09:14 PM
Injection Guide *Contest Thread* - by smoke - 02-10-2010, 10:52 PM
Injection Guide *Contest Thread* - by imported_p!nk dr@g0n - 02-12-2010, 03:24 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)