[start] Display(Welcome to TextScripting! developed and maintained by $author$) Display(This is a Java Script converted into Text Script!) setRect(%searchZone%,5:5:510:330) setRect(%healthZone%,200:125:100:50) setVar(#GREEN#,0:255:0) setVar(#NPC#,92:18:9) setVar(#NAME#,Chicken) [main] findXYspiral(%healthZone%,50,25,#GREEN#,0,0,0,#COMBAT#) gotoIfVarNull(#COMBAT#,[fight]) goto([wait]) [fight] findXYspiral(%searchZone%,260,405,#NPC#,5,5,5,#ANIMAL#) gotoIfVarNull(#ANIMAL#,[wait]) mouseMove(#ANIMAL#) randSleep(0:50) gotoIfTopTextEquals(#NAME#,[fight1]) goto([wait]) [fight1] doMathSpiral(#ANIMAL#,subtract,40,#A#,#B#) setRect(%now%,#A#:#B#:80:80) doMathRect(%now%,divide,2,#ANY1#,#ANY2#) findXYspiral(%now%,#ANY1#,#ANY2#,#GREEN#,0,0,0,#ROFL#) gotoIfVarNull(#ROFL#,[fight2]) goto([wait]) [fight2] clickLeft(#ANIMAL#) goto([omg]) [omg] randSleep(3500:4000) goto([wait]) [wait] sleep(250) goto([main])