Jump to content

Recommended Posts

Posted

Is it possible to attach a script to a player? like doing SetClientControl(pPlayer, false) and then controlling it with a PlayerAI like you do with a creature. Would be nice for implementing mind-control spells like the ones used in boss encounters.

Posted

I'd like to know too...

I think that darkstalker is talking about a mob mind controlling a player not viceversa

For http://www.wowhead.com/spell=28410 I had to add:

-     &Aura::HandleNULL,                                      //177 SPELL_AURA_AOE_CHARM (22 spells)
+     &Aura::HandleModCharm,                                  //177 SPELL_AURA_AOE_CHARM (22 spells)

This way the player loses control since it becomes charmed but movement and casting should be handled but some sort of AI with own threat list and movement generators.

As workaround it's still possible to make cast players on a boss SD2 scripts and using SetConfused(true) makes them moving random so they are things that the core already can do.

p.s.

for http://www.wowhead.com/spell=55479 on Spell::SetTargetMap

+                 case 55479:                                 // Force Obedience
                     unMaxTargets = 1;
                     break;

should do the trick :)

Posted

Ok now i control 1 recruit, but when other player try to control the 2nd one, it will take over mine.

Is there a way to check, if recruit is already controlled and then take the non controlled one?

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use