Results 1 to 6 of 6

Thread: Reflection Function Help

  1. #1
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Reflection Function Help

    Hey guys, well I posted this in Reflection Help, but I got Zero help there so I thought I'd post it here, this is REALLY pissing me off, and I want to find out how to do it. I know pretty much all of the other Non-Reflection ways of doing it, I just want to know why this isn't WORKING?!?!

    Im making a GE High Alcher with Reflection and I wanted to know how to use the
    SCAR Code:
    IsItemEquippedAt
    function.

    I want it to check if the player has a Staff of fire equipped without actually changing to the tab.

    So far I have this, which SHOULD WORK (if im not mistaken).

    SCAR Code:
    If Not IsItemEquippedAt(3, 1387) Then
    Begin
       Blah Blah...

    Now the 3 is supposedly the weapon slot which the Staff of fire would go if it was equipped (which it was equipped at the time of the test). And the 1387 is the Staff of fire's ID.

    So I was wondering why it doesn't work?

    Have I got it wrong or...?
    Someone please help lol.

    Thanks.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    I have a feeling your ID is off (though I don't know why). Try using GetIDEquippedAt(3) to figure out the correct one.
    :-)

  3. #3
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Method View Post
    I have a feeling your ID is off (though I don't know why). Try using GetIDEquippedAt(3) to figure out the correct one.
    Ok Thanks Method, I'll try that..
    Also I used RSBot to get the Inventory ID and its the same on the RuneScape website Grand Exchange thingo lol.

    But Ill see what happens and Ill post back.

    Thanks again.
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    RSBot and our reflection often return IDs that are off by 1 (higher or lower, I'm not sure), but I don't know why. Make sure you use our reflection for figuring this one out, not RSBot.
    :-)

  5. #5
    Join Date
    Feb 2007
    Location
    @ SRL
    Posts
    402
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yay, I think I got it lol, I had to wash my dishes so I just only got to test it.

    And YOU WERE RIGHT! Wo00t!
    Thanks ALOT! You have no clue how much this was annoying me.

    I ran this:
    SCAR Code:
    Procedure GetEquippedIDs;
    Var
      i: Integer;
    Begin
      For i := 0 To 14 Do
        WriteLn(IntToStr(i) + ': ' + IntToStr(GetIDEquippedAt(i)));
    End;

    And got this back in the debugbox
    SCAR Code:
    0: 0
    1: 0
    2: 0
    3: 1388
    4: 0
    5: 0
    6: 0
    7: 0
    8: 0
    9: 0
    10: 0
    11: 0
    12: 0
    13: 0
    14: 0

    On RSBot it is 1387, and Reflection it is 1388.
    Thanks so much for the help man!! +Rep
    The game has an unexplainable attraction that convinces the player they are having fun, despite the fact that all they are doing is performing repetitive tasks to increase their statistics. "The game is actually a graphical nightmare and its gameplay is simple at best. Yet something, perhaps by subliminal means, forces the player - against his will - to play the game, and to believe that they are having fun".

  6. #6
    Join Date
    Mar 2007
    Posts
    1,700
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    Quote Originally Posted by turbobk View Post
    On RSBot it is 1387, and Reflection it is 1388.
    Yeah, box is like that too. SMART is 3033 and RSBot is 3032.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. reflection and non reflection scripts?
    By randy marsh in forum SRL Site Discussion
    Replies: 8
    Last Post: 01-08-2009, 04:05 PM
  2. Replies: 2
    Last Post: 02-26-2008, 08:26 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
  •