I've made a change so basically anyone can ride faction horses. Important note is I haven't removed the normal functionality of a faction horse breeder. I don't really know much about factions tbh as I never played it, but I'm sure we can just stop the horse breeder from spawning?
Anyway the change to FactionWarHorse.cs simply comments out the override onclick sub for the mount. It therefore acts like any other mount.
The change to SBAnimalTrainer.cs is the addition of the following:
Code: Select all
// Oz - adds faction horses to animal trainer @ 5million.
// Note Arguments for adding: AnimalBuyInfo( controlSlots, type, price, amount, itemID, hue )
Add( new AnimalBuyInfo( 1, "Minax",typeof( FactionWarHorse ),5000000, 10, 204, 0x4c2 ) );
Add( new AnimalBuyInfo( 1, "Council of Mages",typeof( FactionWarHorse ),5000000, 10, 204, 0x847 ) );
Add( new AnimalBuyInfo( 1, "True Britannians",typeof( FactionWarHorse ),5000000, 10, 204, 0x4db ) );
Add( new AnimalBuyInfo( 1, "Shadowlords",typeof( FactionWarHorse ),5000000, 10, 204, 0x453 ) );
Lastly there is some additional code in the purchase areas of basevendor.cs where we check which faction horse we bought and set some values for that.