ExX

Member
Dumb question again lol. I noticed that basic earrings don't drop as loot off monsters. Just ones only wearable by gargoyles. How would I go about adding basic earrings to be dropped? I noticed this section in loot.cs

Code:
private static readonly Type[] m_JewelryTypes = new[]
		{
			typeof(GoldRing), typeof(GoldBracelet), typeof(GargishRing), typeof(SilverRing), typeof(SilverBracelet),
			typeof(GargishBracelet), typeof(GargishNecklace), typeof(GargishEarrings)
		};

If I add earrings to this section will they drop with random magical properties just like the other ones or is there something additional I need to do I am unaware of?
 
add this
C#:
, typeof(GoldEarrings), typeof(SilverEarrings)
After
C#:
typeof(GargishBracelet), typeof(GargishNecklace), typeof(GargishEarrings)

the non gargish earrings file is located at Scripts\Items\Jewels\Earrings.cs

You can even add necklaces to this. Here is with earrings and necklaces added.
C#:
private static readonly Type[] m_JewelryTypes = new[]
     {
     typeof(GoldRing), typeof(GoldBracelet), typeof(GargishRing), typeof(SilverRing), typeof(SilverBracelet),
     typeof(GargishBracelet), typeof(GargishNecklace), typeof(GargishEarrings), typeof(GoldEarrings),
  typeof(SilverEarrings), typeof(Necklace), typeof(GoldNecklace), typeof(GoldBeadNecklace),
  typeof(SilverNecklace), typeof(SilverBeadNecklace)
     };

If I add earrings to this section will they drop with random magical properties just like the other ones or is there something additional I need to do I am unaware of?
They will drop with magical properties similar to other jewelry. Adding more to the jewelry section of loot.cs will dilute the dropping of rings and bracelets, just something to keep in mind.
 
Last edited by a moderator:
Hi sorry I know an old thread but exactly what I was looking for!

Scripts: Compiling C# scripts...Failed with: 1 errors, 0 warnings
Errors:
+ Misc/Loot.cs:
CS1513: Line 15: } expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.

typeof(GargishRing), typeof(GargishBracelet); < Here is the line it's erroring am I missing something here ??
private static readonly Type[] m_JewelryTypes = new[]
{
typeof(GoldRing), typeof(GoldBracelet), typeof(GargishRing), typeof(SilverRing), typeof(SilverBracelet),
typeof(GargishBracelet), typeof(GargishNecklace), typeof(GargishEarrings), typeof(GoldEarrings),
typeof(SilverEarrings), typeof(Necklace), typeof(GoldNecklace), typeof(GoldBeadNecklace),
typeof(SilverNecklace), typeof(SilverBeadNecklace),
};

ServUO - [https://www.servuo.com] Version 0.5, Build 7537.31275 - Build on 20/08/2020 17:22:30 UTC - Debug
 

Active Shards

  • Unchained
    Custom (Classic)
    • Players
    • 135 Online
    • 273 Peak
  • UO Eventine
    Custom (Classic)
    • Players
    • 89 Online
    • 137 Peak
  • The Crossroads
    Mondain's Legacy
    • Players
    • 83 Online
    • 190 Peak
  • Insane UO
    Endless Journey
    • Players
    • 80 Online
    • 105 Peak
  • UO: New Renaissance
    Custom (Classic)
    • Players
    • 29 Online
    • 85 Peak
  • UO Phoenix
    Custom (Classic)
    • Players
    • 22 Online
    • 48 Peak
  • UO Enigma
    Custom (Modern)
    • Players
    • 22 Online
    • 172 Peak
  • Arth
    Custom (Modern)
    • Players
    • 19 Online
    • 34 Peak
  • CALYPSO
    Custom (Modern)
    • Players
    • 18 Online
    • 30 Peak
  • Pandora
    Custom (Modern)
    • Players
    • 17 Online
    • 32 Peak

Donations

Total amount
$0.00
Goal
$500.00
Back