Jump to content

Veretos

Members
  • Posts

    50
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by Veretos

  1. What features does the patch add?

    None, just fixes a typo

    For which repository revision was the patch created?

    All, I believe this type is in all the branches.

    Who has been writing this patch?

    Me

    If you look in the Mangos configurations line: 956

    It says: Default: 0 (disible fake messages preventing)

    Should be: Default: 0 (disable fake messages preventing)

  2. Mangos Version: [10442]

    Custom Patches: Some

    SD2 Version: Latest

    Database Name and Version : YTDB latest

    When you summon the mini pets in the dalaran they don't appear. However if you summon them in the world like durotar they will work fine. You can see the effect if you walk through the Orgrimmar gate once you in the gate the mini pet will start falling down.

    This bug appeared after:

    [10431] Correcting issues with flying creatures falling to ground at death.

    NoFantasy (author)

    Edit: After Unabling Vmapheights the dalaran area works fine. Still problem with orgrimmar

  3. What bug does the patch fix? What features does the patch add?

    This topic is made to point out a typo in world.cpp

    For which repository revision was the patch created?

    [10422] Master (However I am sure that this typo is in all other branches)

    Is there a thread in the bug report section or at lighthouse? If yes, please add a link to the thread.

    No

    If you look in world.cpp on line 792 - 801 you will see that instances are spelled wrong. The value is spelled as: m_MaxVisibleDistanceInInctances should be: m_MaxVisibleDistanceInInstances

  4. Do you guys think that blizzard will reveal their next gen MMO during this years blizzcon? If yes what are your predictions on what it is going to be?

    Personally I think it's going to be something similar to WoW which means takes place around middle-age with sci-fi elements. However maybe they are not trying to make a WoW replacement and instead trying to get a different genre. Maybe and FPS-MMO (We all know how that ends up *caugh* Hellgate London *caugh*) then.

    Anyways would like to see what you guys think.

  5. Alright here is the code:

    
    #include "precompiled.h"
    
    
    bool GossipHello_titles_npc(Player* pPlayer, Creature* pCreature)
    {
    
       pPlayer->ADD_GOSSIP_ITEM( 5, "Rank 1: 100 HK"    , GOSSIP_SENDER_MAIN, 4010);
       pPlayer->ADD_GOSSIP_ITEM( 5, "Leave"    , GOSSIP_SENDER_MAIN, 4011);
       pPlayer->SEND_GOSSIP_MENU(DEFAULT_GOSSIP_MESSAGE,pCreature->GetGUID());
    
    return true;
    }
    
    void SendDefaultMenu_titles_npc(Player* pPlayer, Creature* pCreature, uint32 uiAction)
    {
    switch(uiAction)
    {
    case 4010://Advance Professions
    
       pPlayer->CLOSE_GOSSIP_MENU();
       //Scout first test
       if (pPlayer->GetHonorPoints() >= 100)
       {
           if (pPlayer->GetTeam() == ALLIANCE)
           {
           pPlayer->SetRank(PLAYER_TITLE_PRIVATE);
           if(CharTitlesEntry const* titleEntry = sCharTitlesStore.LookupEntry(1))
           pPlayer->SetTitle(titleEntry);
           pPlayer->CLOSE_GOSSIP_MENU();
           }
           else if (pPlayer->GetTeam() == HORDE)
           {
           pPlayer->SetRank(PLAYER_TITLE_SCOUT);
           pPlayer->SetRank(15);
           pCreature->MonsterWhisper("Your Rank has been advanced to scout!", pPlayer->GetGUID());
           pPlayer->CLOSE_GOSSIP_MENU();
           }
       }
       else
       {
           pPlayer->CLOSE_GOSSIP_MENU();
           pCreature->MonsterWhisper("You need atleast 100 HK to get a rank nub!", pPlayer->GetGUID());
       }
    
    break;
    
    case 4011://Close Menu
       pPlayer->CLOSE_GOSSIP_MENU();
    break;
    
    
    } //end of function
    }
    
    
    bool GossipSelect_titles_npc(Player* pPlayer, Creature* pCreature, uint32 uiSender, uint32 uiAction)
    {
       // Main menu
       if (uiSender == GOSSIP_SENDER_MAIN)
       SendDefaultMenu_titles_npc(pPlayer, pCreature, uiAction);
    
    return true;
    }
    
    void AddSC_titles_npc()
    {
       Script *newscript;
    
       newscript = new Script;
       newscript->Name = "titles_npc";
       newscript->pGossipHello = &GossipHello_titles_npc;
       newscript->pGossipSelect = &GossipSelect_titles_npc;
       newscript->RegisterSelf();
    }
    
    

    Compile error:

    Error    1    error LNK2001: unresolved external symbol "class DBCStorage<struct CharTitlesEntry> sCharTitlesStore" (?sCharTitlesStore@@3V?$DBCStorage@UCharTitlesEntry@@@@A)    honor_npc.obj    ScriptDev2
    Error    2    fatal error LNK1120: 1 unresolved externals    ..\\..\\..\\..\\bin\\win32_release/MaNGOSScript.dll    ScriptDev2
    

    I will probably need to create a custom function or something for this to work :(

  6. Hello, I was wondering if it's possible to add titles with a gossip NPC. What I mean is have like NPC with Option High Warlord etc.

    So here I tried to do Private however has erros:

            if (pPlayer->GetTeam() == ALLIANCE)
           {
           pPlayer->SetRank(PLAYER_TITLE_PRIVATE);
           if(CharTitlesEntry const* titleEntry = sCharTitlesStore.LookupEntry(1)) // Title id:1 is Private
           pPlayer->SetTitle(titleEntry);
           pPlayer->CLOSE_GOSSIP_MENU();
           }

    If anyone has done something like that and is willing to share code or a suggestion on how to implement something like that it would be highly appreciated.

  7. Mangos: 9047

    Scripts: SD2

    DB: UDB

    Revision: * * 9047 8afdc65b332f0db8114bbe041bb5d34cf57ddcfc
    Date 6:1:2010. Time 9:6 
    //=====================================================
    *** Hardware ***
    Processor: Intel(R) Core(TM)2 Quad CPU    Q9550  @ 2.83GHz
    Number Of Processors: 4
    Physical Memory: 4194303 KB (Available: 3439932 KB)
    Commit Charge Limit: 4194303 KB
    
    *** Operation System ***
    Windows Vista or Windows Server 2008 Server 4.0 Service Pack 2 (Version 6.0, Build 6002)
    
    //=====================================================
    Exception code: C0000005 ACCESS_VIOLATION
    Fault address:  004C0858 01:000BF858 C:\\Users\\Administrator\\Desktop\\Polarity.Realm.3.2\\mangosd.exe
    
    Registers:
    EAX:51283851
    EBX:F867D620
    ECX:000000DC
    EDX:51283851
    ESI:00000000
    EDI:00877E20
    CS:EIP:0023:004C0858
    SS:ESP:002B:07B99F9C  EBP:07B99FEC
    DS:002B  ES:002B  FS:0053  GS:002B
    Flags:00010202
    
    Call stack:
    Address   Frame     Function      SourceFile
    004C0858  00000000  stdext::_Hash<stdext::_Hmap_traits<unsigned __int64,Pet *,stdext::hash_compare<unsigned __int64,std::less<unsigned __int64> >,std::allocator<std::Pair<unsigned __int64 const ,Pet *> >,0> >::lower_bound+18
    004C0606  00000000  TypeUnorderedMapContainer<TypeList<Creature,TypeList<Pet,TypeList<Vehicle,TypeList<GameObject,TypeList<DynamicObject,TypeNull> > > > >,unsigned __int64>::find<Pet>+16
    004C00C9  00000000  TypeUnorderedMapContainer<TypeList<Creature,TypeList<Pet,TypeList<Vehicle,TypeList<GameObject,TypeList<DynamicObject,TypeNull> > > > >,unsigned __int64>::find<Pet,Pet,TypeList<Vehicle,TypeList<GameObject,TypeList<DynamicObject,TypeNull> > > >+19
    004A73B6  00000000  Map::GetPet+36
    004707E9  00000000  Unit::GetPet+69
    00636860  00000000  AreaAura::Update+740
    00461182  00000000  Unit::_UpdateSpells+152
    00456D4A  00000000  Unit::Update+4A
    004CB15C  00000000  Player::Update+EC
    0049D879  00000000  Map::Update+D9
    00611D98  00000000  MapManager::Update+128
    005F5E9B  00000000  World::Update+77B
    00430AFE  00000000  WorldRunnable::run+8E
    00877E39  00000000  ACE_Based::Thread::ThreadTask+19
    6CAC1B84  00000000  __WSAFDIsSet+FFFFFFFFFFFCCB4C
    72E33433  00000000  _endthreadex+44
    72E334C7  00000000  _endthreadex+D8
    7721ECCB  00000000  BaseThreadInitThunk+E
    777CD24D  00000000  RtlCreateUserProcess+8C
    777CD45F  00000000  RtlCreateProcessParameters+4E
    ========================
    Local Variables And Parameters
    
    Call stack:
    Address   Frame     Function      SourceFile
    004C0858  00000000  stdext::_Hash<stdext::_Hmap_traits<unsigned __int64,Pet *,stdext::hash_compare<unsigned __int64,std::less<unsigned __int64> >,std::allocator<std::Pair<unsigned __int64 const ,Pet *> >,0> >::lower_bound+18
       Local  <user defined> 'this'
       Local  <user defined> '_Keyval'
       Local  <user defined> '_Where'
    punting on symbol _Bucket
    
    004C0606  00000000  TypeUnorderedMapContainer<TypeList<Creature,TypeList<Pet,TypeList<Vehicle,TypeList<GameObject,TypeList<DynamicObject,TypeNull> > > > >,unsigned __int64>::find<Pet>+16
       Local  <user defined> 'elements'
    punting on symbol hdl
       Local  <user defined> '__formal'
       Local  <user defined> 'i'
    
    004C00C9  00000000  TypeUnorderedMapContainer<TypeList<Creature,TypeList<Pet,TypeList<Vehicle,TypeList<GameObject,TypeList<DynamicObject,TypeNull> > > > >,unsigned __int64>::find<Pet,Pet,TypeList<Vehicle,TypeList<GameObject,TypeList<DynamicObject,TypeNull> > > >+19
       Local  <user defined> 'elements'
    punting on symbol hdl
       Local  <user defined> '__formal'
       Local  <user defined> 'ret'
    
    004A73B6  00000000  Map::GetPet+36
       Local  <user defined> 'this'
    punting on symbol guid
    
    004707E9  00000000  Unit::GetPet+69
       Local  <user defined> 'pet'
    punting on symbol pet_guid
       Local  <user defined> 'this'
    
    00636860  00000000  AreaAura::Update+740
       Local  <user defined> 'pet'
       Local  <user defined> 'Target'
       Local  <user defined> 'itr'
       Local  <user defined> 'pGroup'
       Local  <user defined> 'targets'
       Local  <user defined> 'owner'
       Local  <user defined> 'caster'
       Local  <user defined> 'this'
    punting on symbol diff
    
    00461182  00000000  Unit::_UpdateSpells+152
       Local  <user defined> 'i_aura'
    punting on symbol i
       Local  <user defined> 'this'
    punting on symbol time
    
    00456D4A  00000000  Unit::Update+4A
       Local  <user defined> 'this'
    punting on symbol p_time
    
    004CB15C  00000000  Player::Update+EC
       Local  <user defined> 'this'
    punting on symbol p_time
    punting on symbol now
       Local  <user defined> 'pet'
    
    0049D879  00000000  Map::Update+D9
       Local  <user defined> 'this'
       Local  <user defined> 't_diff'
       Local  <user defined> 'updater'
       Local  <user defined> 'world_object_update'
       Local  <user defined> 'grid_object_update'
    
    00611D98  00000000  MapManager::Update+128
       Local  <user defined> 'iter'
       Local  <user defined> 'this'
    punting on symbol diff
    
    005F5E9B  00000000  World::Update+77B
    punting on symbol i
       Local  <user defined> 'this'
    punting on symbol diff
    
    00430AFE  00000000  WorldRunnable::run+8E
    punting on symbol diff
       Local  <user defined> 'this'
    punting on symbol realCurrTime
    punting on symbol realPrevTime
    punting on symbol prevSleepTime
    
    00877E39  00000000  ACE_Based::Thread::ThreadTask+19
    punting on symbol param
       Local  <user defined> '_task'
    
    6CAC1B84  00000000  __WSAFDIsSet+FFFFFFFFFFFCCB4C
    
    72E33433  00000000  _endthreadex+44
    
    72E334C7  00000000  _endthreadex+D8
    
    7721ECCB  00000000  BaseThreadInitThunk+E
    
    777CD24D  00000000  RtlCreateUserProcess+8C
    
    777CD45F  00000000  RtlCreateProcessParameters+4E
    
    ========================
    Global Variables
    
    

    This what appears in the console

    http://img301.imageshack.us/img301/8890/crashk.jpg

  8. What can I say logs?

    2009-12-21 08:23:19 Sending SMSG_SPELL_GO id=53408
    2009-12-21 08:23:19 Spell 53408 Effect0 : 77
    2009-12-21 08:23:19 Spell 20186 Effect0 : 6
    2009-12-21 08:23:19 Spell: Aura is: 4
    2009-12-21 08:23:19 Aura: construct Spellid : 20186, Aura : 4 Duration : 20000 Target : 6 Damage : 1
    2009-12-21 08:23:19 Aura 4 now is in use
    2009-12-21 08:23:19 Spell 20425 Effect0 : 3
    2009-12-21 08:23:19 Spell 20467 Effect0 : 58
    2009-12-21 08:23:19 Spell 20467 Effect1 : 31
    2009-12-21 08:23:19 ProcDamageAndSpell: casting spell 20057 (triggered by an attacker's aura of spell 20057)
    2009-12-21 08:23:19 Sending SMSG_SPELL_GO id=20053
    2009-12-21 08:23:19 Spell 20053 Effect0 : 6
    2009-12-21 08:23:19 Spell: Aura is: 79
    2009-12-21 08:23:19 Aura: construct Spellid : 20053, Aura : 79 Duration : 30000 Target : 1 Damage : 3
    2009-12-21 08:23:19 ProcDamageAndSpell: casting spell 20375 (triggered by an attacker's aura of spell 20375)
    2009-12-21 08:23:19 Spell 20424 Effect0 : 31
    2009-12-21 08:23:19 deal dmg:1030 to health:5118 
    2009-12-21 08:23:19 Spell 20424 Effect0 : 31
    2009-12-21 08:23:19 deal dmg:973 to health:808 
    2009-12-21 08:23:19 creature 286593 stopped attacking player 223616
    2009-12-21 08:23:19 WORLD: Send SMSG_THREAT_CLEAR Message
    2009-12-21 08:23:19 Aura 19 now is remove mode 4
    2009-12-21 08:23:19 Aura 138 now is remove mode 4
    2009-12-21 08:23:19 Aura 3 now is remove mode 4
    

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