Ejemplo n.º 1
0
        public override void DoAction(NWPlayer player, string pageName, int responseID)
        {
            switch (pageName)
            {
            case "MainPage":
            {
                switch (responseID)
                {
                case 1:         // Disable PVP Protection
                    HandleDisablePVPProtection();
                    break;

                case 2:         // Toggle Helmet Display
                    HelmetToggleService.ToggleHelmetDisplay(GetPC());
                    break;

                case 3:         // Toggle Dual Pistol Display
                    DualPistolService.ToggleDualPistolMode(GetPC());
                    break;

                case 4:         // Change Character Description
                    SwitchConversation("ChangeDescription");
                    break;
                }
                break;
            }
            }
        }
Ejemplo n.º 2
0
        public override void DoAction(NWPlayer player, string pageName, int responseID)
        {
            switch (pageName)
            {
            case "MainPage":
            {
                switch (responseID)
                {
                case 1:         // Disable PVP Protection
                    HandleDisablePVPProtection();
                    break;

                case 2:         // Toggle Helmet Display
                    HelmetToggleService.ToggleHelmetDisplay(GetPC());
                    break;
                }
                break;
            }
            }
        }