Likes: 0
Results 11 to 20 of 20
Thread: [C++] Shield on Login
-
21-09-09, 11:43 AM #11
Register to remove this adIndeed. 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.
› See More: [C++] Shield on Login
-
22-09-09, 09:30 PM #12
- Rep Power
- 0
- Reputation
- 52
i put this in my latest repack on here......no sheild pops up......so. my question is......whats the fix for it?
-
23-09-09, 10:51 AM #13
No idea, didnt work for me either - when I tried to compile it had loads of errors.
-
24-09-09, 12:13 PM #14
- Rep Power
- 0
- Reputation
- 52
error
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 *'
-
02-10-09, 04:29 PM #15
-
04-10-09, 02:25 AM #16
-
12-01-10, 06:09 AM #17
Nice and simple.. goodjob
-
12-01-10, 09:55 AM #18
good work but paladins will get cooldown on their shield Z_z
No touching please.
-
20-01-10, 02:42 PM #19
Screw Paladins! Their too good anyway, well, I'm not on mine.. 80 Prot on Kilrogg
-
21-01-10, 06:16 PM #20
Register to remove this adgood work