still waiting on ur contribution boys :)
case "/record":
{
if (C.Recording)
{
C.Recording = false;
Chat(C, "Finished Recording", 2011);
}
else
{
C.Recording = true;
C.ActivePath = new Path();
C.ActivePath.MapID = C.Map;
C.ActivePath.Desc = "Custom";
C.ActivePath.ID = 0;
C.ActivePath.Points.Add(new Point(0, MakeCoord(C.X, C.Y)));
C.ActivePoint = null;
Chat(C, "Recording path! Jump to add points", 2011);
}
break;}
lol who u steal that code off then. can tell u aint written it else u would spot the list that is already in place. plus u dont want a dictionary, else u wouldnt know the order, well, lol not unless u set all the keys to ints, but lol, then surely u would just simply use an array/list.Quote:
So I need to make a dictionary where the bot will save temporary ( meaning till i close client or re-record the path ) all the jump-arriving possitions .. where the bot will return the character when no monster in area .
This is my /Record Path , how i asign a dictionary to it?Code:case "/record": { if (C.Recording) { C.Recording = false; Chat(C, "Finished Recording", 2011); } else { C.Recording = true; C.ActivePath = new Path(); C.ActivePath.MapID = C.Map; C.ActivePath.Desc = "Custom"; C.ActivePath.ID = 0; C.ActivePath.Points.Add(new Point(0, MakeCoord(C.X, C.Y))); C.ActivePoint = null; Chat(C, "Recording path! Jump to add points", 2011); } break;}
Only few words for you :Quote:
lol who u steal that code off then. can tell u aint written it else u would spot the list that is already in place. plus u dont want a dictionary, else u wouldnt know the order, well, lol not unless u set all the keys to ints, but lol, then surely u would just simply use an array/list.
interestingly that code looks like its been designed to record multiple paths tho, not just simply one . . .
It's actually based off how I originally had my paths (I did a dict<int, point> which was pointless and had a server list of paths that they could select from)Quote:
lol who u steal that code off then. can tell u aint written it else u would spot the list that is already in place. plus u dont want a dictionary, else u wouldnt know the order, well, lol not unless u set all the keys to ints, but lol, then surely u would just simply use an array/list.
interestingly that code looks like its been designed to record multiple paths tho, not just simply one . . .
look at me iam warlax [Only registered and activated users can see links. Click Here To Register...]Quote:
lol who u steal that code off then. can tell u aint written it else u would spot the list that is already in place. plus u dont want a dictionary, else u wouldnt know the order, well, lol not unless u set all the keys to ints, but lol, then surely u would just simply use an array/list.
interestingly that code looks like its been designed to record multiple paths tho, not just simply one . . .