- ServUO Version
- Publish 57
- Ultima Expansion
- Time Of Legends
UPDATE 3: SOLVED in post reply!
UPDATE: Tryed too:
in covert and checkconvert.
UPDATE 2:Tryed in checkconvert chance value:
Hello!I activated paragon creatures in all facets,all working good.Now i want to get paragons not spawning in champion region,tryed this in Paragon.cs:
Code is loading well without issues,but spawns still born converted in paragon creatures.
Modified bools:
A)
B)
Here the mods:
A)
B)
Any tip?Thanks in advance!
UPDATE: Tryed too:
C#:
if (bc is ChampionSpawn)
UPDATE 2:Tryed in checkconvert chance value:
C#:
double chance = 1 / Math.Round(20.0 - (fame / 3200));
if (bc is ChampionSpawn)
chance = 0;
Code is loading well without issues,but spawns still born converted in paragon creatures.
Modified bools:
A)
C#:
public static bool CheckConvert(BaseCreature bc, Point3D location, Map m)
C#:
public static void Convert(BaseCreature bc)
A)
C#:
public static bool CheckConvert(BaseCreature bc, Point3D location, Map m)
{
if (!Core.AOS)
return false;
//Custom check paragon in champion region.
Map map = bc.Map;
ChampionSpawnRegion region = Region.Find(bc.Home, map) as ChampionSpawnRegion;
if (region != null)
{
ChampionSpawn spawn = region.ChampionSpawn;
if (spawn != null && spawn.IsChampionSpawn(bc))
{
return false;
}
}
//Custom check paragon in champion region.
C#:
public static void Convert(BaseCreature bc)
{
if (bc.IsParagon ||
!bc.CanBeParagon)
return;
//Custom check paragon in champion region.
Map map = bc.Map;
ChampionSpawnRegion region = Region.Find(bc.Home, map) as ChampionSpawnRegion;
if (region != null)
{
ChampionSpawn spawn = region.ChampionSpawn;
if (spawn != null && spawn.IsChampionSpawn(bc))
{
return;
}
}
//Custom check paragon in champion region.
Last edited: