Indeed. Shame someone tried to say they made it on a server I know. Unfortunatly it back-fired on him.. didn't even work and he cant fix it lol.
Printable View
Indeed. Shame someone tried to say they made it on a server I know. Unfortunatly it back-fired on him.. didn't even work and he cant fix it lol.
i put this in my latest repack on here......no sheild pops up......so. my question is......whats the fix for it?
No idea, didnt work for me either - when I tried to compile it had loads of errors.
somebody else made a variation of this but it roots the player and banishes them....but it still has errors.....and i know one of these works because if you go to exilewow.com their server has a working copy of it.....
Code:
#include"StdAfx.h"
#include"Setup.h"
#ifdef WIN32
#pragmawarning(disable:4305)
#endif
//_____Defines____\\
#define Banish 37527
#define Paralyze 25725
void OnEnterWorld(Player * pPlayer)
{
pPlayer->BroadcastMessage("|cFF006400[Login Protection]:|r |cFF00FF00 Welcome to the Server! You've been banished! you will remain invincible for 10 seconds but unable to act.|r");
pPlayer->CastSpell(pPlayer, Banish, true);
pPlayer->AddAura(Paralyze);
// Need to add something here to remove the aura, or just not use it and Root the player?
//pPlayer->Root();
//pPlayer->UnRoot();
}
void SetupProtectLogin(ScriptMgr * mgr)
{
mgr->register_hook(SERVER_HOOK_EVENT_ON_ENTER_WORLD, OnEnterWorld);
}
heres the errors that came with it....maybe somebody can fix them,
Code:
1>..\src\ExtraScripts\Enterworld.cpp(9) : warning C4010: single-line comment contains line-continuation character
1>..\src\ExtraScripts\Enterworld.cpp(16) : error C2065: 'Banish' : undeclared identifier
1>..\src\ExtraScripts\Enterworld.cpp(17) : error C2664: 'Unit::AddAura' : cannot convert parameter 1 from 'int' to 'Aura *'
nice !
Very nice, keep up with the good work.
Nice and simple.. goodjob
good work but paladins will get cooldown on their shield Z_z
Screw Paladins! Their too good anyway, well, I'm not on mine.. 80 Prot on Kilrogg :(
good work