kriggle said:
how to set the skill checks it requires when bringing up the Cleric Spell Gump
I put my checks in the
speech.cs that came with the spells in Speech_Event:
[code:1]
if ( e.Speech.ToLower().IndexOf( "i pray to the heavens" ) != -1 )
{
if ( !e.Mobile.CheckAlive() )
{
e.Mobile.SendMessage( "You cannot pray while dead." );
}
else if ( e.Mobile.Skills[SkillName.Necromancy].Value > 0 )
{
e.Mobile.SendMessage( "Your knowledge of the dark arts hinders your prayers." );
}
else if ( e.Mobile.Karma < 0 )
{
e.Mobile.SendMessage( "Turn from your evil ways and your prayers shall be answered." );
}
else if ( e.Mobile.Karma < 5000 )
{
e.Mobile.SendMessage( "Your lack of faith hinders your prayers." );
}
else if ( e.Mobile.Karma < 10000 )
{
e.Mobile.SendMessage( "Your prayers lack true conviction." );
}
else
{
e.Mobile.CloseGump( typeof ( ClericGump ) );
e.Mobile.SendGump( new ClericGump( e.Mobile ) );
}
}
[/code:1]
I added a few checks and changed the wording a bit. Take a look at speech.cs, you will see where to make the changes.