Faction Horses
Posted: Thu May 24, 2012 10:09 pm
http://uded.net/oz/faction%20horses.zip
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:
Note 5,000,000 is the price atm. The last number is the hue of the horse on the gump only, not the actual horse. I think they're all quite close except SL, so you may want to adjust it.
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.
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.