Alright im making my very first scar script, this is what i want to make roughly:
Its gona be a firemaking lvler using DTMs
Now I made my DTMs for tinderbox and for logs and I want to do something like this:
1) Find the tinderbox DTM
2) Click it
3) Find the log DTM
4) Click it
thats just rough what i want it to do lol
So i started "TRYING" to script and stumbled on an error...
Its says File Access Error, and I dont know what to do about it :P
here comes the piece of script so far:
I hope someone can help me find the solutionCode:program BurningDesire; {.include SRL\SRL.scar} Var TinderDTM, x, y: Integer; Procedure FindTinder; begin TinderDTM := DTMFromString('78DA6314636060106140014B66CE00D38C503' + 'EA30090E06640038CA86A6481840C01358A408283801A5E20214B' + '400D3BA69B31D4A8000961FC6A004EF6030D'); begin if FindDTM(TinderDTM,x, y, 1, 1, 200, 200) then Mouse(x, y, 1, 1, True); WriteLn('Tinderbox found!'); Flag; end; FreeDTM(TinderDTM) end; begin SetupSrl; FindTinder; end.
Also it always writes me the message for some reason,
so i think the whole code is wrong? if anyone can help it would be apreciated!



Reply With Quote








