public bool Execute(IMaplePortal portal, MapleClient c) { var script = GetPortalScript(portal.ScriptName, c); if (script != null && !c.Player.BlockedPortals.Contains(portal.ScriptName)) { return(script.Enter(new PortalPlayerInteraction(c, portal))); } return(false); }
public PortalPlayerInteraction(MapleClient c, IMaplePortal portal) : base(c) { Portal = portal; }