[DiscordArchive] where did you notice that ?
[DiscordArchive] where did you notice that ?
Archived author: adm • Posted: 2024-02-09T00:33:05.955000+00:00
Original source
well, above is the original code, which works on it's own
Archived author: adm • Posted: 2024-02-09T00:33:26.138000+00:00
Original source
I'm just trying to add some features to it
Archived author: Cyanide • Posted: 2024-02-09T00:34:48.565000+00:00
Original source
what's the best way to block/ban certain IPs? i have a guy in north macedonia sending me malformed packets 600 times an hour every hour every day
Archived author: adm • Posted: 2024-02-09T00:35:03.963000+00:00
Original source
this is a bigger chunk, starting from the beginning of the block:
```php
AutoBalanceInflectionPointSettings getInflectionPointSettings (InstanceMap* instanceMap, bool isBoss = false)
{
uint32 maxNumberOfPlayers = instanceMap->GetMaxPlayers();
uint32 mapId = instanceMap->GetEntry()->MapID;
float inflectionValue, curveFloor, curveCeiling;
inflectionValue = (float)maxNumberOfPlayers;
//
// Base Inflection Point
//
if (instanceMap->IsHeroic())
{
if ((maxNumberOfPlayers <= 5) && (player->getClass() == CLASS_PRIEST || player->getClass() == CLASS_MAGE || player->getClass() == CLASS_WARLOCK))
{
inflectionValue *= InflectionPointHeroicCloth;
curveFloor = InflectionPointHeroicCurveFloorCloth;
curveCeiling = InflectionPointHeroicCurveCeilingCloth;
}
```