Jump to content
View in the app

A better way to browse. Learn more.

Horizon Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

So the ESTATE system in Aegis (official servers) is what is responsible for modifying your status changes in combat or during game play in the world. I've noticed that they simply push a status modification into a vector and iterate over it to calculate the total status values per second. While it is effective, it was badly coded I had noticed. In Horizon I have rectified this system and made it super effective in code.

Screenshot_2024-09-01_104213.png?ex=66fb

In Aegis the code is called when status effect is set, and when the reset is complete. Similarly in Horizon have implemented periodic changes to statuses so simply that it can be coded in one line of code -

current_hp()->add_periodic_change(
        s_attribute_change_values(hp_regeneration()->total(), 0, 0, hp_minmax, [player, this]() {
                player->get_session()->clif()->notify_recovery(ZC_NOTIFY_RECOVERY_HP, this->hp_regeneration()->total());
        }), 
        0,
        player->map()->container()->game_config().get_natural_heal_hp_interval(), 
        "natural_hp_regen");

The above line induces a natural status recovery for a total of hp_regeneration value. For a total of hp_minmax. And updates the client. For an infinite duration and with an interval of `get_natural_heal_hp_interval`. The status is saved as "natural_hp_regen" and works internall with statuses in Horizon.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.