Jump to content

Forusim

Members
  • Posts

    190
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Forusim

  1. #    LogFilter_AchievementUpdates
    #    LogFilter_CreatureMoves
    #    LogFilter_TransportMoves
    #    LogFilter_VisibilityChanges
    #    LogFilter_Weather
    #    LogFilter_DbStrictedCheck
    #        Log filters ([color="Red"]active by default[/color])
    [color="Red"]#        Default: 1 - not include with any log level
    #                 0 - include in log if log level permit[/color]
    #
    #    LogFilter_PeriodicAffects
    #    LogFilter_PlayerMoves
    #    LogFilter_SQLText
    #    LogFilter_AIAndMovegens
    #    LogFilter_PlayerStats
    #    LogFilter_Damage
    #    LogFilter_Combat
    #    LogFilter_SpellCast
    #        Log filters ([color="Red"]disabled by default, mostly debug only output affected cases[/color])
    [color="Red"]#        Default: 0 - include in log if log level permit
    #                 1 - not include with any log level[/color]
    

    LogFilter_AchievementUpdates = 1
    LogFilter_CreatureMoves = 1
    LogFilter_TransportMoves = 1
    LogFilter_VisibilityChanges = 1
    LogFilter_Weather = 1
    LogFilter_DbStrictedCheck = 1
    LogFilter_PeriodicAffects = 0
    LogFilter_PlayerMoves = 0
    LogFilter_SQLText = 0
    LogFilter_AIAndMovegens = 0
    LogFilter_PlayerStats = 0
    LogFilter_Damage = 0
    LogFilter_Combat = 0
    LogFilter_SpellCast = 0
    

    The red marked description looks twisted. I havent changed the default values.

  2. Trying to compile on 10357 gives these errors:

    2>Kompilieren...
    2>SpellAuras.cpp
    2>..\\..\\src\\game\\SpellAuras.cpp(2631) : error C2065: 'm_target': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2631) : error C2227: Links von "->getClass" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
    2>        Typ ist ''unknown-type''
    2>..\\..\\src\\game\\SpellAuras.cpp(2634) : error C2039: 'AuraMap': Ist kein Element von 'Unit'
    2>        d:\\development\\mangos testserver\\mangos\\mangos 10357\\src\\game\\Unit.h(1106): Siehe Deklaration von 'Unit'
    2>..\\..\\src\\game\\SpellAuras.cpp(2634) : error C2065: 'AuraMap': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2634) : error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'auras'
    2>..\\..\\src\\game\\SpellAuras.cpp(2634) : error C2065: 'auras': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2634) : error C2065: 'm_target': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2634) : error C2227: Links von "->GetAuras" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
    2>        Typ ist ''unknown-type''
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C3083: "AuraMap": Das Symbol links neben "::" muss ein Typ sein.
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2039: 'iterator': Ist kein Element von 'Unit'
    2>        d:\\development\\mangos testserver\\mangos\\mangos 10357\\src\\game\\Unit.h(1106): Siehe Deklaration von 'Unit'
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2065: 'iterator': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2146: Syntaxfehler: Fehlendes ';' vor Bezeichner 'itr'
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2065: 'itr': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2065: 'auras': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2228: Links von ".begin" muss sich eine Klasse/Struktur/Union befinden.
    2>        Typ ist ''unknown-type''
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2065: 'itr': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2065: 'auras': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2228: Links von ".end" muss sich eine Klasse/Struktur/Union befinden.
    2>        Typ ist ''unknown-type''
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2146: Syntaxfehler: Fehlendes ')' vor Bezeichner 'itr'
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2059: Syntaxfehler: ';'
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2065: 'itr': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2635) : error C2059: Syntaxfehler: ')'
    2>..\\..\\src\\game\\SpellAuras.cpp(2636) : error C2143: Syntaxfehler: Es fehlt ';' vor '{'
    2>..\\..\\src\\game\\SpellAuras.cpp(2637) : error C2065: 'itr': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2637) : error C2227: Links von "->second" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
    2>        Typ ist ''unknown-type''
    2>..\\..\\src\\game\\SpellAuras.cpp(2637) : error C2227: Links von "->GetSpellProto" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
    2>..\\..\\src\\game\\SpellAuras.cpp(2642) : error C2065: 'm_target': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2642) : error C2227: Links von "->getVictim" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
    2>        Typ ist ''unknown-type''
    2>..\\..\\src\\game\\SpellAuras.cpp(2643) : error C2065: 'm_target': nichtdeklarierter Bezeichner
    2>..\\..\\src\\game\\SpellAuras.cpp(2643) : error C2227: Links von "->CastSpell" muss sich ein Zeiger auf Klassen-/Struktur-/Union-/generischen Typ befinden.
    2>        Typ ist ''unknown-type''
    

    Any idea how to fix?

  3. Mangos Version: 10072

    Custom Patches: Broadcaster

    SD2 Version: 1714

    Database Name and Version : UDB 391

    How it SHOULD work: Once a minute Cheat Death gives you a chance to survive a deadly hit and will reduce all dmg taken for 3 seconds.

    How it DOES work: If you die after a Procc of Cheat Death, this will not proccing again, until you relog. If you survive after Procc of Cheat Death everything is fine.

    Here is the code, i cant find the source of the bug:

    Unit.ccp
    
    case SPELLFAMILY_ROGUE:
               {
                   // Cheat Death (make less prio with Guardian Spirit case)
                   if (!preventDeathSpell && spellProto->SpellIconID == 2109 &&
                       GetTypeId()==TYPEID_PLAYER &&           // Only players
                       !((Player*)this)->HasSpellCooldown(31231) &&
                                                               // Only if no cooldown
                       roll_chance_i((*i)->GetModifier()->m_amount))
                                                               // Only if roll
                   {
                       preventDeathSpell = (*i)->GetSpellProto();
                       continue;
                   }
                   break;
    

    Unit.ccp
    
               // Cheat Death
               case SPELLFAMILY_ROGUE:
               {
                   // Cheat Death
                   if (preventDeathSpell->SpellIconID == 2109)
                   {
                       CastSpell(this,31231,true);
                       ((Player*)this)->AddSpellCooldown(31231,0,time(NULL)+60);
                       // with health > 10% lost health until health==10%, in other case no losses
                       uint32 health10 = GetMaxHealth()/10;
                       RemainingDamage = GetHealth() > health10 ? GetHealth() - health10 : 0;
                   }
                   break;
               }
    

    Maybe you have an idea. Thanks!

×
×
  • 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