Register for your free account! | Forgot your password?

You last visited: Today at 07:00

  • Please register to post and access all features, it's quick, easy and FREE!

 

[Script] Camouflage

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 15
Received Thanks: 0
Exclamation [Script] Camouflage

Guten Tag,

Beim Jäger gibt es den Spell Camouflage.
Den hab ich halbwegs gefixt.

Aber Problem besteht noch dass wenn die nutzzeit abgelaufen ist, man dann noch immer unsichtbar ist. Die sollte sich nach ende des Spells aufheben..

Ich hab schon alles versucht aber hab es nicht hinbekommen....

Wäre nett wenn mir jemand helfen könnte.

Jetztiger Script

P.S Pet sollte auch unsichtbar werden, doch leider klappt das nicht!

Code:
void AuraEffect::HandleModCamouflage (AuraApplication const *aurApp, uint8 mode, bool apply) const
{

    if (!(mode & AURA_EFFECT_HANDLE_SEND_FOR_CLIENT_MASK))
        return;

    Unit *target = aurApp->GetTarget();
	Pet* pet = target->CreateTamedPetFrom(HUNTER_PET, 0);

	AuraRemoveMode removeMode = aurApp->GetRemoveMode();

    if (apply)
    {
        target->CastSpell(target, 80326, true);
		pet->HasAura(80326);

    }

	if (!(mode && target->isCamouflaged()))
	{
		target->RemoveAura(80326);
	}

	else if (!(target->isCamouflaged()))
    // apply & remove

    switch (GetId())
     {
        target->RemoveAura(80326);
        target->RemoveAura(80325);
        // Hunter's Camouflage
        case 51755:
        {
            if (apply)
                target->CastSpell(target,80326,true);
            else
                if (Unit* owner = target->GetCharmerOrOwner())
                    owner->RemoveAura(51755);
                target->RemoveAura(80326);
                target->RemoveAura(80325);
            break;
        }
     }

	

	if (aurApp->GetRemoveMode() == AURA_REMOVE_BY_DEATH)
	{
		target->RemoveAura(80326);
	}
	
	if (!(target->isCamouflaged()))
    {
        target->RemoveAura(80326);
        target->RemoveAura(80325);
    }

	if (target->isAttackingPlayer())
	{
		target->RemoveAura(80326);
		target->RemoveAura(80325);
	}
		else
	{
		target->CastSpell(target, 80326, true);
		pet->HasAura(80326);
	}

	if (target->isInCombat())
	{
		target->RemoveAura(80326);
		target->RemoveAura(80325);
	}
	else
	{
		target->CastSpell(target, 80326, true);
		pet->HasAura(80326);
	}

	target->UpdateObjectVisibility();

}



nivek123 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
camouflage unlimited
Hello, I found a little bug to have unlimited free camouflage. 1) Install an extra camouflage on your vaiseau. 2) Use the latest camouflage. 3)...
10 Replies - DarkOrbit
Problem with iBot and camouflage.
What happens is that I have an account on the server of Mexico 1 and the program until I was buying Uridium camouflage. This problem started since...
4 Replies - DarkOrbit
Camouflage fast
Camouflage fast when you have no chip, no need to browse the auction house or shop. Firefox with Greasemonkey only. In this link. Full Darkorbit
4 Replies - DarkOrbit
Coole Camouflage Kleidung
Schaut da mal rein...für LAN Partys oder Outdoorevents sind die Klamotten spitze... http://img35.imageshack.us/img35/4466/outdoorban3ss.jpg Und...
9 Replies - Off Topic
MoD v Camouflage
Master of Deception v Camouflage lohnt es sich beides auszubauen oder sind das verschwendete Punkte ?
14 Replies - WoW Ask the Experts



All times are GMT +1. The time now is 07:00.


Powered by vBulletin®
Copyright ©2000 - 2016, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy
Copyright ©2016 elitepvpers All Rights Reserved.