This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] [Trinitycore]Flying Mounts Spell Requirements  (Read 4000 times)

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] [Trinitycore]Flying Mounts Spell Requirements
« Reply #15 on: September 08, 2016, 08:16:21 pm »
Quote from: "Nupper"
Quote from: "schlumpf"
You really are horrible at answering questions.
I have known that for some time.

Changes
Player.CPP
Code: [Select]
{
    // 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
}
This gets me all cringy. Does this even compile ? How the fuck does it compile ?
Also, still most misleading name ever.

Code: [Select]
{
    // 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));
}
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Nupper

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 339
    • View Profile
Re: [QUESTION] [Trinitycore]Flying Mounts Spell Requirements
« Reply #16 on: September 08, 2016, 09:18:11 pm »
Quote from: "Ascathos"
Quote from: "Nupper"
Quote from: "schlumpf"
You really are horrible at answering questions.
I have known that for some time.

Changes
Player.CPP
Code: [Select]
{
    // 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
}
This gets me all cringy. Does this even compile ? How the fuck does it compile ?
Also, still most misleading name ever.

Code: [Select]
{
    // 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));
}

I My fault?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Nupper

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 339
    • View Profile
Re: [QUESTION] [Trinitycore]Flying Mounts Spell Requirements
« Reply #17 on: September 08, 2016, 09:26:37 pm »
Strange it still Mounts and Flys without the spell.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] [Trinitycore]Flying Mounts Spell Requirements
« Reply #18 on: September 08, 2016, 09:50:02 pm »
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Nupper

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 339
    • View Profile
Re: [QUESTION] [Trinitycore]Flying Mounts Spell Requirements
« Reply #19 on: September 08, 2016, 10:02:11 pm »
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

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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »