Jump to content

Anti

Members
  • Posts

    81
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything 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 did the same thing and my players are happy now.
  4. The answer was close vfprint and the same fucntions return value of written chars.
  5. void Log::outChar(const char * str, ... ) { if (!str) return; if(charLogfile) { va_list ap; outTimestamp(charLogfile); va_start(ap, str); vfprintf(charLogfile, str, ap); fprintf(charLogfile, "\\n" ); va_end(ap); fflush(charLogfile); } } I need to know size of completed str (with args) which send into log file.
  6. 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();
  7. If u're using newest core just re-extract dbc and maps. They was a little changed it 332. U has an old dbase (for 7662) but the core expecing for 9331. Update dbase to actualy state.
  8. Oh man... Just read wiki or some guides. It was discussed many times.
  9. 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.
  10. It would be great if someone post here link to 313 version.
  11. Mangos used svn it the past. It uses GitHub now. http://github.com/mangos/mangos SVN and GIT is a repositories for some projects, it helps to structure and organize a code for convenient developing.
  12. 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; }
  13. 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.
  14. Here uses a wrong movement flags and this is one of the patch's bugs. I'll try to merge the patch with 330 and fix some bugs.
  15. Strange trouble. Bg's doors doesn't open. On Win it works as well, but on linux it doesn't. My OS: CentOS 5.4 x86_64 I does compilation on my CentOS and puts it on a server machine (it on CentOS 5.*) Is it server machine's problem or a problem somewhere in my system? Take me some ideas, please. added The problem was in gameobject_battleground!
  16. Most likely it had fixed by changes from 9062 commit. 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.
  17. damn, I'm missed by the button. Look at Transport.h -> WayPointMap::const_iterator m_curr. Look through WayPointMap structure.
  18. Use TeleportToHomebind(). It would be great to summon a player to his start point (I mean the point from which player has got to a BG). added I suggest you to modify BattleGround::EventPlayerLoggedOut(). As i think it would be more correct way...
  19. Is it possible to compile a x64 core on a x86 system? And how i can do it?
  20. To summon any tournament mounts in a place where they stay must be placed GO 300008 (TEMP Tournament Stables).
  21. No i didn't because today I had work on a hot task.
  22. tester20, create a diff file and post here. Your fix won't apply.
  23. Confirmed. I have updated my local repo to last rev and obtained the bug. I'll look at it... May be tommorow.
  24. 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