;=============================================
; Script: Praxiiz's Public Chat Viewer
; Author: Praxiiz Spectreon
; Purpose: Created for Allure of the Unknown
; to allow players to keep track
; of public chat and pharos chat
; when there is a lot of journal
; spam.
; Version: 0.5
; Made to work with Excelsior Shard by Elron/Datguy
;=============================================
; Version; 0.6
;Window Initialization
menu clear
menu Window Title Praxiiz's Public Chat Viewer
menu Window Color blue
menu Window Size 700 170
menu List Create mainBuffer 10 10 680 150
menu Show
menu HideEUO
;set %newLine hello
;gosub addLine
set %index 0
set %newLine #journal
loop:
scanJournal 1
if %newLine <> #journal
{
set %temp #journal
str pos %temp < p
str Left %temp 1
if #STRRES = [ ;this is the first char of the lines you want to see
{
menu List Add mainBuffer #journal
set %newLine #journal
set %index %index + 1
menu List Select mainBuffer %index
;gosub addLine
}
}
goto loop:
halt
Bump.
Anyone have a better chat viewer?
This one has two downsides: uses _'s as spaces. Annoying, but you get over it
More importantly, it doesn't always record. I've noticed it happens when there are repeated characters at the start of the sentence.
Underscores are now converted to spaces, bracket type modifying now more easily accessible (changing from global to guild chat) and added a couple lines that will stop the script when you close the log window.
Still trying to figure out how to fix the occasional line-skipping issue..
;=============================================
; Script: Praxiiz's Public Chat Viewer
; Author: Praxiiz Spectreon
; Purpose: Created for Allure of the Unknown
; to allow players to keep track
; of public chat and pharos chat
; when there is a lot of journal
; spam.
; Version: 0.7
; Made to work with Excelsior Shard by Elron/Datguy
; Further revisions by BlaZe Budd[le]
;=============================================
set %symb [ ;use [ for global and < for guild
set #menubutton N/A
set %index 0
set %newLine #journal
menu clear
menu Window Title Praxiiz's Public Chat Viewer
menu Window Color blue
menu Window Size 700 170
menu List Create mainBuffer 10 10 680 150
menu Show
menu HideEUO
loop:
scanJournal 1
if #menubutton = CLOSED
stop
if %newLine <> #journal
{
set %temp #journal
str pos %temp < p
str Left %temp 1
if #STRRES = %symb
{
set %string #journal
loop2:
str Pos %string _
set %pos #strRes
str Del %string #strRes 1
str Ins #strRes #spc %pos
set %string #strRes
str Count %string _
if #strRes > 0
goto loop2
menu List Add mainBuffer %string
set %newLine #journal
set %index %index + 1
menu List Select mainBuffer %index
}
}
goto loop:
halt