MaplePreferencesLogic

MapleStory settings and variable values are provided as properties.

# Properties

[{"index":"string DeathSound (Sync)","0":"This sound plays when dying."}]

[{"index":"string JumpSound (Sync)","0":"This sound plays when jumping."}]

[{"index":"string WeaponBowSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Bow type sound effect."}]

[{"index":"string WeaponCaneSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Cane type sound effect."}]

[{"index":"string WeaponCannonSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Cannon type sound effect."}]

[{"index":"string WeaponCrossBowSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a CrossBow type sound effect."}]

[{"index":"string WeaponDualBowSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a DualBow type sound effect."}]

[{"index":"string WeaponGunSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Gun type sound effect."}]

[{"index":"string WeaponKnuckleSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Knuckle type sound effect."}]

[{"index":"string WeaponMaceSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Mace type sound effect."}]

[{"index":"string WeaponPoleArmSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a PoleArm type sound effect."}]

[{"index":"string WeaponSpearSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Spear type sound effect."}]

[{"index":"string WeaponSwordBSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a Sword B type sound effect. One-handed swords fall into this type."}]

[{"index":"string WeaponSwordKSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a SwordK type sound effect. Katanas fall into this type."}]

[{"index":"string WeaponSwordLSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a SwordL type sound effect. Two-handed swords fall into this type."}]

[{"index":"string WeaponSwordSSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a SwordS type sound effect. Daggers fall into this type."}]

[{"index":"string WeaponSwordZBSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a SwordZB type sound effect. Swords fall into this type."}]

[{"index":"string WeaponSwordZLSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a SwordZL type sound effect. Tachis fall into this type."}]

[{"index":"string WeaponTGloveSound (Sync)","0":"This sound plays when melee attacking with a weapon connected to a TGlove type sound effect. ESP Limiter and Magic Gauntlets fall into this type."}]

# Methods

##### inherited from Logic:

[{"index":"EventHandlerBase ConnectEvent(string key, IScriptFunction eventHandler)","0":"Links events. When a key-type event occurs in this service, a handler is notified. The handler receives event parameters."}]

[{"index":"EventHandlerBase ConnectEvent(Type eventType, IScriptFunction eventHandler)","0":"Links events. This service notifies a handler when an eventType event occurs. The handler receives event parameters."}]

[{"index":"boolean DisconnectEvent(string key, EventHandlerBase eventHandler)","0":"Disconnects the key-type event and its handler."}]

[{"index":"boolean DisconnectEvent(Type eventType, EventHandlerBase eventHandler)","0":"Disconnects the eventType event from its handler."}]

[{"index":"boolean IsClient()","0":"Returns whether the current execution environment is a client or not."}]

[{"index":"boolean IsServer()","0":"Returns whether the current execution environment is a server or not."}]

[{"index":"void SendEvent(EventType sendEvent)","0":"Generates an event."}]

# Examples

Changes the audio clip when the player jumps and when they die. Removes attack sound effects for all weapons.
    
    
    @Component
    script SoundSettingModifier extends Component
        @ExecSpace("ClientOnly")
        method void OnBeginPlay()
        -- Change player's jump and death sound
        _MaplePreferencesLogic.JumpSound = "000000"
        _MaplePreferencesLogic.DeathSound = "000000"
    
        -- disable all weapon sound
        _MaplePreferencesLogic.WeaponBowSound = "";
        _MaplePreferencesLogic.WeaponCaneSound = "";
        _MaplePreferencesLogic.WeaponCannonSound = "";
        _MaplePreferencesLogic.WeaponCrossBowSound = "";
        _MaplePreferencesLogic.WeaponDualBowSound = "";
        _MaplePreferencesLogic.WeaponGunSound = "";
        _MaplePreferencesLogic.WeaponKnuckleSound = "";
        _MaplePreferencesLogic.WeaponMaceSound = "";
        _MaplePreferencesLogic.WeaponPoleArmSound = "";
        _MaplePreferencesLogic.WeaponSpearSound = "";
        _MaplePreferencesLogic.WeaponSwordBSound = "";
        _MaplePreferencesLogic.WeaponSwordKSound = "";
        _MaplePreferencesLogic.WeaponSwordLSound= "";
        _MaplePreferencesLogic.WeaponSwordSSound = "";
        _MaplePreferencesLogic.WeaponSwordZBSound = "";
        _MaplePreferencesLogic.WeaponSwordZLSound = "";
        _MaplePreferencesLogic.WeaponTGloveSound = "";
        end
    end