eracc
public text v1 · immutable#!/bin/bash
#
# Crossfire bash script to get or drop all level 1 thru level 20 scrolls
# in a pile of scrolls.
if [ "$1" = "get" ]
then
COMND="get"
elif [ "$1" = "drop" ]
then
COMND="drop"
else
COMND="get"
fi
COUNT=1
while [ $COUNT -ne 21 ]
do
echo "issue 1 1 $COMND (lvl $COUNT)"
sleep 2
COUNT=$(( $COUNT + 1 ))
done
exit 0