How do I fix it where dark father, or any doom boss that can give you point from spawner rather than doom spawner?

I have it set up in ilshmear for players to kill in ish, and it doesn't give us point for killing on a normal spawner.
 
BaseCreature.cs, need add your region or delete the check for regions at all.

Change:
Code:
if (region.IsPartOf("Doom Gauntlet") || region.Name == "GauntletRegion")
{
DemonKnight.HandleKill(this, ds.m_Mobile);
}
to:
Code:
//if (region.IsPartOf("Doom Gauntlet") || region.Name == "GauntletRegion")
//{
DemonKnight.HandleKill(this, ds.m_Mobile);
//}
 
O.K. I tried testing this sorry for the delay, and it work in Malas, but not in Ilshmear, or anywhere else. This is what I put in my script.

Code:
 //if (region.IsPartOf("Doom Gauntlet") || region.Name == "GauntletRegion")
                        //{
                        DemonKnight.HandleKill(this, ds.m_Mobile);
                        //}
 
I tested it and it works successfully.
make sure you save the changes and restart the server. Just make sure that you have disabled the check(it is default in servuo) for the region in DemonKnight.cs

Method HandleKill:
Code:
            if ( pm == null || bc == null || bc.NoKillAwards/*|| !CheckLocation(bc) || !CheckLocation(pm)*/)
                return;
 
O.K. I check demonknight.cs there is nothing, but I found it in basecreature.cs. Is this the one?

Code:
 if (!Summoned && !NoKillAwards && !m_HasGeneratedLoot && !m_NoLootOnDeath)
            {
                m_HasGeneratedLoot = true;
                GenerateLoot(false);
                ArtifactValidate.GiveArtifact(this);
            }

            if (!NoKillAwards && Region.IsPartOf("Doom"))
            {
                int bones = TheSummoningQuest.GetDaemonBonesFor(this);

                if (bones > 0)
                {
                    PackItem(new DaemonBone(bones));
                }
            }


O.K. found it in Demonknight.cs

Code:
//CHeck if players are in the region with the bosses
            if ( pm == null || bc == null || !CheckLocation(bc) || !CheckLocation(pm))
                return;
[doublepost=1527072118][/doublepost]O.K. perfect it's a success! Thank you so much!
 
Back