Results 1 to 9 of 9

Thread: this function i made for munk killer

  1. #1
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default this function i made for munk killer

    i would just like a little feedback on this function it counts how many monks are on the mini map.

    SCAR Code:
    function Monks: integer;
    var i: integer;
    var e: extended;
    var box : Tbox;
    begin
      dtms;
      for i:= 0 to 3 do
      begin
        if finddtmrotated(dtm[i],x,y,mmx1,mmy1,mmx2,mmy2,0,360,1,e) then
        begin
          writeln('Found DTM['+inttostr(i)+'] at '+floattostr(e)+' degrees');
          break;
        end else;
        begin
          writeln('Didn''t find DTM['+inttostr(i)+']');
          if i=3 then
          begin
            writeln('Didn''t find any DTM''s');
            //nextplayer(false);
            exit;
          end;
        end;
      end;
      box.x1:=x-25;
      box.y1:=y-25;
      box.x2:=x+25;
      box.y2:=y+25;
      Result:=countcolortolerance(1310462,box.x1,box.y1,box.x2,box.y2,5);
      for i:= 0 to 3 do
      freedtm(dtm[i]);
    end;

  2. #2
    Join Date
    Aug 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What is your TBox for and what if there are more then 3 monks?

    Why don't you just modify CountItemDTM?

  3. #3
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    The Element sounds just like MOB to me
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  4. #4
    Join Date
    Aug 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm sorry,
    What is a MOB? I'm still learning to script in pascal but I know quite a bit of delphi. However, I have never heard of a mob. Is that like a DTM?

  5. #5
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    MOB stands for Mage Of Begu. He was an excellent scripter but he put something in his script that stole people's passwords. He was banned and kept coming back.

    I'm just getting weird ideas because it seems like you know quite alot about scripting...and you're new here.
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  6. #6
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    it doesnt detect monks it detects one of 4 areas in which the monks are around.

  7. #7
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    This seems pretty good. Have you tested it?
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  8. #8
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    nah i simplified by like 200x now i just search for all yellow dots insted of the ones near the dtms and divide by 3 because each yellow dot has 3 of the color.

  9. #9
    Join Date
    Aug 2007
    Posts
    104
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Santa, I know Delphi and ActionScript so learning this is pretty simple.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. I made a function :D
    By Jason2gs in forum News and General
    Replies: 5
    Last Post: 03-10-2007, 08:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •