| CODE |
| AddButton( 135 + (half * 160), 140, 2103, 2104, 2 + (index * 6) + 3, GumpButtonType.Reply, 0 ); AddHtmlLocalized( 150 + (half * 160), 136, 110, 20, 1062722, false, false ); // Recall AddButton( 135 + (half * 160), 158, 2103, 2104, 2 + (index * 6) + 4, GumpButtonType.Reply, 0 ); AddHtmlLocalized( 150 + (half * 160), 154, 110, 20, 1062723, false, false ); // Gate Travel AddButton( 135 + (half * 160), 176, 2103, 2104, 2 + (index * 6) + 5, GumpButtonType.Reply, 0 ); AddHtmlLocalized( 150 + (half * 160), 172, 110, 20, 1062724, false, false ); // Sacred Journey AddButton( 135 + (half * 160), 194, 2103, 2104, 2 + (index * 6) + 6, GumpButtonType.Reply, 0 ); AddHtml( 150 + (half * 160), 190, 110, 20, "Devil Travel", false, false ); // Devil Travel |
| CODE |
| case 3: // Recall { if ( HasSpell( from, 31 ) ) { int xLong = 0, yLat = 0; int xMins = 0, yMins = 0; bool xEast = false, ySouth = false; if ( Sextant.Format( e.Location, e.Map, ref xLong, ref yLat, ref xMins, ref yMins, ref xEast, ref ySouth ) ) { string location = String.Format( "{0}° {1}'{2}, {3}° {4}'{5}", yLat, yMins, ySouth ? "S" : "N", xLong, xMins, xEast ? "E" : "W" ); from.SendMessage( location ); } new RecallSpell( from, null, e, null ).Cast(); } else { from.SendLocalizedMessage( 500015 ); // You do not have that spell! } break; } case 4: // Gate { if ( HasSpell( from, 51 ) ) { int xLong = 0, yLat = 0; int xMins = 0, yMins = 0; bool xEast = false, ySouth = false; if ( Sextant.Format( e.Location, e.Map, ref xLong, ref yLat, ref xMins, ref yMins, ref xEast, ref ySouth ) ) { string location = String.Format( "{0}° {1}'{2}, {3}° {4}'{5}", yLat, yMins, ySouth ? "S" : "N", xLong, xMins, xEast ? "E" : "W" ); from.SendMessage( location ); } new GateTravelSpell( from, null, e ).Cast(); } else { from.SendLocalizedMessage( 500015 ); // You do not have that spell! } break; } case 5: // Sacred Journey { if ( Core.AOS ) { if ( HasSpell( from, 209 ) ) { int xLong = 0, yLat = 0; int xMins = 0, yMins = 0; bool xEast = false, ySouth = false; if ( Sextant.Format( e.Location, e.Map, ref xLong, ref yLat, ref xMins, ref yMins, ref xEast, ref ySouth ) ) { string location = String.Format( "{0}° {1}'{2}, {3}° {4}'{5}", yLat, yMins, ySouth ? "S" : "N", xLong, xMins, xEast ? "E" : "W" ); from.SendMessage( location ); } new SacredJourneySpell( from, null, e, null ).Cast(); } else { from.SendLocalizedMessage( 500015 ); // You do not have that spell! } } break; } case 6: // Devil Travel { if ( Core.AOS ) { if ( HasSpell( from, 309 ) ) { int xLong = 0, yLat = 0; int xMins = 0, yMins = 0; bool xEast = false, ySouth = false; if ( Sextant.Format( e.Location, e.Map, ref xLong, ref yLat, ref xMins, ref yMins, ref xEast, ref ySouth ) ) { string location = String.Format( "{0}° {1}'{2}, {3}° {4}'{5}", yLat, yMins, ySouth ? "S" : "N", xLong, xMins, xEast ? "E" : "W" ); from.SendMessage( location ); } new DevilTravelSpell( from, null, e, null ).Cast(); } else { from.SendLocalizedMessage( 500015 ); // You do not have that spell! } } break; } |