Change respawn using Notepad++ with Regular expresions

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,772
Reaction score
207
Location
Chile, Santiago
Hello,

I have all my respawns on 200 seconds, but I would like to change for example all Guzzlemaw to 400 seconds.

You have to use on notepad++ the "regular expresion" from the search function.



Then use this code on the search line:

Code:
(<monster name="Guzzlemaw" x="-?[0-9]?[0-9]" y="-?[0-9]?[0-9]" z="-?[0-9]?[0-9]" spawntime=)"120"( />)
And use this code on the replace line:

Code:
\1"400"\2
This will search all the lines where Guzzlemaw appears, with digits between 0-9 on pos x, y and z, and will replace the spawntime from 200 to 400.

Simple and easy.
 
Last edited:
OP
kito2

kito2

www.masteria.net
Joined
Mar 9, 2009
Messages
3,772
Reaction score
207
Location
Chile, Santiago
Updated: Code search negative values too and also 2 digits values on x,y,z.
 
Top