RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

how to disable artifacts giving?

emme

Wanderer
for your valor in combating the fallen beast, an artifact has been bestowed on you.

how to disable it? where is that script?
there is other similar sscript that gives artifact?
Ty
 
If you are only concerned with 'Champions' you might try looking at your BaseChampion.cs script then edit this:

Code:
public Item GetArtifact()
        {
            double random = Utility.RandomDouble();

            if (random < 0.30)
            {
                double random1 = Utility.Random(29);
                if (random1 <= 4)
                    return CreateArtifact(UniqueArtifacts);
                else if (random1 >= 5 && random1 <= 14)
                    return CreateArtifact(SharedArtifacts);
                else
                    return CreateArtifact(DecorationArtifacts);
            }
            return null;
        }

to something like this:
Code:
public Item GetArtifact()
        {
            //double random = Utility.RandomDouble();

            //if (random < 0.30)
            //{
            //    double random1 = Utility.Random(29);
            //    if (random1 <= 4)
            //        return CreateArtifact(UniqueArtifacts);
            //    else if (random1 >= 5 && random1 <= 14)
            //        return CreateArtifact(SharedArtifacts);
            //    else
            //        return CreateArtifact(DecorationArtifacts);
            //}

            return null;
        }

Not sure if this is what you meant . . sorry if I misunderstood.
 

emme

Wanderer
thank you so much. But i am not sure that the artifact was dropped by champ. i think it ha sbeen dropped for killing a number of regular dungeon mobs
 

Bham

Sorceror
I am not sure if this helps but in the BaseCreatures.cs file, there are 7 instances of artifact that you could comment out. I am not too good with C# so I don't know if it will break it but I would suggest before modifying it, make a backup - just in case.
 

emme

Wanderer
thank you, i think i did it. there where some settings in seasonal event that activates the virtueset giving.
I've replaced it with my custom set and anyway i think and i hope that i'have finally disabled it :D
 
Top