Imagine Nation Forums
[Injection] Collecting cotton and flax - Printable Version

+- Imagine Nation Forums (https://in-uo.net/forums)
+-- Forum: Imagine Nation: Xtreme archive (https://in-uo.net/forums/forumdisplay.php?fid=5)
+--- Forum: Player Guides (https://in-uo.net/forums/forumdisplay.php?fid=20)
+--- Thread: [Injection] Collecting cotton and flax (/showthread.php?tid=4171)



[Injection] Collecting cotton and flax - imported_Promoe - 03-22-2010

Didn't see such script for injection, so decided to post mine:

Code:
sub cotton()
   DIM cf[10]
   cf[0] = '0x0C51'      # FarmableCotton1
   cf[1] = '0x0C52'      # FarmableCotton2
   cf[2] = '0x0C53'      # FarmableCotton3
   cf[3] = '0x0C54'      # FarmableCotton4
   cf[4] = '0x1A99'      # FarmableFlax1
   cf[5] = '0X1A9B'      # FarmableFlax2
   cf[6] = '0X1A9A'      # FarmableFlax3
   cf[7] = '0x0DF9'      # Cotton1
   cf[8] = '0x1A9D'      # Flax1
   cf[9] = '0x1A9C'      # Flax2
   VAR i
while true
   For i = 0 To 6
     If Uo.Countground(cf[i]) >= 1 then
        UO.Usefromground(cf[i])
     Endif
   Next
wait(30)
   For i = 7 To 9
     UO.FindType(cf[i], -1,'ground')
      If UO.FindCount() then
        UO.MoveItem('finditem')
      Endif
   Next
wend
endsub

So well, just run it and walk around cotton or flax.