All pastes #133053 Raw Edit

eracc

public text v1 · immutable
#133053 ·published 2006-08-15 16:41 UTC
rendered paste body
#!/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