[DiscordArchive] well what is the purpose of this?
[DiscordArchive] well what is the purpose of this?
Archived author: Anchy • Posted: 2022-12-21T20:30:09.590000+00:00
Original source
Threat is constantly changing
Archived author: Rymercyble • Posted: 2022-12-21T20:30:13.860000+00:00
Original source
yes
Archived author: Anchy • Posted: 2022-12-21T20:30:48.728000+00:00
Original source
also you can tie the script to specific npcs in the database but that does not sound ideal for this use case
Archived author: Anchy • Posted: 2022-12-21T20:31:05.600000+00:00
Original source
as you would have to change every entry and potentially override scripts
Archived author: Anchy • Posted: 2022-12-21T20:31:43.436000+00:00
Original source
however if you are using a unitscript it should just work
Archived author: Anchy • Posted: 2022-12-21T20:32:08.602000+00:00
Original source
if you want to tie it to open world you can check if the player is inside of an instance
Archived author: Rymercyble • Posted: 2022-12-21T20:32:47.124000+00:00
Original source
hmm thats good idea
Archived author: Anchy • Posted: 2022-12-21T20:33:18.932000+00:00
Original source
```cpp
bool DSPlayerScript::IsInsideDungeonRaid(Player* player)
{
Map* map = player->GetMap();
if (!map->IsDungeon() && !map->IsRaid())
{
return false;
}
return true;
}```
Archived author: Rymercyble • Posted: 2022-12-21T20:37:34.984000+00:00
Original source
but still....in ideal world i would like to be able to trigger hook only when npc is first time attacked by player X....store count of players attacking and on new player joining combat scale hp of npc
Archived author: Rymercyble • Posted: 2022-12-21T20:38:14.418000+00:00
Original source
that would be by far most optimal for performance