Code: Select all
| - ArrayTest.mac -
Sub Main
/for v1 0 to 9
/varset a(1,$v1) "Sample Quote #$v1"
/varset a(2,$v1) "Author$v1"
/next v1
/varset v2 $rand(10)
/echo $a(1,$v2) -$a(2,$v2)
/return
Also a couple of other questions for Plaz maybe.
Is there a limit on the size a script can be ?
Are we gonna get file access ?
I ask cause Inspired by arantius2's darmpad.mac script I am working on a generic zone farming script and loading the list of mobs, and loot to keep from a file would be kinda useful. so I could do /macro farmzone EK and it will load my EC file with lions and spiders as mobs and quality pelts as loot.
Fippy
