-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathjournal.euo
88 lines (83 loc) · 1.87 KB
/
journal.euo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
;=============================================
; Script: UO ingame chat to Discord
; OriginalAuthor: Praxiiz Spectreon
; Further revisions by BlaZe Budd[le]
; Purpose: Created for Allure of the Unknown
; to allow players to keep track
; of public chat and pharos chatxt
; when there is a lot of journal
; spam.
; Version: 0.7
; Made to work with Excelsior Shard by Elron/Datguy
;=============================================
set %scriptpath /mnt/c/Users/%username%/Desktop/duo/easyuo2discord.sh
set %webhook https://DISCORDWEBHOOK ;add your discord channel webhook url here
;set %symb < ;use [ for global and < for guild if you want to filter the results
set #menubutton N/A
set %index 0
set %newLine #journal
menu clear
menu Window Title 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
loop3:
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 loop3
loop4:
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 loop4
loop5:
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 loop5
menu List Add mainBuffer %string
set %qstring ' , %string , '
execute cmd.exe /c ubuntu -c %scriptpath %qstring %webhook
set %newLine #journal
set %index %index + 1
menu List Select mainBuffer %index
}
;}
goto loop:
halt