Hey guys,
I'm working on my Pc script and am stuck at a looping procedure. It knows when it is in the boat, on the island, and needs to cross the plank. It keeps trying to find the plank even when it is in the boat. Could someone post here or pm me and maybe we could teamview? Thanks a lot!
Le Jingle
2013-04-01 23:20:39
You could get [faster] help here, via posting the source code and pointing out the error/faulty code snippet.
Turpinator
2013-04-01 23:44:38
Im assuming youre looking for just an idea as to how to do it.
Could use sps_getmypos to check if youre in the boat. If the compass always the same direction, you could search one side of the minimap for a lack of water color to see if youre in the boat?
id use the second as sps_getmypos is slow (iirc), and when getting on the boat it may only move you a square or 2, so sps might not pick that up (though it should).
SeanStar
2013-04-02 01:44:35
From: Turpinator
Im assuming youre looking for just an idea as to how to do it.
Could use sps_getmypos to check if youre in the boat. If the compass always the same direction, you could search one side of the minimap for a lack of water color to see if youre in the boat?
id use the second as sps_getmypos is slow (iirc), and when getting on the boat it may only move you a square or 2, so sps might not pick that up (though it should).
To elaborate, I'd use CountColorTolerance to find the amount of water colored pixels on the minimap to make the judgement, or you could just use a DTM.
http://paste.villavu.com/show/4522/There is what I have. The values I have put for it to find if it is in the boat or island work, I tried them already by themselves. Yet all it does is try to click one time on plank no matter where it is, it doesn;t even wait for the up text
Hey, forgot to make it repeat in the main loop! Now it works perfect but won't writeln if its in boat or island. It knows that it is because it stops clicking for the plank. I think the way I wrote it is wrong.
Nevermind guys, figured it out! Was a late night and didn't check the capitalization!