Jump to content

charlie2025

Members
  • Posts

    171
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by charlie2025

  1. <div class='quotetop'>QUOTE (Sodom @ Oct 6 2008, 10:56 PM) <{POST_SNAPBACK}></div> Did you executd SQLs attachet in first post ?
  2. For 6731 http://filebeam.com/cf6bdfd3eab58783eac96fcce8e3ec6b
  3. http://filebeam.com/fcbe1925b808233d4f8902827ec46692 Didn't tested..
  4. Just solve conflicts while patching.. not needed any code editing..
  5. <div class='quotetop'>QUOTE (durbatuluk @ Sep 23 2008, 07:04 PM) <{POST_SNAPBACK}></div> Hmm, that should be it. Try hand-fix .. it isn't difficult.
  6. <div class='quotetop'>QUOTE (0mbladon @ Sep 23 2008, 03:37 PM) <{POST_SNAPBACK}></div> For me works... Try this for 6669 http://filebeam.com/543004999fd3071a9808b4ea67aded11
  7. Try this patch for 6643, compile fine, didn' tested in game... but I thing it will works. http://filebeam.com/0fd25acbaed6254524066da4ad426fde
  8. For 6619 - http://filebeam.com/b309f70456acf252f5190350737538f3
  9. <div class='quotetop'>QUOTE (durbatuluk @ Sep 15 2008, 08:01 PM) <{POST_SNAPBACK}></div> You can ignore rejects on game.vcproj if using linux..
  10. Or solution is compile mangos as 32bit on 64bit system... something like czech guide is there .. http://wiki.wowresource.eu/index.php/Kompi...a_64-bit_Linuxu
  11. If you want get float value from updatefields in php.. use this function function readFloatValue($value) { return ceil(array_pop(unpack("f", pack("L", $value)))); } Holy crit can be extracted by this script $data= mysql_query("SELECT `data` from `characters` where `name`='Charlie'; $r = mysqL_fetch_array($data); $r = $r['data']; $fields = explode(" ",$r); $prvek = readFloatValue($fields[1324]); echo "Holy crit chance.. $prvek % ";
  12. Use uint32 for players account.. Then use fields[5].GetUInt32(); not fields[5].GetUInt64(); . Then for get player's account, if player is online and if he used command use this code Player* pl = m_session->GetPlayer(); uint32 playersid = pl->GetSession()->GetAccountId();
  13. here you have .patch file.. apply it to Source code of mangos, which you download from SVN, then compile. Index: src/game/Chat.cpp =================================================================== --- src/game/Chat.cpp (revision 6292) +++ src/game/Chat.cpp (working copy) @@ -465,8 +465,9 @@ { "movegens", SEC_ADMINISTRATOR, &ChatHandler::HandleMovegensCommand, "", NULL }, { "cometome", SEC_ADMINISTRATOR, &ChatHandler::HandleComeToMeCommand, "", NULL }, { "damage", SEC_ADMINISTRATOR, &ChatHandler::HandleDamageCommand, "", NULL }, + { "playsound" SEC_ADMINISTRATOR, &ChatHandler::HandlePlaySoundCommand, "", NULL }, - { NULL, 0, NULL, "", NULL } + { NULL, 0, NULL, "", NULL } }; if(load_command_table) Index: src/game/Chat.h =================================================================== --- src/game/Chat.h (revision 6292) +++ src/game/Chat.h (working copy) @@ -350,6 +350,7 @@ bool HandleCastSelfCommand(const char *args); bool HandleCastTargetCommand(const char *args); bool HandleComeToMeCommand(const char *args); + bool HandlePlaySoundCommand(const char *args); //! Development Commands bool HandleSetValue(const char* args); Index: src/game/Level3.cpp =================================================================== --- src/game/Level3.cpp (revision 6292) +++ src/game/Level3.cpp (working copy) @@ -4872,3 +4872,29 @@ return true; } + +//Play sound +bool ChatHandler::HandlePlaySoundCommand(const char* args) +{ + // USAGE: .playsound #soundid + // #soundid - ID decimal number from SoundEntries.dbc (1 column) + // this file have about 5000 sounds. + // In this realisation only caller can hear this sound. + if( *args ) + { + int dwSoundId = atoi((char*)args); + if( dwSoundId >= 0 ) + { + WorldPacket data(SMSG_PLAY_OBJECT_SOUND,4+8); + data << uint32(dwSoundId) << m_session->GetPlayer()->GetGUID(); + sWorld.SendGlobalMessage(&data,true); + + sLog.outDebug("Player %s use command .playsound with #soundid=%u", m_session->GetPlayer()->GetName(), dwSoundId); + PSendSysMessage(LANG_YOU_HEAR_SOUND, dwSoundId); + return true; + } + } + + SendSysMessage(LANG_BAD_VALUE); + return false; +} \\ No newline at end of file
  14. What bug does the patch fix? What features does the patch add? Make more better parametr sequence in CLI command BAN - becose reason isn't last parametr, when you type a reason, which has more then one word and there are spaces, system take words as arguments of ban command. In chat interface, Reason is last parametr. For which SubVersion revision was the patch created? 6245 Who has been writing this patch? Please include either forum user names or email addresses. Charlie2025 Index: src/mangosd/CliRunnable.cpp =================================================================== --- src/mangosd/CliRunnable.cpp (revision 6245) +++ src/mangosd/CliRunnable.cpp (working copy) @@ -469,12 +469,12 @@ ///- Get the command parameter char* type = strtok((char*)command, " "); char* nameOrIP = strtok(NULL, " "); - char* reason = strtok(NULL," "); char* duration = strtok(NULL," "); + char* reason = strtok(NULL,""); if(!type||!nameOrIP||!reason) // ?!? input of single char "0"-"9" wouldn't detect when with: || !atoi(duration) { - zprintf("Syntax: ban account|ip|character $AccountOrIpOrCharacter $reason ($duration[s|m|h|d]) \\r\\n"); + zprintf("Syntax: ban account|ip|character $AccountOrIpOrCharacter ($duration[s|m|h|d]) $reason \\r\\n"); return; } @@ -493,7 +493,7 @@ zprintf("%s %s not found\\r\\n", type, nameOrIP); break; case BAN_SYNTAX_ERROR: - zprintf("Syntax: ban account|ip|character $AccountOrIpOrCharacter $reason ($duration[s|m|h|d]) \\r\\n"); + zprintf("Syntax: ban account|ip|character $AccountOrIpOrCharacter ($duration[s|m|h|d]) $reason \\r\\n"); break; } }
  15. <div class='quotetop'>QUOTE (Valdifer @ Jul 5 2008, 04:33 PM) <{POST_SNAPBACK}></div> try this http://filebeam.com/1a93f79044490b899c9dbd6642606a67
  16. Yes, but if player's fly hack can be detected by checking packet size.. why not can be detected if turn on fly hack in water ?
  17. In mangos movementhandler, server check for packet size.. if it is not right size, then mangos kick player as cheater... by this way, server can very seriously detect FLY HACK... But only when you turn on fly hack from the land. When you turn on fly hack in water, then you aren't kicked and you can fly.. I think, if there is possible to do something like, refreshing opcodes .. or something like this ?
  18. Are you crazy ? You have 7 posts and all of them are "MIND CONTROL PROBLEM"... You should be banned.. There is a section - Bug Tracker, where you can post it, but not 7times..
  19. Hello, if i add a column to account table.. affect it mangos in some way ? It is possible to do it ?
×
×
  • 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