Results 1 to 4 of 4

Thread: DidClick and IsUnderAttack

  1. #1
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default DidClick and IsUnderAttack

    I am having trouble utilizing these functions. For "DidClick" I am unsure when I am supposed to use this method. What I would like to know is if I have successfully attacked my NPC. I am attempting to use it like this:

    Code:
    while not Reflect.Mouse.DidClick(True, 3000) do
          begin
            Reflect.Mouse.Move(chicken.GetMSPoint, 2, 2);
            Reflect.Mouse.Click(MOUSE_LEFT);
          end;
    I am also trying to utilize the "IsUnderAttack" method. However, this simply is not giving the desired results for telling me if I am in combat.

    Code:
    while not MyPlayer.IsUnderAttack do
          begin
            Reflect.Mouse.Move(chicken.GetMSPoint, 2, 2);
            Reflect.Mouse.Click(MOUSE_LEFT);
            Wait(RandomRange(1500, 3000));
          end;
    Could someone tell me the correct way to use these or if they are broken for some reason? Is there a better way for checking if an Actor is in combat?

  2. #2
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Just check if you are interacting, GetCombatCycle hook is broken
    Simba Code:
    while (MyPlayer.getInteractingIndex > 0) and (MyPlayer.IsLoggedIn)  do
      sleep(50)
    else
      {attack things}

  3. #3
    Join Date
    Sep 2010
    Posts
    305
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Yea just noticed other people were using GetInteractingIndex when I check some of the reflection fighting scripts. Thank you

    Will it be fixed some time, and is there anyway to determine if a hook is broken other than just not working?

    Also anyone know how to used DidClick properly? Might as well find out while I'm asking questions :P

  4. #4
    Join Date
    Jun 2013
    Location
    Scranton
    Posts
    496
    Mentioned
    5 Post(s)
    Quoted
    220 Post(s)

    Default

    Quote Originally Posted by blother View Post
    Yea just noticed other people were using GetInteractingIndex when I check some of the reflection fighting scripts. Thank you

    Will it be fixed some time, and is there anyway to determine if a hook is broken other than just not working?

    Also anyone know how to used DidClick properly? Might as well find out while I'm asking questions :P
    Well the path for these hooks are null

    Simba Code:
    Actor_SpokenText: THook =           ['NULL', 1];
    Actor_CombatCycle: THook =          ['NULL', 1];
    Actor_Health: THook =               ['NULL', 1];
    Actor_MaxHealth: THook =            ['NULL', 1];

    so i'm gonna go out on a limb and say they don't work, and are no longer maintained

    didClick doesn't seem to be working either, just tested

Thread Information

Users Browsing this Thread

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

Posting Permissions

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