Laccon
08-21-2005, 10:17 AM
ok so i wanted to try and make a simple script with jamus's engine to see if i could do it, and apprently i can't. The script is suppose to take steel lockpicks and break them for me, but it is suppose to only break a certain number of them that i tell it to %1 so when it reaches the number that i put in %1 i want it to stop breaking them. heres the script, oh ya and the beggining of it is opiset the IF_1 goto echo (it goes to starting) same with IF_ and the IF_2 goes to echo instead of starting.
if_ goto echo
if_1 goto echo
if_2 goto starting
starting:
set counter 0
counter:
If_counter=%1 goto done
If_else goto breakpick
breakpick:
put get steel lock from my back
matchbool ok You remove
matchbool nolock Get what?
matchwait
ok:
put pick my %2 with my lock
matchbool broken * SNAP * Crud!
matchbool wait Roundtime:
matchwait
wait:
waitrt
goto ok
broken:
put my lock in my harn
goto addbrokenpick
addbrokenpick:
counter add 1
goto counter
nolock:
echo **no more steel lockpicks in backpack!!**
goto done
done:
echo **ALL DONE**
exit
echo:
echo USEAGE: .breakpicks (# of picks to break) (box in your hand)
exit
if_ goto echo
if_1 goto echo
if_2 goto starting
starting:
set counter 0
counter:
If_counter=%1 goto done
If_else goto breakpick
breakpick:
put get steel lock from my back
matchbool ok You remove
matchbool nolock Get what?
matchwait
ok:
put pick my %2 with my lock
matchbool broken * SNAP * Crud!
matchbool wait Roundtime:
matchwait
wait:
waitrt
goto ok
broken:
put my lock in my harn
goto addbrokenpick
addbrokenpick:
counter add 1
goto counter
nolock:
echo **no more steel lockpicks in backpack!!**
goto done
done:
echo **ALL DONE**
exit
echo:
echo USEAGE: .breakpicks (# of picks to break) (box in your hand)
exit