private static void EventSink_AnimateRequest(AnimateRequestEventArgs e) { Mobile from = e.Mobile; int action; bool useNew = Core.SA; switch (e.Action) { case "bow": action = useNew ? 0 : 32; break; case "salute": action = useNew ? 1 : 33; break; default: return; } if (from.Alive && !from.Mounted && (from.Body.IsHuman || from.Body.IsGargoyle)) { if (useNew) { from.Animate(AnimationType.Emote, action); } else { from.Animate(action, 5, 1, true, false, 0); } } }
private static void EventSink_AnimateRequest(AnimateRequestEventArgs e) { Mobile from = e.Mobile; int action; switch (e.Action) { case "bow": action = 0; break; case "salute": action = 1; break; default: return; } if (from.Alive && !from.Mounted && (from.Body.IsHuman || from.Body.IsGargoyle)) { from.Animate(AnimationType.Emote, action); } }
private static void EventSink_AnimateRequest(AnimateRequestEventArgs e) { Mobile from = e.Mobile; int action; switch (e.Action) { case "bow": action = 32; break; case "salute": action = 33; break; default: return; } if (from.Alive && !from.Mounted && from.Body.IsHuman) { from.Animate(action, 5, 1, true, false, 0); } }
private static void EventSink_AnimateRequest(AnimateRequestEventArgs e) { Mobile from = e.Mobile; int action; switch (e.Action) { case "bow": action = 32; break; case "salute": action = 33; break; default: return; } if (from.Alive && !from.Mounted) { if (from.Body.IsHuman) { from.Animate(action, 5, 1, true, false, 0); } else { if (from.Body.IsAnimal) { if (action == 32) { from.Animate(3, 3, 1, true, false, 1); } else if (action == 33) { from.Animate(10, 5, 1, true, false, 1); } } else if (from.Body.IsMonster) { if (action == 32) { from.Animate(11, 5, 1, true, false, 1); } else if (action == 33) { from.Animate(18, 5, 1, true, false, 1); } } } } }
private static void EventSink_AnimateRequest( AnimateRequestEventArgs e ) { Mobile from = e.Mobile; int action; switch ( e.Action ) { case "bow": action = 32; break; case "salute": action = 33; break; default: return; } if ( from.Alive && !from.Mounted && from.Body.IsHuman ) from.Animate( action, 5, 1, true, false, 0 ); }
private static void EventSink_AnimateRequest(AnimateRequestEventArgs e) { Mobile from = e.Mobile; int action; int delay = 0; switch (e.Action) { case "bow": { if (!from.Mounted) { action = 32; } else { action = 28; delay = 1; } break; } case "salute": { if (!from.Mounted) { action = 33; } else { action = 28; delay = 1; } break; } default: return; } from.Animate(action, 5, 1, true, false, delay); }
private static void EventSink_AnimateRequest( AnimateRequestEventArgs e ) { Mobile from = e.Mobile; int action; int delay = 0; switch ( e.Action ) { case "bow": { if (!from.Mounted) action = 32; else { action = 28; delay = 1; } break; } case "salute": { if (!from.Mounted) action = 33; else { action = 28; delay = 1; } break; } default: return; } from.Animate(action, 5, 1, true, false, delay); }
public void InvokeAnimateRequest( AnimateRequestEventArgs e ) { if ( AnimateRequest != null ) AnimateRequest( e ); }