Faction respawn at base.
This commit is contained in:
@ -26,6 +26,7 @@ import org.w3c.dom.Document;
|
||||
import org.w3c.dom.NamedNodeMap;
|
||||
import org.w3c.dom.Node;
|
||||
|
||||
import com.l2jserver.Config;
|
||||
import com.l2jserver.gameserver.engines.DocumentParser;
|
||||
import com.l2jserver.gameserver.model.L2MapRegion;
|
||||
import com.l2jserver.gameserver.model.L2Object;
|
||||
@ -419,6 +420,18 @@ public final class MapRegionManager implements DocumentParser
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.FACTION_SYSTEM_ENABLED && Config.FACTION_RESPAWN_AT_BASE)
|
||||
{
|
||||
if (activeChar.getActingPlayer().isGood())
|
||||
{
|
||||
return Config.FACTION_GOOD_BASE_LOCATION;
|
||||
}
|
||||
if (activeChar.getActingPlayer().isEvil())
|
||||
{
|
||||
return Config.FACTION_EVIL_BASE_LOCATION;
|
||||
}
|
||||
}
|
||||
|
||||
// Get the nearest town
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user