Changeset 85 for trunk/src/game/Level3.cpp
- Timestamp:
- 11/19/08 13:32:53 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/Level3.cpp
r79 r85 151 151 HandleReloadSpellThreatsCommand("a"); 152 152 HandleReloadSpellPetAurasCommand("a"); 153 HandleReloadSpellDisabledCommand("a"); 153 154 return true; 154 155 } … … 610 611 611 612 SendGlobalSysMessage("DB table `game_tele` reloaded."); 613 614 return true; 615 } 616 617 bool ChatHandler::HandleReloadSpellDisabledCommand(const char* /*arg*/) 618 { 619 sLog.outString( "Re-Loading spell disabled table..."); 620 621 objmgr.LoadSpellDisabledEntrys(); 622 623 SendGlobalSysMessage("DB table `spell_disabled` reloaded."); 612 624 613 625 return true; … … 5577 5589 { 5578 5590 player = getSelectedPlayer(); 5579 5591 if (player) //prevent crash with creature as target 5580 5592 { 5581 5593 name = player->GetName(); … … 5610 5622 player->setFaction(35); 5611 5623 player->CombatStop(); 5612 5624 if(player->IsNonMeleeSpellCasted(true)) 5613 5625 player->InterruptNonMeleeSpells(true); 5614 5626 player->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE); 5615 5627 player->SetUInt32Value(PLAYER_DUEL_TEAM, 1); 5616 5628 5617 5629 //if player class = hunter || warlock remove pet if alive 5618 5630 if((player->getClass() == CLASS_HUNTER) || (player->getClass() == CLASS_WARLOCK)) 5619 5631 { … … 5662 5674 { 5663 5675 player = getSelectedPlayer(); 5664 5676 if (player) //prevent crash with creature as target 5665 5677 { 5666 5678 name = player->GetName(); … … 5697 5709 { 5698 5710 //check for offline players 5699 5711 QueryResult *result = CharacterDatabase.PQuery("SELECT characters.guid FROM `characters` WHERE characters.name = '%s'",name.c_str()); 5700 5712 if(!result) 5701 5702 5713 { 5714 SendSysMessage(LANG_COMMAND_FREEZE_WRONG); 5703 5715 return true; 5704 5705 5706 5716 } 5717 //if player found: delete his freeze aura 5718 Field *fields=result->Fetch(); 5707 5719 uint64 pguid = fields[0].GetUInt64(); 5708 5720 delete result; 5709 5721 CharacterDatabase.PQuery("DELETE FROM `character_aura` WHERE character_aura.spell = 9454 AND character_aura.guid = '%u'",pguid); 5710 5722 PSendSysMessage(LANG_COMMAND_UNFREEZE,name.c_str()); 5711 5723 return true; 5712 5713 5714 { 5715 5724 } 5725 else 5726 { 5727 SendSysMessage(LANG_COMMAND_FREEZE_WRONG); 5716 5728 return true; 5717 5729 } 5718 5730 } 5719 5731