-
Notifications
You must be signed in to change notification settings - Fork 428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLUAlert Additional Features #2314
base: dev
Are you sure you want to change the base?
Changes from all commits
e012339
979d8dc
c636840
66d14c3
21c1d10
a29b8bf
91f90cd
c52809a
2415fb1
a0246d3
ddd3094
55673a1
2c943c5
9c32e28
47852d5
c8af50e
6e4091d
db10bd4
46931e5
8d5cce8
869a24d
9e3068c
0388add
fd3f236
8e6c09f
19ac226
d90d47e
b570de7
ff3fcef
6d3069c
9a85235
6df1e3a
9d299c8
866d22e
258f601
54621f5
cb7ac27
5fa3a66
bd55b5e
fb95dca
7b6c3b4
dbd9910
d7a74e7
8197ae7
6baba27
88cbd13
328a7cf
3d3fa8a
156480d
04e73b0
1841b88
d4c8b78
d5bd587
4be435f
e105ac2
8802c82
84842de
8cec1c7
be64bb8
02ea43e
55cdd65
690fe5b
c59629c
b512bf6
ccd2183
7db08a4
0729269
4c7e68d
dc6ae40
7c99345
0d564b4
b62a7c8
2989eae
0bfead2
c902c76
c776dbf
5130c96
10e0956
2c76be6
a54a5c5
c00b155
2de084d
7e39d8e
a36eadd
64ce745
15de262
3c094c0
fe39145
6bc9be2
2762180
8434022
efe0f62
b240a1e
7bce71c
fa2139c
4d657ab
2aeb06c
18413aa
0491d6d
c3d811d
dfb29f0
6e4caf6
3e7fb71
dd07413
4a42b90
6fb40d4
019e608
1b70a01
dce6f4d
52680ee
3daf9dd
e2a0ae2
d9f3a41
c4e95e8
c688b30
ed1d6e1
198a654
6573db3
ef25a4b
b30897f
254d34f
9131345
542acb4
099f32f
b100b7a
7977ca3
08b44b8
97e9203
32e943c
c002be7
a61a3be
173c5a1
ceebbd1
b3b3327
3a34762
77a054d
0c02e15
7d056c2
fedb525
41eb479
96dd347
f7394f5
c5984dc
3c94fd5
36df4b7
ae2a26c
dbd4c2b
7a6bf1a
4fed9b2
ccb67ac
6006c6e
a1dde86
89a560f
4b611d2
5c09784
2b08be6
fa66cc0
176a4c0
d1dc68c
adfc1f6
943acee
d05a692
94b5039
61c1db4
fa09cdf
3c83a08
15bf559
dee51f7
8b87c8c
052d19c
78d50e7
d14a40d
22cbc86
c384750
d7f61c1
76ed5a3
84cc545
f9738e4
9d92a56
586871f
d7b1a95
85ef3ed
ff9f951
d7256a9
cf92362
0630cd7
4714e56
7a31275
467957a
96c78a5
b0ebde6
24206d1
ddd8f50
618e6f4
9e1f29f
0cbfcd3
f9ab033
9facaf0
532339b
7fd02cf
40101f2
78ab4ad
bf77ef7
e3660a9
546c4db
fa70845
2b46b32
87c700f
d97a154
b4de011
86c0663
bcb27e9
c76922f
4c84b4a
287acb2
be48b03
33d72d3
5a8fa71
fe07507
c7401d1
621aaf0
2b47c18
ba3f675
3788ad4
18ed35d
748cde4
798358d
c435fc4
f54479e
003baa0
30030a6
bb31f9a
174d6f4
3fee4b0
e3600b8
e68b930
e8b7230
e0e3fae
9183495
a16eabf
68ebc53
21df032
c245663
01b36c3
500a4fe
b618d7e
ed0eb98
7536799
11135f2
2195a3b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,37 @@ | ||
--[[ | ||
BLUAlert v1.0.0.0 | ||
BLUAlert v1.1.0.0 | ||
|
||
Copyright � 2017, Christopher Szewczyk | ||
Copyright � 2017, 2023 Christopher Szewczyk, Evan Martinson | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of BLUAlert nor the | ||
names of its contributors may be used to endorse or promote products | ||
* Neither the name of BLUAlert nor the names of its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL Christopher Szewczyk BE LIABLE FOR ANY | ||
DISCLAIMED. IN NO EVENT SHALL Christopher Szewczyk or Evan Martinson BE LIABLE FOR ANY | ||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
]] | ||
|
||
require('sets') | ||
res = require('resources') | ||
chat = require('chat') | ||
|
||
_addon.name = 'BLUAlert' | ||
_addon.author = 'Kainsin' | ||
_addon.version = '1.0.0.0' | ||
_addon.author = 'Kainsin', 'Prince Headache' | ||
_addon.version = '1.1.0.0' | ||
|
||
-- Some BLU spells have a different name then the monster abilities they come from. | ||
blu_different_names = { | ||
|
@@ -76,6 +73,7 @@ function get_action_id(targets) | |
end | ||
end | ||
|
||
-- Register the action event listener | ||
windower.register_event('action', function(action) | ||
-- Category 7 is the readies message for abilities. | ||
if (action['category'] == 7) then | ||
|
@@ -87,3 +85,14 @@ windower.register_event('action', function(action) | |
end | ||
end | ||
end) | ||
|
||
--Prince Headache's Modifications (Ver 1.1.0): | ||
|
||
-- Plays a sound when Blue Magic is learned | ||
windower.register_event('incoming text', function(original, modified, original_mode, modified_mode, blocked) | ||
-- Check if the modified message contains "learns" followed by a Blue Magic spell name | ||
local spell_name = modified:match("learns%s+(.+)!") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd also add a Finally, I'd also add a check for the |
||
if spell_name and find_blu_spell(spell_name) then | ||
windower.play_sound(windower.addon_path..'sounds/BlueMagicLearned.wav') | ||
end | ||
end) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Copyright © 2018, Sjshovan (Apogee) | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions and the following disclaimer in the | ||
documentation and/or other materials provided with the distribution. | ||
* Neither the name of Battle Stations nor the | ||
names of its contributors may be used to endorse or promote products | ||
derived from this software without specific prior written permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL Sjshovan (Apogee) BE LIABLE FOR ANY | ||
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment doesn't really add much info that isn't immediately obvious from the next line - I would remove it.