The color codes did not work
3147: 179,0><0,179,0>,ozmo (up,
-----
3153: <115,0,
3153: 3007: 115><115,0,115><115,0,115><115,0,115>perisher<0,179,0><0,179,0><0,179,0><0,
3153: 3007: 2953: <0,179,0>179,0>,ozmo (up,down,n,s,e).2617: <0,179,0>Guardian<0,115,115>-----2638:
<0,
-----
3158: 3013: <115,0,
3158: 3013: 2956: <0,179,0>115><115,0,115><115,0,115><115,0,115>perisher<0,179,0><0,179,0><0,179,
0><0,179,0>,ozmo (up,down,n,
3158: s,e).2638: <0,179,
Changed to words ->
Code: Select all
local find = matches[2]
local data = getLines(0, getLineCount())
for i,j in ipairs(data) do
local sm, em = string.find(j, find, 1, true)
j = string.gsub(j, find, "<dark_green>" .. find .. "<dark_green>")
if sm then
cecho("\n<dark_green>".. i .. ": <green>" .. data[i-1])
cecho("\n<dark_green>".. i .. ": <green>" .. j)
cecho("\n<dark_green>".. i .. ": <green>" .. data[i+1])
cecho("\n<green>-----")
resetFormat()
end
end
-----
2630: Your prayers are answered and you glean an understanding of your God.
2630: You are currently a cleric of Belinik's church, and you discern your level of favour to be
2630: acceptable in the eyes of your God.
-----
2715: Training room (n,s,w,church).
2715: A bulletin board labelled 'clerics'
2715: Kuolema Crowley the Cinedi
-----
@ Zombiemud org 3000 (Perisher)