Usage:

gosub label

Example:

gosub medalfarm

Allows you to jump to a subroutine, perform the actions there, and then return to continue to the next scripted line.

In the following example, the bot will read line 1, jump to label medalfarm, perform the attack there, return to the original place and read line 2, jump to label trainarch, queue up the archers, return to the original place and read line 3, jump to label upgradecot, upgrade the cottage twice, return to the original place and read line 4, sleep 30 seconds, and then loop back to line 1 where it will begin the process again with label medalfarm.

Do not forget to add the Return at the end of each subroutine to avoid errors.



ScriptControlStructures

Gosub (last edited 2012-10-24 20:31:07 by Romulus)