Results 1 to 20 of 20

Thread: Objects in Reflection (PascalScript)

  1. #1
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default Objects in Reflection (PascalScript)

    Do they work? If so, how to use? I'm trying to interact with ground decorations, but they never work.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  2. #2
    Join Date
    Aug 2007
    Posts
    539
    Mentioned
    20 Post(s)
    Quoted
    266 Post(s)

    Default

    ground decorations arnt really interactable, they are only used for reference tiles i guess. usually the intractable objects are ObjGame and ObjBoundery for doors.

  3. #3
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    Do they work? If so, how to use? I'm trying to interact with ground decorations, but they never work.
    Well ground decorations aren't "interactable." They do not contain any options for them. If a object contains the "Examine" option then it is considered an "Interactable" object. There are some exceptions, but this holds true most of the time. In the lape include objGame = Interactable.

    E: Ninja'd..
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  4. #4
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Oh okay, thanks. So like a rock crab in its rock state would be considered as...?
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  5. #5
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    Oh okay, thanks. So like a rock crab in its rock state would be considered as...?
    still a npc i'm guessing because fishing spots and hunter traps are also NPCs

  6. #6
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Debugging objects through SMART gives rock crabs on their rock state an ID of 103 or 2993.

    Debugging NPCs, only crabs that are active are given an ID.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  7. #7
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    Debugging objects through SMART gives rock crabs on their rock state an ID of 103 or 2993.

    Debugging NPCs, only crabs that are active are given an ID.
    hmm either way you could attack the rock crab by interacting with the tile

  8. #8
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Robert View Post
    hmm either way you could attack the rock crab by interacting with the tile
    If the Crab is in its rock form, it could be on any random tile. They can turn into crabs and turn back into rocks and sit somewhere random. I just need to figure out how to detect those rocks.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  9. #9
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  10. #10
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    If the Crab is in its rock form, it could be on any random tile. They can turn into crabs and turn back into rocks and sit somewhere random. I just need to figure out how to detect those rocks.
    How do you 'wake' rock crabs up?

  11. #11
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Robert View Post
    How do you 'wake' rock crabs up?
    You would need to right click and walk over or next to the rock.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  12. #12
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    You would need to right click and walk over or next to the rock.
    Then you can get the tile that it is at and walk there, and then attack the closest crab.

  13. #13
    Join Date
    Jan 2014
    Posts
    55
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    A good technique for killing rock crabs would be to interact with the tile the unawoken ones are one(walk to it), then just let auto retaliate do the rest. Make sure you check that youre in combat though ^^

  14. #14
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Robert View Post
    Then you can get the tile that it is at and walk there, and then attack the closest crab.
    That's the problem I'm facing, getting the Rocks - finding the rocks. Color works but it's really iffy and unreliable because the Rock Crabs share the same exact colors as their surroundings(floor, other mini rocks in the area, hob goblins). Color works for about 2-3 hours until the colors change and the script starts to search every single thing.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  15. #15
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Reflection has no problem finding the Rock Crabs in their NPC form.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  16. #16
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    Reflection has no problem finding the Rock Crabs in their NPC form.
    I'm confused what your problem is? Via the debugger it doesn't seem like you have a problem finding them in rock form either?
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  17. #17
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by elfyyy View Post
    I'm confused what your problem is? Via the debugger it doesn't seem like you have a problem finding them in rock form either?
    Simba Code:
    procedure FindRockObject;
    var

    RockObject : TRSObject;
    begin
     if R_FindObjectDistance(RockObject, 2991 ,OBJ_FLOORDECORATION,  8) then
      begin
      writeln('Found RockObject');
      end else
      writeln('Nothing Found');

    end;

    Doesn't work. Tried everything.

    Like it doesn't find the object :/. Am I doing something wrong? lol
    Last edited by kingarabian; 01-15-2015 at 03:22 AM.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  18. #18
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    Doesn't work. Tried everything.

    Name: "Rocks".. Those are RockCrabs.

    Simba Code:
    var
      I: Integer;
      AllNpcs: TReflectNpcArray;
    begin
      InitAL;
      SetupReflection;
      ClearDebug;
      AllNPcs.GetAll;

      for I := 0 To High(AllNPCs) Do
      begin
        writeln(AllNPCs[I].Name, '   ', AllNPCs[I].ID, '    ', AllNPCs[I].ModelID, '     ', AllNPCs[I].Tile);
        writeln();
        writeln();
      end;
    end;

    Progress Report:
    Larry   828    361616692     {X = 2707, Y = 3734}
    
    
    Olaf Hradson   4488    361616684     {X = 2724, Y = 3729}
    
    
    Rock Crab   102    361616676     {X = 2700, Y = 3728}
    
    
    Rock Crab   100    361616668     {X = 2716, Y = 3721}
    
    
    Rock Crab   102    361616660     {X = 2711, Y = 3715}
    
    
    Rock Crab   100    361616652     {X = 2701, Y = 3720}
    
    
    Rocks   101    361616644     {X = 2704, Y = 3727}
    
    
    Rocks   103    361616636     {X = 2719, Y = 3719}
    
    
    Rocks   103    361616628     {X = 2712, Y = 3725}
    
    
    Rock Crab   102    361616620     {X = 2711, Y = 3715}
    
    
    Rocks   103    361620900     {X = 2719, Y = 3719}
    I am Ggzz..
    Hackintosher

  19. #19
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Name: "Rocks".. Those are RockCrabs.

    Simba Code:
    var
      I: Integer;
      AllNpcs: TReflectNpcArray;
    begin
      InitAL;
      SetupReflection;
      ClearDebug;
      AllNPcs.GetAll;

      for I := 0 To High(AllNPCs) Do
      begin
        writeln(AllNPCs[I].Name, '   ', AllNPCs[I].ID, '    ', AllNPCs[I].ModelID, '     ', AllNPCs[I].Tile);
        writeln();
        writeln();
      end;
    end;

    Progress Report:
    Larry   828    361616692     {X = 2707, Y = 3734}
    
    
    Olaf Hradson   4488    361616684     {X = 2724, Y = 3729}
    
    
    Rock Crab   102    361616676     {X = 2700, Y = 3728}
    
    
    Rock Crab   100    361616668     {X = 2716, Y = 3721}
    
    
    Rock Crab   102    361616660     {X = 2711, Y = 3715}
    
    
    Rock Crab   100    361616652     {X = 2701, Y = 3720}
    
    
    Rocks   101    361616644     {X = 2704, Y = 3727}
    
    
    Rocks   103    361616636     {X = 2719, Y = 3719}
    
    
    Rocks   103    361616628     {X = 2712, Y = 3725}
    
    
    Rock Crab   102    361616620     {X = 2711, Y = 3715}
    
    
    Rocks   103    361620900     {X = 2719, Y = 3719}
    Thanks Brandon. Let me test!
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  20. #20
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Thanks
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

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
  •