Chat Viewer is now able to record Guild or Global Chat with the click of a button. Bounce back and forth between either without restarting the script!.
Originally by Praxiiz, updated by Blaze Budd[le] and then myself.
;============================================
;============================================
; Script: Excelsior's Chat Viewer
; Author: Praxiiz Spectreon
; Purpose: Records Guild OR Global Chat and
; displays it in a separate window for easy reading.
; Version: 1.1
; Made to work with Excelsior Shard by Elron/Datguy
; Further revisions by BlaZe Budd[le]/Devlin
;=============================================
set *symb *Type ;use [ for global and < for guild
set #menubutton N/A
set %index 0
set %newLine #journal
menu clear
menu Window Title Chat Viewer
menu Window Color blue
menu Window Size 600 150
menu List Create mainBuffer 0 0 600 150
menu Button Guild 500 125 50 25 Guild
menu Button Global 550 125 50 25 Global
menu Show
loop:
if #menubutton = Guild
{
set #menubutton 0
set *Type <
set *symb *Type
event sysmessage Guild Chat will now be recorded.
}
if #menubutton = Global
{
set #menubutton 0
set *Type [
set *symb *Type
event sysmessage Global Chat will now be recorded.
}
scanJournal 1
if #menubutton = CLOSED
stop
if %newLine <> #journal
{
set %temp #journal
str pos %temp < p
str Left %temp 1
if You_see: in #JOURNAL
{
goto loop:
}
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
Last edited by Devlin on Thu Jan 28, 2016 8:38 pm, edited 3 times in total.
so maybe I'm just missing something, but is there a way to force word wrap if you re-size the window smaller? I try to make mine 300 x 150 and the test just floods off the screen and can't be read.
No more updates intended for this script. Seeing as this was a collaborated effort on a few peoples parts, this is open code. Anyone who wishes to update the script (and try to add textwrap and/or a feature to switch which chat it records), feel free
bump and request for sticky (I think there are a couple replica versions of this script on the forums at the moment, if there is one that runs better/has more options, bump that one instead)