- house commit has inappropiate cost for certain parts
http://www.uodemise.com/forum/showthread.php?t=136453
- houses should not be placable on roads
http://www.uodemise.com/forum/showthread.php?t=139597
Bushido
- lightning strike should consume extra mana if player walks
http://www.uodemise.com/forum/showthread.php?t=127699
Weapons
- frenzied whirlwind should properly flag combatants.
http://www.uodemise.com/forum/showthread.php?t=138625
Magery
- PolyMorph should not turn the caster grey/criminal
http://www.uodemise.com/forum/showthread.php?t=116438
- Paralyze should interfere in casting paladin spells.
http://www.uodemise.com/forum/showthread.php?t=120742
Spellweaving
- Ethereal Voyage should not break when attempting to tame dragons, nightmares, etc.
http://www.uodemise.com/forum/showthread.php?t=135349
Misc
- refactor DrawRessource() to DrawResource()
http://www.uodemise.com/forum/showthread.php?t=127202
- random blood "spatter" itemid during combat: more visible blood.
http://www.uodemise.com/forum/showthread.php?t=140092
Taming
- Animal lore should check for skill modifiers when using lore on mobiles.
http://www.uodemise.com/forum/showthread.php?t=140658
Necromany
- Wraithform should allow push-through without stam loss always.
http://www.uodemise.com/forum/showthread.php?t=117126
- Wraithform mana leech should not lower the victim's mana + small cleanup to spellhelper.doleech()
http://www.uodemise.com/forum/showthread.php?t=120238
Chivalry
- Noble Sacrifice should work in houses. RunUO's does not.
http://www.uodemise.com/forum/showthread.php?t=122819
NCP Vendors
- Add necro regs for vendors to buy from players.
http://www.uodemise.com/forum/showthread.php?t=136435
137 lines
No EOL
4.7 KiB
C#
137 lines
No EOL
4.7 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Server.Items;
|
|
|
|
namespace Server.Mobiles
|
|
{
|
|
public class SBMage : SBInfo
|
|
{
|
|
private ArrayList m_BuyInfo = new InternalBuyInfo();
|
|
private IShopSellInfo m_SellInfo = new InternalSellInfo();
|
|
|
|
public SBMage()
|
|
{
|
|
}
|
|
|
|
public override IShopSellInfo SellInfo { get { return m_SellInfo; } }
|
|
public override ArrayList BuyInfo { get { return m_BuyInfo; } }
|
|
|
|
public class InternalBuyInfo : ArrayList
|
|
{
|
|
public InternalBuyInfo()
|
|
{
|
|
Add( new GenericBuyInfo( typeof( Spellbook ), 18, 10, 0xEFA, 0 ) );
|
|
|
|
if ( Core.AOS )
|
|
Add( new GenericBuyInfo( typeof( NecromancerSpellbook ), 115, 10, 0x2253, 0 ) );
|
|
|
|
Add( new GenericBuyInfo( typeof( ScribesPen ), 8, 10, 0xFBF, 0 ) );
|
|
|
|
Add( new GenericBuyInfo( typeof( BlankScroll ), 5, 20, 0x0E34, 0 ) );
|
|
|
|
Add( new GenericBuyInfo( "1041072", typeof( MagicWizardsHat ), 11, 10, 0x1718, Utility.RandomDyedHue() ) );
|
|
|
|
Add( new GenericBuyInfo( typeof( RecallRune ), 15, 10, 0x1F14, 0 ) );
|
|
|
|
Add( new GenericBuyInfo( typeof( RefreshPotion ), 15, 10, 0xF0B, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( AgilityPotion ), 15, 10, 0xF08, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( NightSightPotion ), 15, 10, 0xF06, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( LesserHealPotion ), 15, 10, 0xF0C, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( StrengthPotion ), 15, 10, 0xF09, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( LesserPoisonPotion ), 15, 10, 0xF0A, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( LesserCurePotion ), 15, 10, 0xF07, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( LesserExplosionPotion ), 21, 10, 0xF0D, 0 ) );
|
|
|
|
Add( new GenericBuyInfo( typeof( BlackPearl ), 5, 20, 0xF7A, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( Bloodmoss ), 5, 20, 0xF7B, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( Garlic ), 3, 20, 0xF84, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( Ginseng ), 3, 20, 0xF85, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( MandrakeRoot ), 3, 20, 0xF86, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( Nightshade ), 3, 20, 0xF88, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( SpidersSilk ), 3, 20, 0xF8D, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( SulfurousAsh ), 3, 20, 0xF8C, 0 ) );
|
|
|
|
if ( Core.AOS )
|
|
{
|
|
Add( new GenericBuyInfo( typeof( BatWing ), 3, 999, 0xF78, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( DaemonBlood ), 6, 999, 0xF7D, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( PigIron ), 5, 999, 0xF8A, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( NoxCrystal ), 6, 999, 0xF8E, 0 ) );
|
|
Add( new GenericBuyInfo( typeof( GraveDust ), 3, 999, 0xF8F, 0 ) );
|
|
}
|
|
|
|
Type[] types = Loot.RegularScrollTypes;
|
|
|
|
int circles = 3;
|
|
|
|
for ( int i = 0; i < circles*8 && i < types.Length; ++i )
|
|
{
|
|
int itemID = 0x1F2E + i;
|
|
|
|
if ( i == 6 )
|
|
itemID = 0x1F2D;
|
|
else if ( i > 6 )
|
|
--itemID;
|
|
|
|
Add( new GenericBuyInfo( types[i], 12 + ((i / 8) * 10), 20, itemID, 0 ) );
|
|
}
|
|
}
|
|
}
|
|
|
|
public class InternalSellInfo : GenericSellInfo
|
|
{
|
|
public InternalSellInfo()
|
|
{
|
|
Add( typeof( WizardsHat ), 15 );
|
|
Add( typeof( BlackPearl ), 3 );
|
|
Add( typeof( Bloodmoss ),4 );
|
|
Add( typeof( MandrakeRoot ), 2 );
|
|
Add( typeof( Garlic ), 2 );
|
|
Add( typeof( Ginseng ), 2 );
|
|
Add( typeof( Nightshade ), 2 );
|
|
Add( typeof( SpidersSilk ), 2 );
|
|
Add( typeof( SulfurousAsh ), 2 );
|
|
|
|
if ( Core.AOS )
|
|
{
|
|
Add( typeof( BatWing ), 1 );
|
|
Add( typeof( DaemonBlood ), 3 );
|
|
Add( typeof( PigIron ), 2 );
|
|
Add( typeof( NoxCrystal ), 3 );
|
|
Add( typeof( GraveDust ), 1 );
|
|
}
|
|
|
|
Add( typeof( RecallRune ), 13 );
|
|
Add( typeof( Spellbook ), 25 );
|
|
|
|
Type[] types = Loot.RegularScrollTypes;
|
|
|
|
for ( int i = 0; i < types.Length; ++i )
|
|
Add(types[i], i + 3 + (i / 4)); // This is NOT 100% OSI accurate. Two spells per circle will be off by 1gp, as OSI's math is slightly different.
|
|
|
|
|
|
if ( Core.SE )
|
|
{
|
|
Add( typeof( ExorcismScroll ), 1 );
|
|
Add( typeof( AnimateDeadScroll ), 26 );
|
|
Add( typeof( BloodOathScroll ), 26 );
|
|
Add( typeof( CorpseSkinScroll ), 26 );
|
|
Add( typeof( CurseWeaponScroll ), 26 );
|
|
Add( typeof( EvilOmenScroll ), 26 );
|
|
Add( typeof( PainSpikeScroll ), 26 );
|
|
Add( typeof( SummonFamiliarScroll ), 26 );
|
|
Add( typeof( HorrificBeastScroll ), 27 );
|
|
Add( typeof( MindRotScroll ), 39 );
|
|
Add( typeof( PoisonStrikeScroll ), 39 );
|
|
Add( typeof( WraithFormScroll ), 51 );
|
|
Add( typeof( LichFormScroll ), 64 );
|
|
Add( typeof( StrangleScroll ), 64 );
|
|
Add( typeof( WitherScroll ), 64 );
|
|
Add( typeof( VampiricEmbraceScroll ), 101 );
|
|
Add( typeof( VengefulSpiritScroll ), 114 );
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
} |