Jump to content

Anti

Members
  • Posts

    81
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Anti

  1. I've fix but it look hacky.

    diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp
    index 2b9258a..60ce9b4 100644
    --- a/src/game/SpellAuras.cpp
    +++ b/src/game/SpellAuras.cpp
    @@ -2450,6 +2450,10 @@ void Aura::HandleAuraDummy(bool apply, bool Real)
                            if (m_target->GetTypeId() == TYPEID_PLAYER)
                                ((Player*)m_target)->removeSpell(63680);
                            return;
    +                    case 50141:
    +                        // Blood Oath
    +                        m_target->CastSpell(m_target, 50001, true);
    +                        return;
                    }
                    break;
                }
    diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp
    index fe317f7..e6374aa 100644
    --- a/src/game/SpellEffects.cpp
    +++ b/src/game/SpellEffects.cpp
    @@ -5871,6 +5871,16 @@ void Spell::EffectScriptEffect(SpellEffectIndex eff_idx)
                        m_caster->CastSpell(unitTarget, 72588, true);
                        return;
                    }
    +                case 50001:
    +                {
    +                    if (!unitTarget)
    +                        return;
    +                    
    +                    //uint32 unknown = m_spellInfo->CalculateSimpleValue(EFFECT_INDEX_0); // TODO: what it's means.
    +
    +                    m_caster->CastSpell(m_caster, 50016, true);
    +                    return;
    +                }
                }
                break;
            }
    
    

    It's works but I post the patch here only for example.

  2. If you'll read all manuals which are placed in this subforum and you would know how to get a newest source.

    But to help you I'm post here command to download the newest mangos source.

    You should has a git client. Call console in chosen dir and write next command:

    git clone git://github.com/mangos/mangos.git

  3. I had it reverted and working just before I've opened this thread :) If you revert [9606], most people will stop crying "ARGH! CLIENT FREEZE! WHAT THE FUCK?", and those who know may peacefully look for the solution using bug report.

    ---

    According to the reports, client does not expect having GUID every time there. There must be cases when it is zero. Note: this mostly affect aura triggered spells. May be aura triggered spells must have zero as a caster GUID?

    It's not arcane blast. It's this 'missile barrage available' effect causing hang. Something is amiss here.

    I did the same thing and my players are happy now.

  4. Read Vladimir' message and make a conclusion.

    For example:

    Player* currPlr = this;

    Player* oppont = duel->opponent; // i think here can be maked some optimization... duel->opponent can be replaced with victim or smth else.

    And than u can use it in your method:

    char* currPlrName = currPlr->GetName(); //but would be nice if you'll uses this->GetName();

    //And for a opponent the same operation;

    char* oppontName = oppont->GetName();

  5. i have this error

    ERROR:Map file './maps/0004331.map' is non-compatible version (outdated?). Please, create new using ad.exe program.

    ERROR:Correct *.map files not found in path './maps' or *.vmap/*vmdir files in './vmaps'. Please place *.map/*.vmap/*.vmdir files in appropriate directories or correct the DataDir value in the mangosd.conf file.

    but i have extract from 3.3.0a my map file with the extractor,

    what can i do ?

    If u're using newest core just re-extract dbc and maps. They was a little changed it 332.

    i am getting this error when starting up mangosd.exe

    any idea what that intells? i dont understand it.

    U has an old dbase (for 7662) but the core expecing for 9331. Update dbase to actualy state.

  6. I have tried to unmount npc at setDeathState here

    @@ -1225,10 +1225,13 @@ void Creature::setDeathState(DeathState s)
            if (canFly() && FallGround())
                return;
    
            if (!IsStopped())
                StopMoving();
    +
    +        if (IsMounted())
    +            Unmount();
        }
        Unit::setDeathState(s);
    
        if (s == JUST_DIED)
        {

    but after NPC respawning it doesn't visible. Only mount visible.

    http://filebeam.com/fade6f01a12057b8d100e7dd75dcc8f3.jpg

    There are some kind of visual bug but i haven't any ideas.

    PS After grid reload a NPC became visible.

    added the bug is actualy only for force respawning.

  7. Why create different strings per SEC level, 1 should suffice with a simple %s that gets replaced by a string for the appropriate level.

    oh... i see.

    If I has correctly understood that more correct way:

    bool ChatHandler::HandleAnnounceCommand(const char* args)
    {
       if(!*args)
           return false;
       char* secLevel;
    
       switch(m_session->GetSecurity()) {
         case SEC_MODERATOR:
           secLevel = "Moder";
           break;
         case SEC_GAMEMASTER:
           secLevel = "GM";
           break;
         case SEC_ADMINISTRATOR:
           secLevel = "Admin";
           break;
         default:
           return false;
       }
    
       sWorld.SendWorldText(LANG_SYSTEMMESSAGE, secLevel, m_session->GetPlayerName(), args);
       return true;
    }
    
    
    |cffff0000[system Message] by|c1f40af20 <%s> %s|cffffff00: %s|r

    added

    But it wrong way, cause there can't be implemented any localization for these 3 words ("GM" etc)... This isn't really big bug but anyway.

    added

    This work as well on 9254.

    Download as file

    commit 50f8fceb47de834d0130e206d41a38c384d20a55
    Author: AntiDiavol <[email protected]>
    Date:   Thu Jan 28 14:54:38 2010 +0200
    
       Rewrite announce command.
    
    diff --git a/sql/mangos.sql b/sql/mangos.sql
    index 19c9631..a64298a 100644
    --- a/sql/mangos.sql
    +++ b/sql/mangos.sql
    @@ -2903,7 +2903,7 @@ LOCK TABLES `mangos_string` WRITE;
    INSERT INTO `mangos_string` VALUES
    (1,'You should select a character or a creature.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    (2,'You should select a creature.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    -(3,'|cffff0000[system Message]: %s|r',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    +(3,'|cffff0000[system Message]|c1f40af20 <%s> %s|cffffff00: %s|r',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    (4,'|cffff0000[Event Message]: %s|r',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    (5,'There is no help for that command',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    (6,'There is no such command',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
    diff --git a/sql/updates/Not_in_master_branch_9254_01_mangos_string.sql b/sql/updates/Not_in_master_branch_9254_01_mangos_string.sql
    new file mode 100644
    index 0000000..967c2cf
    --- /dev/null
    +++ b/sql/updates/Not_in_master_branch_9254_01_mangos_string.sql
    @@ -0,0 +1,3 @@
    +DELETE FROM `mangos_string` WHERE entry = 3;
    +INSERT INTO `mangos_string` VALUES
    +(3,'|cffff0000[system Message]|c1f40af20 <%s> %s|cffffff00: %s|r',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
    \\ No newline at end of file
    diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
    index 29516d5..752551e 100644
    --- a/src/game/Level1.cpp
    +++ b/src/game/Level1.cpp
    @@ -127,8 +127,23 @@ bool ChatHandler::HandleAnnounceCommand(const char* args)
    {
        if(!*args)
            return false;
    -
    -    sWorld.SendWorldText(LANG_SYSTEMMESSAGE,args);
    +    char* secLevel;
    +
    +    switch(m_session->GetSecurity()) {
    +      case SEC_MODERATOR:
    +        secLevel = "Moder";
    +        break;
    +      case SEC_GAMEMASTER:
    +        secLevel = "GM";
    +        break;
    +      case SEC_ADMINISTRATOR:
    +        secLevel = "Admin";
    +        break;
    +      default:
    +        return false;
    +    }
    +
    +    sWorld.SendWorldText(LANG_SYSTEMMESSAGE, secLevel, m_session->GetPlayerName(), args);
        return true;
    } 
    

    19070fe68a4469504a1e647d91c6ab78.jpg

  8. Ok, I'm give to you a basic idea.

    bool ChatHandler::HandleAnnounceCommand(const char* args)
    {
       if(!*args)
           return false;
    
       switch(m_session->GetSecurity()) {
         case SEC_MODERATOR:
           strid = LANG_SYSTEMMESSAGE_MODERATOR;
           break;
         case SEC_GAMEMASTER:
           strid = LANG_SYSTEMMESSAGE_GAMEMASTER;
           break;
         case SEC_ADMINISTRATOR:
           strid = LANG_SYSTEMMESSAGE_ADMINISTRATOR;
           break;
         default:
           return false;
       }
    
       sWorld.SendWorldText(strid, m_session->GetPlayerName(), args);
       return true;
    }
    
    -- this is your new string for a base.
    |cffff0000[system Message] by|c1f40af20 <Mod>[%s]|cffffff00: %s|r

    And the new command will send next msg:

    [system Message] by <Mod> Test: Some text.

    But you have to define new announce's strings (LANG_SYSTEMMESSAGE_MODERATOR & etc) and delete old one from the project and the base.

  9. I have the same problem, this only happen in Salvaged Demolisher with spells Hurl Pyrite Barrel and Hurl Boulder

    As Numnut, i have updated to 9071, I think it may be a commit between 9062 and 9071.

    Most likely it had fixed by changes from 9062 commit.

    Does anyone have vehicle.patch for this repo http://github.com/insider42/mangos/commits/

    Download Wojta's vehicle repo to your local repo. And merge it. Fix a conflicts by yourself or post if here, we'll help you with it.

  10. Ok I'll tryit again thank you!

    Ok Anti I've given the sql's another try and now I get the green arrow but can't use the vehicle, this only happens in Ulduar on 10man, 25 man is unpopulated for some reason....

    On my serv i able to successfully uses all vehicles witch situated in ulduar.

    May be something happened when you had creating your core. Try to rebuild it.

    And try to delete all WoW caches.

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