Results 1 to 4 of 4

Thread: FindNpcChatText Error. Plz Help!

  1. #1
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default [Resolved] FindNpcChatText Error. Plz Help!

    Hello everyone, it's been awhile since I've been around ScuneRape, these forums, and pascal. I've noticed SRL has came a very long way since the last time I was here.

    Anyhow, down to the point. I am trying to find text from a NPC with FindNpcChatText, but I get this error...
    [Runtime Error] : Exception: Access violation at address 0064FEA2 in module 'scar.exe'. Read of address 00000000 in line 270 in script C:\Program Files\SCAR 2.03\includes\srl\srl\core\Text.scar
    Here is the code I'm using to test the find text.
    Code:
       if(FindNpcChatText('Hello')) then
       begin
          writeLn('Text was found!');
       end
    If someone can tell me what's wrong, or what I can do better to get the NPC text, please tell me !

  2. #2
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    1,330
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Have you called setupsrl in your main loop?

  3. #3
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    57
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Ugg, no I didn't heh. I was browsing the forums earlier today with seeing tons of posts about people not calling that. I thought to myself, that's something I will have to remember to do. What do you know, I forgot !

    Anyhow, that fixed it. Thanks Pyro!

  4. #4
    Join Date
    Feb 2006
    Location
    New Zealand
    Posts
    1,330
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No problem. I remember forgetting that everytime back in squig days. Hated it felt so nooby when people told me the answer.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. FindnpcChatText
    By drizzt in forum OSR Help
    Replies: 0
    Last Post: 02-26-2009, 03:31 PM
  2. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  3. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  4. Error: Cannot Fix Script - Error Overgrowth - Begin Headdesking
    By PhantasmalScripter in forum OSR Help
    Replies: 6
    Last Post: 12-23-2006, 12:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •