Jump to content

Forusim

Members
  • Posts

    190
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by Forusim

  1. Agree all dragons have this strange behaviour.
  2. Works perfect! Devs would you please review this one? Check UDB Forums for my Onkill reputation inserts.
  3. What´s wrong with this patch, that devs won´t review? Thank you!
  4. Hello, At the moment faction reputation requirement for items are set in item_template RequiredReputationFaction and RequiredReputationRank, which will be called when use or buy item. But bind to account items like http://www.wowhead.com/item=44159#sold-by should only have reputation requierement when buy item. After that you can send this to your twink without any reputation and use. So we need a new column in item_template or npc_vendor. Regards
  5. Pets still gets unknown after getting killed respawned =/ Any idea?
  6. It would be nice, if someone could update this important patch. Thank you!
  7. There are some moments, where you wish to get no whisps at all, so i think it´s a good feature.
  8. Same with enchantments on twinks, which should be disabled if twink has not the requiered level.
  9. Stun do not work. Thanks mate, thats it! If someone need mine, here it is Index: scripts/world/npcs_special.cpp =================================================================== --- scripts/world/npcs_special.cpp (revision 1828) +++ scripts/world/npcs_special.cpp (working copy) @@ -1750,6 +1750,52 @@ return true; } +/*###### +## npc_training_dummy +######*/ +#define OUT_OF_COMBAT_TIME 5000 + +struct MANGOS_DLL_DECL npc_training_dummyAI : public Scripted_NoMovementAI +{ + npc_training_dummyAI(Creature* pCreature) : Scripted_NoMovementAI(pCreature) + { + Reset(); + } + + uint32 combat_timer; + + void Reset() + { + //m_creature->addUnitState(UNIT_STAT_STUNNED); + combat_timer = 0; + } + + void DamageTaken(Unit* pDoneBy, uint32 &uiDamage) + { + combat_timer = 0; + } + + void UpdateAI(const uint32 diff) + { + if (!m_creature->SelectHostileTarget() || !m_creature->getVictim()) + return; + + if (m_creature->GetHealthPercent() < 10.0f) // allow players using finishers + m_creature->ModifyHealth(m_creature->GetMaxHealth()); + + m_creature->SetTargetGUID(0); // prevent from rotating + combat_timer += diff; + + if (combat_timer > OUT_OF_COMBAT_TIME) + EnterEvadeMode(); + } +}; + +CreatureAI* GetAI_npc_training_dummy(Creature* pCreature) +{ +return new npc_training_dummyAI(pCreature); +} + void AddSC_npcs_special() { Script* newscript; @@ -1839,4 +1885,9 @@ newscript->pGossipHello = &GossipHello_npc_locksmith; newscript->pGossipSelect = &GossipSelect_npc_locksmith; newscript->RegisterSelf(); + + newscript = new Script; + newscript->Name = "npc_training_dummy"; + newscript->GetAI = &GetAI_npc_training_dummy; + newscript->RegisterSelf(); } Index: sql/Training Dummy.sql =================================================================== --- sql/Training Dummy.sql (revision 0) +++ sql/Training Dummy.sql (revision 0) @@ -0,0 +1 @@ +update creature_template set AiName = '', Scriptname = 'npc_training_dummy' where entry in (17578, 24792, 32543, 32546, 32542, 32545, 30527, 31143, 31144, 31146, 32541, 32666, 32667); \\ No newline at end of file
  10. I am trying to prevent the dummy from turning around, can you please tell me which flag do you mean? Thanks!
  11. Forusim

    [bug]

    It looks more like a DB bug, i think you should contact PSMDB team.
  12. Mangos Version: 10393 Custom Patches: Eye of Acherus, Broadcaster SD2 Version: 1782 Database Name and Version : UDB 392 After typing .npc setmovetype server will crash. Here crashlog: Revision: 2010-08-21 16:51:43 10394 9e76e9d715bc5104722feb2e2d69a636f41d5f98 Date 11:9:2010. Time 22:13 //===================================================== *** Hardware *** Processor: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz Number Of Processors: 4 Physical Memory: 4051504 KB (Available: 1298100 KB) Commit Charge Limit: 4194303 KB *** Operation System *** Windows Vista or Windows Server 2008 Professional (Version 6.1, Build 7600) //===================================================== Exception code: C0000005 ACCESS_VIOLATION Fault address: 74DBB690 01:0003A690 C:\\Windows\\WinSxS\\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\\MSVCR90.dll Registers: EAX:00000000 EBX:F47B7F60 ECX:00000000 EDX:096FEED8 ESI:00000000 EDI:00904010 CS:EIP:0023:74DBB690 SS:ESP:002B:0A1B124C EBP:0A1B22C0 DS:002B ES:002B FS:0053 GS:002B Flags:00010246 Call stack: Address Frame Function SourceFile 74DBB690 00000000 strlen+30 00593182 00000000 ChatHandler::ExecuteCommand+D2 00593816 00000000 ChatHandler::ParseCommands+146 008DA4DF 00000000 WorldSession::HandleMessagechatOpcode+54F 00638494 00000000 WorldSession::ExecuteOpcode+34 0063505A 00000000 WorldSession::Update+11A 00641B13 00000000 World::UpdateSessions+C3 0064012B 00000000 World::Update+38B 00457CFE 00000000 WorldRunnable::run+8E 00904029 00000000 ACE_Based::Thread::ThreadTask+19 6EFA12C4 00000000 __WSAFDIsSet+FFFFFFFFFFFCC1EC 74DA3433 00000000 _endthreadex+44 74DA34C7 00000000 _endthreadex+D8 75FA3677 00000000 BaseThreadInitThunk+12 77869D42 00000000 RtlInitializeExceptionChain+63 77869D15 00000000 RtlInitializeExceptionChain+36 ======================== Local Variables And Parameters Call stack: Address Frame Function SourceFile 74DBB690 00000000 strlen+30 00593182 00000000 ChatHandler::ExecuteCommand+D2 Local <user defined> 'this' Local <user defined> 'text' Local <user defined> 'parentCommand' Local <user defined> 'fullcmd' Local <user defined> 'command' Local <user defined> 'res' 00593816 00000000 ChatHandler::ParseCommands+146 Local <user defined> 'this' Local <user defined> 'text' 008DA4DF 00000000 WorldSession::HandleMessagechatOpcode+54F Local <user defined> 'msg' Local <user defined> 'this' Local <user defined> 'recv_data' punting on symbol type punting on symbol lang Local <user defined> 'langDesc' 00638494 00000000 WorldSession::ExecuteOpcode+34 Local <user defined> 'this' Local <user defined> 'opHandle' Local <user defined> 'packet' 0063505A 00000000 WorldSession::Update+11A Local <user defined> 'opHandle' Local <user defined> 'this' punting on symbol __formal Local <user defined> 'packet' punting on symbol currTime 00641B13 00000000 World::UpdateSessions+C3 Local <user defined> 'next' Local <user defined> 'itr' Local <user defined> 'this' punting on symbol diff Local <user defined> 'sess' 0064012B 00000000 World::Update+38B punting on symbol i Local <user defined> 'this' punting on symbol diff 00457CFE 00000000 WorldRunnable::run+8E punting on symbol diff Local <user defined> 'this' punting on symbol realCurrTime punting on symbol realPrevTime punting on symbol prevSleepTime 00904029 00000000 ACE_Based::Thread::ThreadTask+19 punting on symbol param Local <user defined> '_task' 6EFA12C4 00000000 __WSAFDIsSet+FFFFFFFFFFFCC1EC 74DA3433 00000000 _endthreadex+44 74DA34C7 00000000 _endthreadex+D8 75FA3677 00000000 BaseThreadInitThunk+12 77869D42 00000000 RtlInitializeExceptionChain+63 77869D15 00000000 RtlInitializeExceptionChain+36 ======================== Anyone have same issues?
  13. Would it be also possible to use spell_area for this reducing issue?
  14. Patch works perfect! Install sql updates.
  15. Haven´t looked into crash logs, but i think SD2 1802 might solve your problem. http://www.manground.org/sd2Changelog.html
  16. I not sure why, but Vanish is filtered out. I just commended this part out. diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index a6dceb9..0c6c885 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -3854,7 +3881,7 @@ void Aura::HandleModStealth(bool apply, bool Real) target->CastCustomSpell(target,31665,&bp,NULL,NULL,true); } // Overkill - else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000400000)) + else if ((*i)->GetId() == 58426/* && GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000400000)*/) { target->CastSpell(target, 58427, true); } @@ -3893,7 +3920,7 @@ void Aura::HandleModStealth(bool apply, bool Real) if ((*i)->GetSpellProto()->SpellIconID == 2114) target->CastSpell(target, 31666, true); // Overkill - else if ((*i)->GetId() == 58426 && GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000400000)) + else if ((*i)->GetId() == 58426/* && GetSpellProto()->SpellFamilyFlags & UI64LIT(0x0000000000400000)*/) { if (Aura* aura = target->GetAura(58427, EFFECT_INDEX_0)) {
  17. After this commit http://github.com/mangos/mangos/commit/b2b9a8741d044fc2fde14e85cd569d303ebb76e2 5-man heroric instance does not load properly. You have the heroic icon on your map, but mobs are nonheroic, also the loot.
  18. http://www.wowhead.com/spell=32014 http://www.wowhead.com/spell=31970 http://www.wowhead.com/spell=31972 Just go the boss and cast the soulcharges on him, and see what he will do. Everytime he cast one of his abilities the charges will be removed. Sometimes if the charges expire fast, then he will cast the unleash.
  19. Although NoFantasy fixed this issue in http://github.com/mangos/mangos/commit/23cdcdeda429ad4cba9d62cdd111df85795929d7 there is still one problem remaining. Archimondes abilities(http://www.wowhead.com/npc=17968#abilities) will remove the soulcharges and there will be no unleash. Maybe blizz want to unleash the charges with other spells and have hardcoded this in the spell.dbc? Anyhow (m_removeMode == AURA_REMOVE_BY_EXPIRE) will not work right here. I think it needs more research. As hotfix i just reduced the expiring time to SetAuraDuration(rand()%2*IN_MILLISECONDS);
  20. Ok now i control 1 recruit, but when other player try to control the 2nd one, it will take over mine. Is there a way to check, if recruit is already controlled and then take the non controlled one?
  21. I thought it is obvious that players will just kill each other at the graveyard for gold. ps: I give a **** about your postcounter.
  22. I have an feature request. Actually you can only turn viewing GM chars on/off. Is it possible to allow GM account level >1 to see other gm chars? But gm level 0 chars can only see other normal players.
×
×
  • 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