[Easy UO] Excelsior Super Chat Easy to Read UPDATE

If you make a Client-side script you can publish it here for other players to use
Locked
Dragon Hide
Passer by
Posts: 2
Joined: Wed May 07, 2014 7:25 am

[Easy UO] Excelsior Super Chat Easy to Read UPDATE

Post by Dragon Hide »

Default enter button is ( ` ) on account of easyuo not reading the enter button. Enjoy the script I sure do :D

Code: Select all

gosub Checkmate
set %char `
set %speech 1

menu edit txt 600 %ycoord 500 [World MSG Press ' To Send]
menu edit txt2 10 %ycoord 500 [Guild MSG Press ' To Send]
while #true
{
  gosub scan
  gosub sendtxt
  gosub sendtxt2
}


sub sendtxt
  menu get txt
  str pos #menures %char
  if #strres = 0
    return
  set %a #strres
  str len #menures
  set %b #strres
  if %a = %b
  {
    set %b %b - 1
    str left #menures %b
    msg [c #strres $
    menu set txt
  }
return

sub sendtxt2
  menu get txt2
  str pos #menures %char
  if #strres = 0
    return
  set %a #strres
  str len #menures
  set %b #strres
  if %a = %b
  {
    set %b %b - 1
    str left #menures %b
    msg [g #strres $
    menu set txt2
  }
return

sub checkmate
  gosub menuBody
  set %jEntry #jIndex
  set %listIndex 0
return

sub scan
  mainLoop:
if ( %jEntry < #jIndex || %jEntry = N/A )
{
  set %scanLine #jIndex - %jEntry
  scanJournal %scanLine
  set %journal #journal
  menu get filter_spam
  set *filterSpam #menuRes
  menu get filter_spells
  set *filterSpells #menuRes
  menu get chat_only
  set *chatOnly #menuRes
  menu get filter_spotting
  set *filterSpotting #menuRes
  if *filterSpells = #true
  {
    str pos %journal : 1
    str del %journal 1 #strRes
    set %spellCheckStr #strRes
  }

  if shouts in %journal || chat in %journal || impurities in %journal || [ in %journal && you_see notin %journal
  {
    set %lastEntry %journal
    str count %journal _
    while #strRes > 0
    {
      str pos %journal _
      set %underscorePos #strRes
      str del %journal #strRes 1
      str ins #strRes #spc %underscorePos
      set %journal #strRes
      str count %journal _
    }
    set %listIndex %listIndex + 1
    gosub time
    set %line_ . %listIndex %time , #spc , %journal
    menu list add journal %line_ . %listIndex
    menu list select journal %listIndex
  }
  set %jEntry %jEntry + 1
}
if #menuButton <> NONE
{
  gosub #menuButton
  set #menuButton NONE
}
;goto mainLoop
return

  }
  gosub time
  set %listIndex %listIndex + 1
  set %line_ . %listIndex %time , #spc , SAVING , #SPC , DONE
  menu list add journal %line_ . %listIndex
  menu list select journal %listIndex
  set %jEntry %jEntry + 1
return

sub left
  if %width > 300
  {
    gosub menuBody -100 0
  }
  gosub rewriteList
return

sub right
  if %width < 1200
  {
    gosub menuBody 100 0
  }
  gosub rewriteList
return

sub rewriteList
  menu list clear journal
  for %restoreList_i 1 %listIndex
  {
      menu list add journal %line_ . %restoreList_i
  }
  menu list select journal %listIndex
return

sub closed
  stop
return

sub time
  set %time #time
  str ins %time : 5
  str ins #strRes : 3
  set %time [ , #strRes , ]
return

sub menuBody
  menu Clear
  menu Font Name Times New Roman
  menu Window title Dragon Hide's Excelsior Journal
  menu Window color black
  menu Font Name Verdana
  menu Font color red
  menu Font bgcolor black

  menu Font size 10
  if %width = N/A
  {
     set %width 1200
  }
  if %height = N/A
  {
     set %height 205
  }
  set %yCoordinate 5
  if %0 > 0
  {
    set %width %width + %1
  }
  menu list create journal 5 %yCoordinate %width %height

  menu Font Name Times New Roman
  set %yCoordinate %yCoordinate + %height
  set %yCoordinate %yCoordinate + 5

  menu Font Align right
  menu button WORLD 800 214 100 20 WORLD
  menu button guild 200 214 100 20 GUILD

  menu Font color Red
  set %yCoordinate %yCoordinate + 20

  set %ycoord %yCoordinate

  set %yCoordinate %yCoordinate + 25
  set %windowSize %width + 10
  menu Window Size %windowSize %yCoordinate
  menu Show
  set #menuButton NONE
return
Last edited by Dragon Hide on Thu May 08, 2014 6:30 pm, edited 3 times in total.
aaron
Grandmaster Scribe
Posts: 79
Joined: Wed Jul 18, 2012 2:28 pm

Re: [Easy UO] Excelsior Super Chat + Easy to Read Journal!!!

Post by aaron »

Good job, thanks.
Dragon Hide
Passer by
Posts: 2
Joined: Wed May 07, 2014 7:25 am

Re: [Easy UO] Excelsior Super Chat + Easy to Read Journal!!!

Post by Dragon Hide »

Not a problem!
Chronical
Novice Scribe
Posts: 5
Joined: Wed May 14, 2014 4:30 am

Re: [Easy UO] Excelsior Super Chat Easy to Read UPDATE

Post by Chronical »

Thanks, the other one on here was good but it's nice to have both in one, will test it properly :p
Phalnox
Novice Scribe
Posts: 7
Joined: Sat Jun 07, 2014 3:33 pm

Re: [Easy UO] Excelsior Super Chat Easy to Read UPDATE

Post by Phalnox »

Hey.
Simple solution to Enter not being read by EasyUO:
Type out "Return", the actual name for the Enter key.
:)

Code: Select all

Never mind, it highlights the text as a command, but for some reason when you hit Enter it's almost like an incorrect key is being pressed. This is because there is another key bound to enter for this source. With a little effort, this could be solved.
User avatar
Devlin
Legendary Scribe
Posts: 652
Joined: Thu Mar 18, 2010 12:50 pm

Re: [Easy UO] Excelsior Super Chat Easy to Read UPDATE

Post by Devlin »

nice, as someone said, combined [g/[c is cool, i never got that for the other viewer. Only thing I'd say is try to figure out text wrapping... an issue i couldnt figure out. I think the answers somewhere with strings, setting one to the max char's of a line and then putting the overflow to a new line. But i hate strings.
Resident Wiki Editor/Village Idiot

EasyUO Scripts
ReArmer
ReArmer (Old Version)
ReReader
Separate Journal for Guild or Public Chat (Old)
---------------------------------------------
Combat Focus Guide (Godmode Formula)
Phalnox
Novice Scribe
Posts: 7
Joined: Sat Jun 07, 2014 3:33 pm

Re: [Easy UO] Excelsior Super Chat Easy to Read UPDATE

Post by Phalnox »

Also mine does not display guild chat for some reason?
which line displays the guild chat?

Code: Select all

 set #menuButton NONE
and what does this line do?


This part of the code needed editing for it to work:

Code: Select all

%line_ . %listIndex %time , #spc , SAVING , #SPC , DONE

Code: Select all

%line_ . %listIndex %time , #spc , %SAVING , #SPC , %DONE
Phalnox
Novice Scribe
Posts: 7
Joined: Sat Jun 07, 2014 3:33 pm

Re: [Easy UO] Excelsior Super Chat Easy to Read UPDATE

Post by Phalnox »

now my chat is spamming N/A lol... I need some help here
icestormeraacc
Apprentice Scribe
Posts: 12
Joined: Mon Nov 14, 2016 9:03 pm

Re: [Easy UO] Excelsior Super Chat Easy to Read UPDATE

Post by icestormeraacc »

this is good but if can make it into 2 windows 1 for guild 2 for world chat would be better (to make cleary to see )


and is it only me that this script records everythings?like casting spell?
Locked