ScriptUO

Scripting Resources & Utilities => Stealth Client => Topic started by: graysont on August 01, 2016, 11:44:45 AM

Title: How to Fix Problems With Reading Journal in Stealth
Post by: graysont on August 01, 2016, 11:44:45 AM
After spending many hours pulling my hair out wondering why none of the commands for reading the journal worked for me, I finally realized that in Settings > Common ...

you have to click "Show Cliloc text in journal" ...

It's the only way Stealth will be able to read your journal or be able to use the commands:

InJournalBetweenTimes
LastJournalMessage
etc.

Once I clicked that little box, my routine started working without a problem ...

Code: [Select]
   while(injournalbetweentimes('no metal',TimeParser,Now) = -1) do
    begin
        UseObject(FindType(Shovels,Backpack));
        shovelwait;
        TargetToXYZ(tX,tY,GetSurfaceZ(tX, tY, WorldNum));  
        Wait(1000);
    end;
Title: Re: How to Fix Problems With Reading Journal in Stealth
Post by: Crome969 on August 02, 2016, 12:08:13 AM
You are right and wrong. You can handle the clilocID yourself and not need to handle the text string.
This is much better, since it not depend on specific localisation but can handle it "raw" as it is.
Title: Re: How to Fix Problems With Reading Journal in Stealth
Post by: graysont on August 02, 2016, 09:56:54 PM
You are right and wrong. You can handle the clilocID yourself and not need to handle the text string.
This is much better, since it not depend on specific localisation but can handle it "raw" as it is.

Thank you. I had no idea that cliloc's were for the purpose of processing messages like that. Makes it a whole lot easier.
Title: Re: How to Fix Problems With Reading Journal in Stealth
Post by: Crome969 on August 03, 2016, 06:46:04 AM