FindObjCustom question :(

Discussion in 'Scar/Simba Help' started by Bartgielen, Dec 24, 2008.

Thread Status:
Not open for further replies.
FindObjCustom question :(
  1. Unread #1 - Dec 24, 2008 at 3:48 AM
  2. Bartgielen
    Joined:
    Mar 21, 2007
    Posts:
    24
    Referrals:
    0
    Sythe Gold:
    0

    Bartgielen Newcomer

    FindObjCustom question :(

    Code:
    if FindObjCustom(x, y, 'illow', [willowcolor1, willowcolor2, willowcolor3], 3) then
    willowcolor1-3 are integers ;)

    Code:
    Line 120: [Error] (16501:80): Type mismatch in script C:\Documents and Settings\Administrator\Bureaublad\BartsPowerWillowBackup.scar
    But this is the error i get :| how can i fix it?
     
  3. Unread #2 - Dec 24, 2008 at 9:44 AM
  4. HyperSecret
    Joined:
    Jun 5, 2007
    Posts:
    123
    Referrals:
    0
    Sythe Gold:
    0

    HyperSecret Active Member

    FindObjCustom question :(

    One of your parameters aren't correct. Something that is a string needs to be an integer or something like that.

    EDIT: In findObjCustom the String is also an array (TStringArray) just like the colors (TIntegerArray) so your string or text you are looking for also needs to be inside of brackets.

    if FindObjCustom(x, y, ['illow'], [willowcolor1, willowcolor2, willowcolor3], 3) then

    now you can add more to 'illow' inside of the brackets too, 'low','illo' etc...
     
  5. Unread #3 - Dec 24, 2008 at 11:01 AM
  6. Bartgielen
    Joined:
    Mar 21, 2007
    Posts:
    24
    Referrals:
    0
    Sythe Gold:
    0

    Bartgielen Newcomer

    FindObjCustom question :(

    I already found out, but thanks for helping me :D
     
  7. Unread #4 - Dec 24, 2008 at 2:10 PM
  8. Jethr0x
    Joined:
    Jan 24, 2007
    Posts:
    3,070
    Referrals:
    13
    Sythe Gold:
    0

    Jethr0x Grand Master
    Banned

    FindObjCustom question :(

    By the way:

    Code:
    ['ill', 'llo', 'ow']
    is better due to the fact that RuneScape's anti-macro system puts separate spaces in random parts of the word in the UpText. So by separating them, it is looking for parts of the UpText, instead of the entire word.
     
< Quick SCAR Question | Can SCAR be used for flash games? >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site