FIXED Maritime Cargo For Other City

Magus Zeal

Expert II
Martime Cargo is supposed to reward gold to the city regardless of where you deliver it. The rates are half for a city that is a different destination (i.e. Delivered to moonglow but cargo is for yew).

I just burned not one, but two mythical cargo on moonglow destined to another down and got zero gold added. Its a bummer cause I have been working hard at getting these :)

Rising Tide - https://uo.com/wiki/ultima-online-wiki/combat/pvm-player-versus-monster/rising-tide/


Maritime Cargo Crate City Treasury Values (https://www.uo-cah.com/pub-104/rising-tide-guide)
Grandmaster QualityExalted QualityLegendary QualityMythical Quality
Matching Town~150K to 190K Gold~500K to 600K Gold~1,000,000 Gold~10,000,000 Gold
Non-Matching Town~70K to 80K Gold~250K to 300K Gold~500,000 Gold~5,000,000 Gold
 
OP
Magus Zeal

Magus Zeal

Expert II
The uo.com rising tide link just says "half the value for non-matching cities"
CAH - provides specific values.
 
OP
Magus Zeal

Magus Zeal

Expert II
So this is the offending code. It is stating if cargo matches city, add to treasury, else 100 (lol). The else should be calculating 50% of if the city did match.



Code:
private void AddToTreasury(CityLoyaltySystem system, MaritimeCargo cargo)
        {
            if (system != null)
            {
                if (cargo.City == City)
                {
                    system.AddToTreasury(null, cargo.GetAwardAmount() * 1000);
                }
                else
                {
                    system.AddToTreasury(null, 100);
                }
            }
        }

The else should be:

Code:
system.AddToTreasury(null, cargo.GetAwardAmount() * 1000 * 0.5);
 

PLAY NOW

Heritage

Address
play.trueuo.com
Port
2593
Uptime
4 hours
Players Online
18
Houses
875
Vendors
282
Gold
5,404,261,167gp
Top Bottom