Jump to content

PvP Delay hooks

Closed 2.8.9

IIIaKa
IIIaKa

Posted (edited)

@nivex
Hi, I would like to clarify if I understand correctly that the hooks OnPlayerPvpDelayStart, OnPlayerPvpDelayReset and OnPlayerPvpDelayExpired are triggered when a player leaves a PvP raid base on a PvE server?
If so, I can't seem to find the parameter that indicates how much delay a player has.
It's also unclear why the following parameters are used:
0f, 0f, loadTime, ownerId, BaseName, spawnDateTime, despawnDateTime, GetLootAmountRemaining()

 

1HQw92J.png

Edited by IIIaKa
nivex

Posted

if you want to know how much delay a user has then you can use float GetPVPDelay(player.userID.Get()) and the maximum time is float GetMaxPVPDelay()

OnPlayerPvpDelayStart is triggered when they leave the event, or when they engage in PVP

OnPlayerPvpDelayReset is triggered the same way, but the time is reset instead of the above hook being called

OnPlayerPvpDelayExpired is called when it expires

the parameters 0, 0, ID are old parameters and I left them in so I would not break plugins using my hooks

loadTime is how long the raid took to setup

ownerId is who owns the event

BaseName is the copypaste file used

spawnDateTime is the time when the raid completed setup

despawnDateTime is the time when the raid will despawn

GetLootAmountRemaining() is how much loot is required to complete the raid (the same amount is shown in the game status UI)

nivex

Posted

Changed Status from Pending to Closed

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.