Results 1 to 5 of 5

Thread: Trigger procedure on game text

  1. #1
    Join Date
    Jan 2012
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Trigger procedure on game text

    I am new to scripting.

    What I am looking to do is add some urn support to a script. What I do not know how to do is trigger the action when I get the message "Your decorated cooking urn is full." How would I trigger the procedure to start when I get this message in game?

  2. #2
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    If it's a black colored message in the chat box then use FindBlackChatMessage('Your decorated cooking urn is full.');
    Current Project: Retired

  3. #3
    Join Date
    Jan 2012
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    It looks like this:


    So that would that not work?

  4. #4
    Join Date
    Jan 2012
    Location
    Calgary, AB, Canada
    Posts
    1,819
    Mentioned
    5 Post(s)
    Quoted
    120 Post(s)

    Default

    Quote Originally Posted by halgboy_tbc View Post
    It looks like this:


    So that would that not work?
    I would say give it a go and see if it works or if the uptext changes you could add a feature to check uptext and act accordingly
    Current Project: Retired

  5. #5
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    According to the picture that was supplied (using the colours), this should work.

    Simba Code:
    procedure FindErn;
    begin
    if IsChatBoxTextBetween('Your decorated cooking urn is full',2429,6,8) then
    begin
    writeln('Ern found.');
    Find dtm ect ect //<-- Need to add that yourself
    end
    end;

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
  •