View Full Version : PerfectNorth working for anybody?
Since my radial walking for my script is getting screwed up because MakeCompass('N') doesn't get it percise enough for the script to get to the tree for my script. I tried using PerfectNorth; and that doesn't move the compass at all. Does this work for anybody else? or is it just me..
Pentti
04-06-2007, 04:45 PM
Its actually same if you use MakeCompass('N') or PerfectNorth;
Perfect north just does tree times MakeCompass('N');
To get a more consistent north angle, (because sometimes it can be off by a noticeable amount each time it rotates..) Should I call for MakeCompass('N'); 3 times in my script? would that give me more consistently the same northish angle?
nielsie95
04-06-2007, 05:57 PM
If you call MakeCompass('N') 3 times, you can better use PerfectNorth as that does exactly the same :p. And yes, I think that PerfectNorth works better than one time MakeCompass. :)
Secet
04-06-2007, 06:41 PM
I think PerfectNorth also uses HighestAngle;
nielsie95
04-06-2007, 06:49 PM
not sure:
{************************************************* ******************************
procedure PerfectNorth;
By:
Description: Sets the minimap to a perfect north position.
************************************************** *****************************}
procedure PerfectNorth;
begin
MakeCompass('N');
Wait(500 + Random(500));
MakeCompass('N');
Wait(500 + Random(500));
MakeCompass('N');
Wait(500 + Random(500));
SendArrowSilentWait(0, 1000 + Random(500)); //Makes this the HighestAngle?
ActivateClient;
end;
Jason2gs
04-06-2007, 06:50 PM
Try making the compass turn at a random angle first, then use PerfectNorth;.
Sometimes SCAR will return the compassing being north, when in fact it's a little bit off. If you make it turn in a random direction first, perfect north will do it's job. (Or so I would think.)
~alex~
04-06-2007, 08:10 PM
I had to remove perfect north from my script because it completly froze my entire kayboard, couldn't even type manually :|
Jason2gs
04-06-2007, 08:55 PM
PerfectNorth does seem to lag a tad.
~alex~
04-06-2007, 08:58 PM
It wasnt lagging, everything else was running fine, it just wasn't accepting any keyboard input, scar or otherwise.
Infantry001
04-06-2007, 09:24 PM
Well, MakeCompass (and perfectnorth as well) uses the actualy compass, instead of the angle of the minimap. Sometimes, the compass can be perfectly north, but the minimap is way off. So until we find a way to find the minimap angle, we can never get the exact same perfectnorth.
Well, MakeCompass (and perfectnorth as well) uses the actualy compass, instead of the angle of the minimap. Sometimes, the compass can be perfectly north, but the minimap is way off. So until we find a way to find the minimap angle, we can never get the exact same perfectnorth.
Oh, ok thanks. The problem was my script at a certain bank booth can see the tree I'm trying to get too on mini map, and at the other one, it can't :( So I can't have it click the tree using auto color this, So I may have to walk next to the water if I can get that to work. Thanks for all the help guys :)
Any-key
04-10-2007, 12:03 PM
Sorry... I'm a noob trying to make me first script lol... its not coming along too bad except it comes up with this when I try to use the MakeCompass('N'); thingo.
Line 54: [Error] (54:1): Unknown identifier 'MakeCompass' in script C:\Program Files\SCAR 2.03\Scripts\Uber Logz V.1.0.scar
This is my code so far up to the point where it has the error.
program Logz;
var
LoadsFinished: Integer;
x,y: Integer;
Trade: Integer;
Assistant: Integer;
ChoppedTree: Integer;
ChopDown: Integer;
Tree: Integer;
Logs: Integer;
Axe: Integer;
procedure LoadBmps;
begin
Trade := BitmapFromString(31, 1, 'z78DA33753135313177430206' +
'60600A1637254216971A08C0A5971271080000F23A2C32');
Assistant := BitmapFromString(13, 1, '6645232F1E106645' +
'233F3F293F3F293A3A273A3A273A3A27323221232317745F4 E845' +
'92F744E29');
ChoppedTree := BitmapFromString(17, 1, '906E42906E42A0601E' +
'80601488501A78500D5C400A583800543808543C0A5438085 8380' +
'058400D3D2F1C3D2F1C2D23142D2314');
ChopDown := BitmapFromString(49, 1, 'z78DA737343000324E086' +
'216EEA626A62624E6B715CA41BDDDD0961436401F95A4546' );
Tree := BitmapFromString(21, 4, 'z78DA4551C90DC3300C5B89BA6' +
'CE66924EDFE235547807E88C092782518B427B8A8BAB861CF 2669' +
'BE41D877B0A65653CAB3B021BDA39877A351737FD31FA5415 1282' +
'710B063C8E9029208830E277660C150FCA99BDF6E739B9CAF AE6A' +
'EDA8B607FFBF5B9E93CE717BE1C26A75FB963755496792F38 07E8' +
'A13A71CE1E40B75A71FC82A36DD93E84DD7B7D16D30392313 5EF0' +
'2B9121C3DF9CDAD3AB53DF8572D23FE51EC5C6551975957F3 993B' +
'A14CB5556B1C7CF68754B519CBE4A45310D4FC6F1307FC7E8 90CF' +
'603773B7E74F6A55D2E6ACECF8F7CF4A6BAF13C36C1683FA0 F2A5' +
'06861');
Logs := DTMFromString('78DA63AC636260E001622490EAABCBF01F4 83' +
'302F17F20606C00CA8BA2AA81C8C248205D04941721420D07 0135' +
'3D40793E026ADA81F2C204D4E401E5F989308711BF1A00C44 D0A6' +
'A');
Axe := DTMFromString('78DA639CCAC8C01002C448C0CF4699E13F9 00' +
'689FE0702C66E202B11550D44164602E936202B8B809A0E20 2B8E' +
'809A3E202B90809A19405610116AA2F0AB010080DA0C31');
end;
procedure Orientation;
begin
MakeCompass('N');
WriteIn('Now Facing North')
end;
Any Ideas? Open to criticism but just remember i'm only a noob...
Pentti
04-10-2007, 12:48 PM
Any-key, you need to use SRL include in your script {.include srl/srl.scar}
Any-key
04-10-2007, 11:26 PM
thanks mate, much appreciated. I should be releasing my first script within a week or so
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.