Power Hour API

Module Power Hour API 1.0.0.3

No permission to download
Requirements
Vita-Nex: Core 4.0.0.0
PHActive.pngPHConfirm.pngPHMessage.pngPHNotify.pngPHReset.png

Power Hour API
Exposes an advanced API that provides a complete Power Hour solution.

With this module, you can easily integrate Power Hour checks into your code with one simple line! The rest of the hard work is done by the module.

Can be easily integrated into Skill and Stat gain checks, Loot drops, or anywhere you wish to give the user a bonus when they have an active session.

Sessions are tracked per-character and can be activated at will.
The duration of a session can be configured in the module options.

Sessions have a cool-down period before they can be activated again, once they have finished.
The cool-down duration can be configured in the module options.

Power Hour fully supports the Vita-Nex: Core TimeBoost service and allows players to reduce their remaining cool-down time using any Time Boosts they have available.
TimeBoost integration can be enabled or disabled in the module options.

Users can be Notified upon login if they are eligible to start a new Power Hour session.
This option can be enabled or disabled in the module options.

Options:
GoldLootFactor
is a double type representing the percentage to increase corpse-bound gold.
A value of 0 disables the feature.
A negative value will decrease the gold amount.
The default value is 0.
To increase Power Hour Gold loot by 25%, set GoldLootFactor to 0.25

SkillGainChance is a double type representing the chance to perform an additional Skill check.
A value of 0 disables the feature.
A negative value disables the feature.
The default value is 0.
To give a 25% chance to perform an extra skill gain check, set SkillGainChance to 0.25

Constructable Items:
PowerHourResetToken

Commands:
(Players) To start or check a Power Hour session use:
[PowerHour or [PH

(Staff) To view the properties of a user's Power Hour session use:
[PowerHourProps or [PHProps

(Staff) To globally reset the Power Hour sessions of all users use:
[PowerHourReset or [PHReset

Usage:
Configure this module using the [VNC command.

Code:
Code:
var hasPowerHour = VitaNex.Modules.PowerHour.PowerHour.HasPowerHour( mobile );

if( hasPowerHour )
{
    // They have an active session, apply bonuses.
}

Notes:
This module requires additional development in order to implement fully.
Power Hour provides features for increasing Gold loot and Skill gains, but can be expanded to support almost anything you can think of!
  • Like
Reactions: Omnes and sircapted
Author
Voxpire
Downloads
133
Views
3,090
First release
Last update
Rating
5.00 star(s) 2 ratings

More resources from Voxpire

Latest Updates

  1. Updated Support

    Minor update to compile-time directives for futureproofing.
  2. 1.0.0.3

    Fixed an issue with Time Boosts integration and viewing state properties.
  3. 1.0.0.2

    Fixed a potential issue with stack overflow exception when setting the skill gain bonus chance...
  4. 1.0.0.1

    Implemented handlers for modifying Gold loot on corpses and skill gain checks. These features...
Back