Jump to content
  • Templates and event notification configuration

    Templates and event notification configuration

    1. Event notification configuration

    The configuration for event timers and notifications necessitates direct editing of the events.js file found in the web part directory at /Templates/Defaults/js/.

    Note that a more user-friendly configuration will be introduced in future updates.

    Open the events.js file and locate following block:

    var events = [
        ["Boss Battle", ["06:30", "15:00", "21:30"],"Boss Battle", "boss"],
        ["BloodCastle", ["00:05", "01:05", "02:05", "03:05", "04:05", "05:05", "06:05", "07:05", "08:05", "09:05", "10:05", "11:05", "12:05", "13:05", "15:05", "16:05", "17:05", "18:05", "19:05", "20:05", "21:05", "22:05", "23:05",],"BloodCastle", "event"],
        ["Devil Square", ["00:40", "01:40", "02:40", "03:40", "04:40", "05:40", "06:40", "07:40", "08:40", "09:40", "10:40", "11:40", "12:40", "13:40", "15:40", "16:40", "17:40", "18:40", "19:40", "20:40", "21:40", "22:40", "23:40"],"Devil Square", "event"],
        ["Chaos Castle", ["00:25", "01:25", "02:25", "03:25", "04:25", "05:25", "06:25", "07:25", "08:25", "09:25", "10:25", "11:25", "12:25", "13:25", "15:25", "16:25", "17:25", "18:25", "19:25", "20:25", "21:25", "22:25", "23:25"],"Chaos Castle", "event"],      
        ["Mirror", ["00:55", "01:55", "02:55", "03:55", "04:55", "05:55", "06:55", "07:55", "08:55", "09:55", "10:55", "11:55", "12:55", "13:55", "14:55","15:55", "16:55", "17:55", "18:55", "19:55", "20:55", "21:55", "22:55", "23:55"],"Mirror", "event"],
        ["Illusion", ["00:50", "01:50", "02:50", "03:50", "04:50", "05:50", "06:50", "07:50", "08:50", "09:50", "10:50", "11:50", "12:50", "13:50", "15:50", "16:50", "17:50", "18:50", "19:50", "20:50", "21:50", "22:50", "23:50"],"Illusion", "event"],
        ["Golden Attack", ["01:45", "05:30", "06:15", "15:00", "16:45", "18:15", "21:15"],"Golden Attack", "inv"],
        ["Red Dragon", ["00:10", "01:10", "02:10", "03:10", "04:10", "05:10", "06:10", "07:10", "08:10", "09:10", "10:10", "11:10", "12:10", "13:10", "14:10", "15:10", "16:10", "17:10", "18:10", "19:10", "20:10", "21:10", "22:10", "23:10",],"Red Dragon", "inv"],
        ["Medusa", ["20:00"],"Medusa", "boss"],
        ["Raffle", ["10:00", "14:00", "19:00"],"Raffle", "Event"],
        ["Last Man Standing", ["03:00", "06:00", "09:00", "12:00", "15:00", "18:00", "21:00"],"Last Man Standing", "Event"],
        ["Hide And Seek", ["04:00", "11:00", "14:00", "20:00"],"Hide And Seek", "Event"],
        ["Arca Battle", [3], ["20:00"],"Arca Battle", "event"], // Tuesday
        ["Castle Siege", [7], ["16:00"],"Castle Siege", "event"], // Saturday
        ["Scramble", ["00:35", "01:35", "02:35", "03:35", "04:35", "05:35", "06:35", "07:35", "08:35", "09:35", "10:35", "11:35", "12:35", "13:35", "15:35", "16:35", "17:35", "18:35", "19:35", "20:35", "21:35", "22:35", "23:35"], "Scramble", "event"],
        ["World War",["20:50"],"World War", "Event"],
    
        ["Egg Event", ["06:00", "07:15", "16:00", "19:15", "21:45", " 23:45"],"Egg Event", "inv"],
        ["Deep Gorgon", ["01:15", "04:15", "08:15", "10:15", "13:15", "17:45", "20:50"],"Deep Gorgon", "inv"],
        ["Zaikan", ["01:00", "04:45", "08:30", "09:45", "12:15", "13:30", "17:15", "18:30", "19:45", "21:05", "22:20", "23:30"],"Zaikan", "inv"],
        ["Hydra", ["00:45", "03:15", "04:30", "05:45", "09:30", "10:45", "12:00", "14:30", "17:00", "22:00", "23:20"],"Hydra", "inv"],
        ["Balrog", ["00:30", "03:00", "06:45", "08:00", "09:15", "10:30", "13:00", "14:15", "15:30", "19:20", "20:30", "21:50", "23:00"],"Balrog", "inv"],
        ["Gorgon", ["02:30", "03:45", "07:30", "11:15", "13:45", "16:15", "18:15", " 21:20", "23:15"],"Gorgon", "inv"],
        ["Ice Queen", ["00:15", "01:30", "02:45", "04:00", "07:45", "09:00", "11:30", "12:45", "15:15", "19:00", "20:15", "21:35", "22:45"],"Ice Queen", "inv"],
    	
        ["World Boss", [1], ["14:00"],"World Boss", "boss"], // Sunday
        ["World Boss", [2], ["09:00"],"World Boss", "boss"], // Monday
        ["World Boss", [3], ["15:00"],"World Boss", "boss"], // Tuesday
        ["World Boss", [4], ["18:00"],"World Boss", "boss"], // Wednesday
        ["World Boss", [5], ["09:00"],"World Boss", "boss"], // Thursday
        ["World Boss", [6], ["15:00"],"World Boss", "boss"], // Friday
        ["World Boss", [7], ["18:00"],"World Boss", "boss"] // Saturday
    ]

    The actual block content may vary from what is shown above due to potential updates to the application.

    The system can identify two types of entries, consisting of 4 and 5 elements.

    Four elements example

    ["Boss Battle", ["06:30", "15:00", "21:30"],"Boss Battle", "boss"],
    1. "Boss Battle" - Display Name
    2. ["06:30", "15:00", "21:30"] - Array of event schedule
    3. "Boss Battle" - Event notification name
    4. "boss" - type of event

    Five elements example

    ["World Boss", [1], ["14:00"],"World Boss", "boss"],
    1. "World Boss" - Display Name
    2. [1] - Day of week
    3. ["14:00"] - Array of event schedule
    4. "World Boss" - Event notification name
    5. "boss" - type of event, used for filters

    The last argument, event type allows to define following values

    • event
    • inv
    • boss

    The day of week argument defines days as follows

    • [1] - Sunday
    • [2] - Monday
    • [3] - Tuesday
    • [4] - Wednesday
    • [5] - Friday
    • [6] - Saturday

    The events.js file includes several hard-coded texts that may need to be modified directly within the file if necessary. These texts may be moved to a dedicated settings file in future updates.

    • starts in 5 minutes!
    • Started!
    • "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"

    2. Templates and customizations

    Templates system can be found within the dashboard systems. Custom modifications to default template, same as custom templates are beyond support scope of the product.

    You are permitted to modify existing HTML, CSS, and JS files (some JS files are obfuscated), as well as create your own custom templates. However, it's important to note that when creating a custom template, you must retain certain internally used names.

     

    Was it helpful?

    Wizzy
     Share

     Share



×
×
  • Create New...

Important Information


We use technologies, such as cookies, to customize content and advertising, to provide social media features and to analyse traffic to the site. We also share information about your use of our site with our trusted social media, advertising and analytics partners. See more about cookies and our Privacy Policy.