Jump to content

The_Game_Master

Members
  • Posts

    330
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by The_Game_Master

  1. Revision: 9110

    Bug reference: None that i can remember.

    How it whould work: It should not beneficiate from spell power bonus.

    How does it work: It beneficiates from spell power bonus dooing the priest invincible.

    DELETE FROM spell_bonus_data WHERE entry = 56131;
    INSERT INTO spell_bonus_data (entry, direct_bonus, dot_bonus, ap_bonus, comments) VALUES
    ('56131', '0', '0', '0', 'Item - Glyph of Dispel Magic');

  2. Try this.

    Author: Wowka32

    From 4acaf39c91ebd0443a8dce97e330a25b0ce14f3f Mon Sep 17 00:00:00 2001
    From: Wowka321 <[email protected]>
    Date: Sun, 27 Dec 2009 00:10:27 +0200
    Subject: [PATCH] Attemt to fix instance reset
    
    ---
    src/game/InstanceSaveMgr.cpp |   15 ++++++++++-----
    1 files changed, 10 insertions(+), 5 deletions(-)
    
    diff --git a/src/game/InstanceSaveMgr.cpp b/src/game/InstanceSaveMgr.cpp
    index 54f71b2..a18aeda 100644
    --- a/src/game/InstanceSaveMgr.cpp
    +++ b/src/game/InstanceSaveMgr.cpp
    @@ -499,10 +499,12 @@ void InstanceSaveManager::LoadResetTimes()
            // schedule the global reset/warning
            uint8 type = 1;
            static int tim[4] = {3600, 900, 300, 60};
    -        for(; type < 4; type++)
    +        for(type; type < 4; type++)
                if(t - tim[type-1] > now)
                    break;
    
    +        ScheduleReset(true, t - tim[type-1], InstResetEvent(type, mapid, difficulty, -1));
    +
            for(ResetTimeMapDiffInstances::const_iterator in_itr = mapDiffResetInstances.lower_bound(map_diff_pair);
                in_itr != mapDiffResetInstances.upper_bound(map_diff_pair); ++in_itr)
            {
    @@ -607,7 +609,8 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b
        if (!mapEntry->Instanceable())
            return;
    
    -    uint64 now = (uint64)time(NULL);
    +    time_t now = time(NULL);
    +    time_t today = (now / DAY) * DAY;
    
        if (!warn)
        {
    @@ -636,10 +639,12 @@ void InstanceSaveManager::_ResetOrWarnAll(uint32 mapid, Difficulty difficulty, b
    
            // calculate the next reset time
            uint32 diff = sWorld.getConfig(CONFIG_INSTANCE_RESET_TIME_HOUR) * HOUR;
    -        uint32 period = mapDiff->resetTime * DAY;
    -        uint64 next_reset = ((now + timeLeft + MINUTE) / DAY * DAY) + period + diff;
    +        uint32 period = (mapDiff->resetTime / DAY * sWorld.getRate(RATE_INSTANCE_RESET_TIME)) * DAY;
    +        time_t next_reset = today + period + diff;
            // update it in the DB
    -        CharacterDatabase.PExecute("UPDATE instance_reset SET resettime = '"UI64FMTD"' WHERE mapid = '%d' AND difficulty = '%d'", next_reset, mapid, difficulty);
    +        CharacterDatabase.PExecute("UPDATE instance_reset SET resettime = '"UI64FMTD"' WHERE mapid = '%d' AND difficulty = '%d'", (uint64)next_reset, mapid, difficulty);
    +        SetResetTimeFor(mapid,difficulty,(uint64)next_reset);
    +        ScheduleReset(true, next_reset-3600, InstResetEvent(1, mapid, difficulty, -1));
        }
    
        // note: this isn't fast but it's meant to be executed very rarely
    -- 
    1.6.0.2.1172.ga5ed0

  3. Revision: 8920

    Bug: Benecifiates from spell power making the priest invincible.

    How it should work: This Glyph should not beneficiate from spell power not to say from attack power. :)

    Bug report: None.

    DELETE FROM spell_bonus_data WHERE entry = 56160;
    INSERT INTO spell_bonus_data  (entry, direct_bonus, dot_bonus, ap_bonus, comments) VALUES
    ('56160', 0, 0, 0, 'Item - Glyph of Power Word: Shield')

  4. I was sure i replyed here a couple of days ago, must have lagged tough.

    Anyway, implementing SpellShapeshiftForm.dbc for druid forms is the proper way to do it. Adding a hack for it as a temp solution it's just stupid.

    I've seen that yad02 have made some research on this.

    Entry Point : SpellShapeshiftForm.dbc (sorry for french names...)

    5,3,,,"Forme d’ours",,,,,,,,,,,,,,0xFF01FE,728,1,496,2500,2281,0,,,0,0,0,0,0,0,0,0x0,

    In : CreatureDisplayInfo.dbc

    Alliance Display : 2281 ==>

    2281,213,3022,0,1.0,255,"DruidBearSkinRed","","","",1,0,0,0,0x0,0,

    All 213 are DruidBear (I suppose Alliance for all - not tested)==>

    23950,213,0,0,2.0,255,"DruidBearSkin","","","",1,0,0,0,0x0,0,

    29413,213,0,0,1.0,255,"DruidBearSkinPurple","","","",1,0,0,0,0x0,0,

    29414,213,0,0,1.0,255,"DruidBearSkinBlack","","","",1,0,0,0,0x0,0,

    29415,213,0,0,1.0,255,"DruidBearSkinBlue","","","",1,0,0,0,0x0,0,

    29416,213,0,0,1.0,255,"DruidBearSkinWhite","","","",1,0,0,0,0x0,0,

    29417,213,0,0,1.0,255,"DruidBearSkinRed","","","",1,0,0,0,0x0,0,

    29438,213,0,0,1.0,255,"DruidBearSkinBlack","","","",1,0,0,0,0x0,0,

    29440,213,0,0,1.0,255,"DruidBearSkinPurple","","","",1,0,0,0,0x0,0,

    count(DruidTaurenBearSkin) == 9

    Sound id (DBCStructure.h) another record : 3022 ==>

    2289,214,3022,0,1.20000004768,255,"DruidTaurenBearSkinBrown","","","",1,0,0,0,0x0,0,

    All 214 are DruidBear (I suppose Horde : "Tauren" for all - not tested)==>

    29418,214,0,0,1.20000004768,255,"DruidTaurenBearSkinBlack","","","",1,0,0,0,0x0,0,

    29419,214,0,0,1.20000004768,255,"DruidTaurenBearSkinSilver","","","",1,0,0,0,0x0,0,

    29420,214,0,0,1.20000004768,255,"DruidTaurenBearSkinYellow","","","",1,0,0,0,0x0,0,

    29421,214,0,0,1.20000004768,255,"DruidTaurenBearSkinWhite","","","",1,0,0,0,0x0,0,

    count(DruidTaurenBearSkin) == 5

    Not tested for all Druid ShapeshiftForm... seams to be exactly the same thing as this for cat form

    EDIT1 :

    Interesting topic here : http://forums.worldofwarcraft.com/thread.html?topicId=17631614423&sid=1

    EDIT2 :

    I think thenecromancer issue is the best issue... (just verify displayid in case...)

    "hardcode" displayid (Horde & Alliance) is faster than to find displayid from dbc with "my" idea to find both

    (use displayid_A to find displayid_H from SpellShapeshiftForm.dbc to CreatureDisplayInfo.dbc)

    In any case I don't see how bear and cat skin are defined. No way in DBC... (in my opinion)

    The interesting thing is that i didn't find the above values in SpellShapeshiftForm.dbc. Yad02, please pm me your dbc editor if you can.

    If anybody want's to work on this, here's a lead.

    struct SpellShapeshiftEntry
    {
       uint32 ID;                                              // 0
       //uint32 buttonPosition;                                // 1 unused
       //char*  Name[16];                                      // 2-17 unused
       //uint32 NameFlags;                                     // 18 unused
       uint32 flags1;                                          // 19
       int32  creatureType;                                    // 20 <=0 humanoid, other normal creature types
       //uint32 unk1;                                          // 21 unused
       uint32 attackSpeed;                                     // 22
       uint32 modelID;                                       // 23 unused, alliance modelid (where horde case?)
       //uint32 unk2;                                          // 24 unused
       //uint32 unk3;                                          // 25 unused
       //uint32 unk4;                                          // 26 unused
       //uint32 unk5;                                          // 27 unused
       //uint32 unk6;                                          // 28 unused
       //uint32 unk7;                                          // 29 unused
       //uint32 unk8;                                          // 30 unused
       //uint32 unk9;                                          // 31 unused
       //uint32 unk10;                                         // 32 unused
       //uint32 unk11;                                         // 33 unused
       //uint32 unk12;                                         // 34 unused
    };

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