setvar(%lastserver,32)
setvar(%idlecount,0)
@main:
gotoifcountininventoryequal(@logout,0,41)
setvarcurrentstat(%hp,3)
gotoifnum1belownum2(@eat,%hp,50)
wait(200)

@checknpc:
gotoifnpcnear(@shoot,664)
walknowait(689,655)
addvar(%idlecount,0)
;gotoifnum1abovenum2(@hop,%idlecount,30)
wait(1000)
goto(@main)

@shoot:
fightmode(1)
setvarfatigue(%f)
gotoifnum1abovenum2(@sleep,%f,99)
magenearestnpc(664,19)
setvar(%idlecount,0)
wait(500)
goto(@main)

@sleep:
wait(2000)
useitembyid(1263)
wait(2000)
waitforwakeup(28000)
gotoifsleeping(@sleep)
goto(@main)

@hop:
gotoifnum1equalnum2(@32,%lastserver,34)
gotoifnum1equalnum2(@34,%lastserver,32)
goto(@main)

@32:
setvar(%idlecount,0)
setvar(%lastserver,32)
switchserver(32)
goto(@main)

@34:
setvar(%idlecount,0)
setvar(%lastserver,34)
switchserver(34)
goto(@main)

@eat:
wait(500)
gotoiffighting(@eat)
gotoifcountininventoryequal(@logout,0,373)
useitembyid(373)
wait(2000)
goto(@main)

@logout:
stopandlogout()

