• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Changing spawn times on monsters

Status
Not open for further replies.

En Svensk Man

New Member
Joined
Nov 11, 2016
Messages
6
Reaction score
1
Is there any way to change spawn times by specific monsters? Or do I have to manually change it on all monsters on the map?
 
Solution
If you use Notepad++ (or Sublime Text) open the spawn.xml file which belongs to your map.

Run Search & Replace (Or Find & Replace or something like that) and enable REGULAR EXPRESSION!

In search field write (replace ONLY monster name you wish to search for but don't remove the parantheses or anything else):
Code:
(name="Ice Golem".*)spawntime="\d+"

In replace field write (same here replace ONLY spawntime to the new number you want):
Code:
\1spawntime="60"
I would change from spawn.xml in world folder, use notepad++.
Depending on how you have placed the monsters, spawn first and then monster or monster only without putting spawns first.

Do a quick replace in notepad++
XML:
<monster name="Ice Golem" x="0" y="0" z="0" spawntime="60" />
and change to:
XML:
<monster name="Ice Golem" x="0" y="0" z="0" spawntime="30" />

Now some monsters might have x="0" y="0" z="0" changed so you have to find and replace manually by just searching for "Ice Golem"

Hope you understand what I mean :)
 
If you use Notepad++ (or Sublime Text) open the spawn.xml file which belongs to your map.

Run Search & Replace (Or Find & Replace or something like that) and enable REGULAR EXPRESSION!

In search field write (replace ONLY monster name you wish to search for but don't remove the parantheses or anything else):
Code:
(name="Ice Golem".*)spawntime="\d+"

In replace field write (same here replace ONLY spawntime to the new number you want):
Code:
\1spawntime="60"
 
Last edited:
Solution
If you use Notepad++ (or Sublime Text) open the spawn.xml file which belongs to your map.

Run Search & Replace (Or Find & Replace or something like that) and enable REGULAR EXPRESSION!

In search field write (replace ONLY monster name you wish to search for but don't remove the parantheses or anything else):
Code:
(name="Ice Golem" x="\d+" y="\d+" z="\d+") spawntime="\d+"

In replace field write (same here replace ONLY spawntime to the new number you want):
Code:
\1 spawntime="60"

It's not replacing the spawns that have - on the x y z coordinates. :(
 
Status
Not open for further replies.
Back
Top