

Anti
Members-
Posts
81 -
Joined
-
Last visited
Never -
Donations
0.00 GBP
Anti's Achievements

Advanced Member (3/3)
0
Reputation
-
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.
-
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
-
I did the same thing and my players are happy now.
-
The answer was close vfprint and the same fucntions return value of written chars.
-
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.
-
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();
-
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.
-
Oh man... Just read wiki or some guides. It was discussed many times.
-
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.
-
It would be great if someone post here link to 313 version.
-
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.
-
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; }
-
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.
-
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.
-
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!
Contact Us
To contact us
click here
You can also email us at [email protected]
Privacy Policy | Terms & Conditions

You can also email us at [email protected]
Privacy Policy | Terms & Conditions
Copyright © getMaNGOS. All rights Reserved.
This website is in no way associated with or endorsed by Blizzard Entertainment®
This website is in no way associated with or endorsed by Blizzard Entertainment®