Page 1 of 1

[EasyUO] Public Chat Viewer

Posted: Sun May 09, 2010 10:13 pm
by Elron
Was created by someone else for someplace else, I made it work for here.

Will dump all the player text to a separate window so you have a history display of chat logs

Code: Select all

;=============================================
; 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

Re: [EasyUO] Public Chat Viewer

Posted: Sat Jun 26, 2010 9:33 am
by Ryslock
Handy little script, thanks for getting it to work here.

Added guildchat to mine...Mostly because I tend to miss it more than global :oops:

Re: [EasyUO] Public Chat Viewer

Posted: Thu Dec 02, 2010 12:02 am
by Devlin
How to change this to make a guild chat journal (because portal is a lil nicer)
if #STRRES = [ ;this is the first char of the lines you want to see
Change the "[" to "<", itll make a guild chat journal. Top numbers can change the window size.

Re: [EasyUO] Public Chat Viewer

Posted: Wed Mar 16, 2011 1:26 pm
by Devlin
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.

Re: [EasyUO] Public Chat Viewer

Posted: Wed Mar 16, 2011 2:21 pm
by BlaZe
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..

Here's the updated script:

Code: Select all

;=============================================
; 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