Does this script work in version 1.1.0? When I download it and use it, I get something that looks like this in the output when I do 'mfind shuyin':
3028: <0,179,0>Shuyin has been slaughtered by the awesome might of Romero Talnara, Her Soldier.
3028: <0,179,0>5302h, 4345m, 4755e, 10p exk- HSPFA Target: Pigeon mfind <115,0,115>shuyin<0,179,
0>
Find alias ala ctrl+f
Re: Find alias ala ctrl+f
Yeah it does actually, needs to be changed to use decho and all references to colors replaced by rgb numbers. I'll see about it later today.
Re: Find alias ala ctrl+f
http://forums.mudlet.org/viewtopic.php? ... find#p4964 is a better version!
Re: Find alias ala ctrl+f
The color codes did not work
Changed to words ->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,
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
@ Zombiemud org 3000 (Perisher)-----
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
-----
"Itsekurin tie vaatii voittamaan tunteensa, elämään tyynesti ja oppimaan vaikeuksista."
- Eiji Yoshikawa, Musashi
- Eiji Yoshikawa, Musashi
Re: Find alias ala ctrl+f
The color codes you're showing are for decho, not cecho. I believe Vadi made mention of that a little earlier in the thread. But there's also a link to another package for the same thing earlier in the thread as well which may work better, might be worth checking out.