yo i need to know how to scan the inventory for a trout dtms AND count it until it finds 10 trouts plz


yo i need to know how to scan the inventory for a trout dtms AND count it until it finds 10 trouts plz
that what you want?SCAR Code:repeat
if FindDTM(stuff)then
trout:=trout+1
until trout:=10
SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
Programming Projects: NotePad | Tetris | Chess
SCAR Code:if (FindDTM(TroutDTM, x, y, MIX1, MIY1, MIX2, MIY2)) then



theres a function in SRL/SRL/Extended/xInventory.scar, pretty sure name isSCAR Code:CountItemDtm(blahblah);


dan got it ty
SCAR Code:repeat
if FindDTM(stuff)then
trout:=trout+1
until trout:=10
This wont work.. It could find the same DTM 10 times. Just do like The_Rs_Monkey said.


ooo ok thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)