CODE |
public override void OnEnter( Mobile m ) { if ( m is PlayerMobile && ((PlayerMobile)m).Young ) m.SendGump( new YoungDungeonWarning() ); if(m is PlayerMobile && m.SkillsTotal < 4660) m.MoveToWorld(location, map); } |
QUOTE (ArteGordon @ Feb 17 2006, 05:09 PM) | ||
then modify your dungeonregion.cs like
where you have to specify the location and map you want to move them to. You may also have to override the OnMoveInto method for the region, but I think that OnEnter might be enough. |
CODE |
public override void OnEnter( Mobile m ) { if ( m is PlayerMobile && ((PlayerMobile)m).Young ) m.SendGump( new YoungDungeonWarning() ); if(m is PlayerMobile && m.SkillsTotal < 4660) m.MoveToWorld(1301,1080,0, Map.Felucca); } |
CODE |
if(m is PlayerMobile && m.SkillsTotal < 4660) m.MoveToWorld(new Point3D(1301,1080,0), m.Map); |