Forum > Miscellaneous

[QUESTION] [Trinitycore]Flying Mounts Spell Requirements

<< < (4/4)

Ascathos:

--- Quote from: "Nupper" ---
--- Quote from: "schlumpf" ---You really are horrible at answering questions.
--- End quote ---
I have known that for some time.

Changes
Player.CPP

--- Code: ---{
    // continent checked in SpellInfo::CheckLocation at cast and area update
    uint32 v_map = GetVirtualMapForMapAndZone(mapid, zone);
v_map != 571 || HasSpell(54197); // 54197 = Cold Weather Flying
return v_map != 869 || HasSpell(93333); // 93333 = Flight Master License
}
--- End code ---

--- End quote ---
This gets me all cringy. Does this even compile ? How the fuck does it compile ?
Also, still most misleading name ever.


--- Code: ---{
    // continent checked in SpellInfo::CheckLocation at cast and area update
    uint32 v_map = GetVirtualMapForMapAndZone(mapid, zone);
    return (v_map != 571 || HasSpell(54197)) || (v_map != 869 || HasSpell(93333));
}

--- End code ---

Nupper:

--- Quote from: "Ascathos" ---
--- Quote from: "Nupper" ---
--- Quote from: "schlumpf" ---You really are horrible at answering questions.
--- End quote ---
I have known that for some time.

Changes
Player.CPP

--- Code: ---{
    // continent checked in SpellInfo::CheckLocation at cast and area update
    uint32 v_map = GetVirtualMapForMapAndZone(mapid, zone);
v_map != 571 || HasSpell(54197); // 54197 = Cold Weather Flying
return v_map != 869 || HasSpell(93333); // 93333 = Flight Master License
}
--- End code ---

--- End quote ---
This gets me all cringy. Does this even compile ? How the fuck does it compile ?
Also, still most misleading name ever.


--- Code: ---{
    // continent checked in SpellInfo::CheckLocation at cast and area update
    uint32 v_map = GetVirtualMapForMapAndZone(mapid, zone);
    return (v_map != 571 || HasSpell(54197)) || (v_map != 869 || HasSpell(93333));
}

--- End code ---

--- End quote ---

I My fault?

Nupper:
Strange it still Mounts and Flys without the spell.

Ascathos:
The function name was declared at some point by someone. And it's still misleading as fuck.

You could try

[code]return (v_map == 571 && HasSpell(54197)) || (v_map == 869 && HasSpell(93333));[/code9

Nupper:

--- Quote from: "Ascathos" ---The function name was declared at some point by someone. And it's still misleading as fuck.

You could try

[code]return (v_map == 571 && HasSpell(54197)) || (v_map == 869 && HasSpell(93333));[/code9
--- End quote ---

it somewhat works now...you try and fly it dismounts and when you have the ability it flys...just not message saying you cannot fly.

Navigation

[0] Message Index

[*] Previous page

Go to full version