- 26
- 2016
- 1
Im releasing some of my server's scripts because it is paused atm due to a very low number of testers & developer non-consistency in terms of work flow, and I've worked for 1 year+ on this project, payed money to finance the server alone, without getting anything in return, so in the end i realized it wasn't really worth it. Anyway back to topic guys!
PS: I am the owner. I am intentionally sharing these scripts to the public for obvious reasons I suppose.
Add to Path: .../Player.cpp
Enjoy free The Forgotten Crusade scripts. Hope this brings some joy or use to whoever comes across it!
Thank you,
Kind Regards,
Nerc
PS: I am the owner. I am intentionally sharing these scripts to the public for obvious reasons I suppose.
Add to Path: .../Player.cpp
PHP:
#include "DatabaseEnv.h"
#include <algorithm>
class ClearRespawnTimer : public WorldScript
{
public:
ClearRespawnTimer() : WorldScript("ClearRespawnTimer") { }
void OnStartup() override
{
Map* map = sMapMgr->CreateBaseMap(560);
std::vector<RespawnInfo*> data;
map->GetRespawnInfo(data, SPAWN_TYPEMASK_ALL, 0);
if (!data.empty())
{
for (RespawnInfo* info : data)
map->ForceRespawn(info->type, info->spawnId);
}
}
};
void AddSC_PlayerScripts()
{
new ClearRespawnTimer();
}
Enjoy free The Forgotten Crusade scripts. Hope this brings some joy or use to whoever comes across it!
Thank you,
Kind Regards,
Nerc