RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Updated 1/4/04: Cleric Spells v2.0

Status
Not open for further replies.

Cyberspud

Wanderer
kriggle said:
I am no longer able to access my bank box or have any NPCs respond to my talking

Are you using an Admin account? Make sure you aren't hidden...I don't think NPC's will respond to your speech if you are hidden.
 

Cyberspud

Wanderer
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.
 

kriggle

Wanderer
Thank you, I'll have to see what I can do with that. I really didn't want necros and theives being able to have the skill necessary to cast the cleric spells that were in there :).
 
Status
Not open for further replies.
Top