ServUO Version
Publish Unknown
Ultima Expansion
Time Of Legends
I'm trying to set a Blacksmith skill requirement to use this lever once you have the oil. The script compiles just fine, it just doesn't require the skill. Can someone help please? Here's the OnDoubleClick part of my script:

C#:
         public override void OnDoubleClick( Mobile p )
        { 
                 if (p.Skills[SkillName.Blacksmith].Value <= 110 )
                 {
                   p.SendMessage(33, "Your Blacksmith skill ain't high enough to manipulate this lever!");                    
                    }        
                    
            Item a = p.Backpack.FindItemByType( typeof(PlatinumMiningAccessCoin) );
            if ( a != null )
            {    
            
                a.Delete();
                
                p.Say( "Did I bring my Platinum Ore Pick?" );                
                p.SendMessage( "You apply the oil and pull the lever extracting a Platinum Ore Stone!" );
                p.PlaySound(0x240);    //pouring                
                p.PlaySound(0x3E8);  
                    
                            PlatinumOreStone pos = new PlatinumOreStone();
                            pos.Map = this.Map;
                            pos.Location = p.Location;            
                
            }  

            
            else
            {
                p.SendMessage( "the lever appears to be stuck... apply some oil!" );
            }
        }
 
Back