Beispiel #1
0
 public static void InvokeVirtueMacroUsed(VirtueMacroEventArgs e)
 {
     if (VirtueMacroUsed != null)
     {
         VirtueMacroUsed(e);
     }
 }
Beispiel #2
0
 public void InvokeVirtueMacroUsed( VirtueMacroEventArgs e )
 {
     if ( VirtueMacroUsed != null )
         VirtueMacroUsed( e );
 }
Beispiel #3
0
        private static void EventSink_VirtueMacroUsed( VirtueMacroEventArgs e )
        {
            int virtueID = 0;

            switch ( e.VirtueID )
            {
                case 1: // Honor
                    virtueID = 107; break;
                case 2:	// Sacrifice
                    virtueID = 110; break;
                case 3: // Valor
                    virtueID = 112; break;
                case 4:	// Compassion;
                    virtueID = 105; break;
                case 5: // Honesty
                    virtueID = 0; break;
                case 6:	// Humility
                    virtueID = 0; break;
                case 7: // Justice
                    virtueID = 109; break;
                case 8: // Spirituality
                    virtueID = 0; break;
            }

            EventSink_VirtueItemRequest( new VirtueItemRequestEventArgs( e.Mobile, e.Mobile, virtueID ) );
        }