Reloac
BETA Tester
Since i couldn't get the right click teleporter to resurrect, i made a new spell that works as the actual teleporter would have, but ofcourse needed to make it give the player it when they logon, it works (nearly) as intended but has a problem with the spell, it casts it... but continues to cast it over and over on repeat, and wont stop, I don't know if I coded it incorrectly but..
Code:
#include "ScriptPCH.h"
class on_login : public PlayerScript
{
public:
on_login() : PlayerScript("on_login") {}
void OnLogin(Player* player)
{
player->SaveToDB(false);
player->CastSpell(player, 20707);
}
};
void AddSC_PlayerScripts()
{
new on_login();
}