Results 1 to 7 of 7

Thread: Nooby question

  1. #1
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default Nooby question

    how can I do something like this?

    Simba Code:
    const
    Banker = 'BANK_NPC_BLUE';

    If Bankscreen.Open(Banker) Then // banker needs to be the const

  2. #2
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by lanadekat View Post
    how can I do something like this?

    Simba Code:
    const
    Banker = 'BANK_NPC_BLUE';

    If Bankscreen.Open(Banker) Then // banker needs to be the const
    Just make sure the const isn't a string

    Simba Code:
    const
    Banker = BANK_NPC_BLUE;

    If Bankscreen.Open(Banker) Then // banker needs to be the const

  3. #3
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Just make sure the const isn't a string

    Simba Code:
    const
    Banker = BANK_NPC_BLUE;

    If Bankscreen.Open(Banker) Then // banker needs to be the const
    oh thanks!
    coding/scripting while being sick isn't a great idea ( I can't think ) but yea there aren't any other moments I got time to script

  4. #4
    Join Date
    Nov 2014
    Posts
    104
    Mentioned
    12 Post(s)
    Quoted
    59 Post(s)

    Default

    Don't forget, you can also do this.

    Simba Code:
    if bankscreen.open(BANK_NPC_BLUE) then

  5. #5
    Join Date
    Jul 2014
    Posts
    204
    Mentioned
    4 Post(s)
    Quoted
    125 Post(s)

    Default

    Quote Originally Posted by akarigar View Post
    Don't forget, you can also do this.

    Simba Code:
    if bankscreen.open(BANK_NPC_BLUE) then
    I know, but then I need to search for that line when I'm trying to run the script at a different bank.
    Now I can just change the const to make it compatible with other banks
    but thanks!

  6. #6
    Join Date
    Mar 2014
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    53 Post(s)

    Default

    I dont mean to hijack this but i feel this as a nooby question, in some scripts where we search for a mouse over text we search for 'vergreen' or 'hop down' why do we always omit the first character

  7. #7
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by victordono View Post
    I dont mean to hijack this but i feel this as a nooby question, in some scripts where we search for a mouse over text we search for 'vergreen' or 'hop down' why do we always omit the first character
    As I understand it, the text recognition doesn't do well when characters merge together, and this happens sometimes with uppercase characters.

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
  •