there is a way to toggle spawns of monsters by a function (prefer at MapleMap)
there is some maps i want to stop them summon monster and make it back when i choose
tnx a lot :D
there is a way to toggle spawns of monsters by a function (prefer at MapleMap)
there is some maps i want to stop them summon monster and make it back when i choose
tnx a lot :D
at mapleMap add:
under respawn() or respawnMap() idk which source you are using add this:PHP Code:private boolean respawnAllowed = true;
public boolean toggleRespawn(){
respawnAllowed = !respawnAllowed;
return respawnAllowed;
}
here is a use of this in a command:PHP Code:if (!respawnAllowed) returh;
PHP Code:player.dropMessage("Repsawn is now " + (player.getMap().toggleRespawn() ? "on" : "off") + ".");
PHP Code:public boolean toggleRespawn(){
respawnAllowed = !respawnAllowed;
return respawnAllowed;
} // not neccessary, you can set it to a void return type.
PHP Code:public void toggleRespawn() {
respawnAllowed = !respawnAllowed;
}