aboutsummaryrefslogtreecommitdiff
path: root/src/game/NPCHandler.cpp
AgeCommit message (Collapse)Author
2010-05-24*Fix: Only show quests in the first page of gossip, instead of every page.Liberate
--HG-- branch : trunk
2010-05-24Makes npc's not give kill credit when talking with it. A gossip script will ↵Liberate
have to do the thing. Fixes issue 1209 --HG-- branch : trunk
2010-05-18Some more engrish to english logerror updates.malcrom
--HG-- branch : trunk
2010-04-18Move around and do some changes to homebinding, thanks to Vladimirclick
* Adds support for spelltarget-positions * Uses areaname instead of zonename on hearthstone Add homebind animation to player, with cast from innkeeper --HG-- branch : trunk
2010-04-11Fix mail, professions, group loot, console spam, and some fixes. Big thx to ↵n0n4m3
TOM_RUS. --HG-- branch : trunk
2010-04-08Code Style (game + scripts only):Spp
"!=" --> " != " (when needed) " !=" --> " !=" "!= " --> "!= " --HG-- branch : trunk
2010-04-07Code Style (game + scripts only):Spp
"==" --> " == " (when needed) --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"( " --> "(" " )" --> ")" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"if(" --> "if (" --HG-- branch : trunk
2010-04-07Code style (game + scripts only):Spp
"while(" --> "while (" --HG-- branch : trunk
2010-02-27Update visibility systemsilver1ce
*visibility updates and ai relocations processed simultaneously for each grid *these operations now are not synchronized for different grids *some changes into structure of visibility notifiers --HG-- branch : trunk
2010-02-05Yet more cleanup, mostly in the script system. This should conclude the ↵Xanadu
script integration into core. --HG-- branch : trunk
2010-01-31*Add support for spells in npc_trainer table with multiple ↵QAston
SPELL_EFFECT_LEARN_SPELL, this fixes problems with learning such spells from trainers. --HG-- branch : trunk
2010-01-30*Add error checks at spell_required table loadingQAston
*Allow spell_required table to store more than 1 spell learn requirement for a spell *spell_required table data is removed from world.sql and since this commit the data for it should be maintained by db project you're using. --HG-- branch : trunk
2010-01-23Implement QueryResult_AutoPtr type which is ACE's reference counted ↵Anubisss
auto_ptr(ACE_Refcounted_Auto_Ptr) for QueryResult pointers. Use this auto_ptr for every DB queries(except QueryNamedResult yet). This patch guarantees NO memory leaks from QueryResult pointers. Thanks to raczman for the idea and for the helping to make this patch. --HG-- branch : trunk
2010-01-19*Integrate Script system to CoreRat
-added ScriptMgr for loading scripts -removed bindings -moved script system to src/game -moved scripts to src/scripts -VC project files updated -cmakes updated (not 100% done yet) NOTE to Devs: -file locations changed -precompiled renamed to ScriptedPch -ecsort_ai renamed to ScriptedEscortAI -follower_ai renamed to ScriptedFollowerAI -guard_ai renamed to ScriptedGuardAI -simple_ai renamed to ScriptedSimpleAI -sc_creature renamed to ScriptedCreature -sc_gossip renamed to ScriptedGossip -sc_instance renamed to ScriptedInstance *use the new headers in scripts, thank you NOTE to ALL: cmake not fully tested, please report any errors with it could make creashes, incompability USE AT YOUR OWN RISK before further tests!! --HG-- branch : trunk
2010-01-18*Remove some of no longer needed debug code.QAston
--HG-- branch : trunk
2010-01-18*Cleanups before delete after not successfull load pet from db. Thanks to ↵QAston
Drahy for debug traces. --HG-- branch : trunk
2010-01-16Updated copyright for new year.n0n4m3
--HG-- branch : trunk
2010-01-12* Fixed a small opps on the last commit with NPCHandlerBrian
* Fixed error in script boss_grand_champions (Thanks QAston) --HG-- branch : trunk
2010-01-12* Renamed 3.2.2.a_old to 3.2.2a_old (proper format)Brian
* Fixes cmake complaining :) --HG-- branch : trunk rename : sql/updates/3.2.2.a_old/6589_characters_bugreport.sql => sql/updates/3.2.2a_old/6589_characters_bugreport.sql rename : sql/updates/3.2.2.a_old/6589_characters_character_action.sql => sql/updates/3.2.2a_old/6589_characters_character_action.sql rename : sql/updates/3.2.2.a_old/6589_characters_character_aura.sql => sql/updates/3.2.2a_old/6589_characters_character_aura.sql rename : sql/updates/3.2.2.a_old/6589_characters_character_spell_cooldown.sql => sql/updates/3.2.2a_old/6589_characters_character_spell_cooldown.sql rename : sql/updates/3.2.2.a_old/6589_characters_characters.sql => sql/updates/3.2.2a_old/6589_characters_characters.sql rename : sql/updates/3.2.2.a_old/6589_characters_groups.sql => sql/updates/3.2.2a_old/6589_characters_groups.sql rename : sql/updates/3.2.2.a_old/6589_characters_instance_reset.sql => sql/updates/3.2.2a_old/6589_characters_instance_reset.sql rename : sql/updates/3.2.2.a_old/6589_characters_spell.sql => sql/updates/3.2.2a_old/6589_characters_spell.sql rename : sql/updates/3.2.2.a_old/6589_realmd_realmlist.sql => sql/updates/3.2.2a_old/6589_realmd_realmlist.sql rename : sql/updates/3.2.2.a_old/6589_world_battleground_template.sql => sql/updates/3.2.2a_old/6589_world_battleground_template.sql rename : sql/updates/3.2.2.a_old/6589_world_creature_template.sql => sql/updates/3.2.2a_old/6589_world_creature_template.sql rename : sql/updates/3.2.2.a_old/6589_world_instance_template.sql => sql/updates/3.2.2a_old/6589_world_instance_template.sql rename : sql/updates/3.2.2.a_old/6589_world_item_template.sql => sql/updates/3.2.2a_old/6589_world_item_template.sql rename : sql/updates/3.2.2.a_old/6589_world_player_classlevelstats.sql => sql/updates/3.2.2a_old/6589_world_player_classlevelstats.sql rename : sql/updates/3.2.2.a_old/6589_world_playercreateinfo_action.sql => sql/updates/3.2.2a_old/6589_world_playercreateinfo_action.sql rename : sql/updates/3.2.2.a_old/6589_world_playercreateinfo_spell.sql => sql/updates/3.2.2a_old/6589_world_playercreateinfo_spell.sql rename : sql/updates/3.2.2.a_old/6589_world_quest_template.sql => sql/updates/3.2.2a_old/6589_world_quest_template.sql rename : sql/updates/3.2.2.a_old/6589_world_spell_bonus_data.sql => sql/updates/3.2.2a_old/6589_world_spell_bonus_data.sql rename : sql/updates/3.2.2.a_old/6589_world_spell_elixir.sql => sql/updates/3.2.2a_old/6589_world_spell_elixir.sql rename : sql/updates/3.2.2.a_old/6589_world_spell_proc_event.sql => sql/updates/3.2.2a_old/6589_world_spell_proc_event.sql rename : sql/updates/3.2.2.a_old/6597_world_spell_proc_event.sql => sql/updates/3.2.2a_old/6597_world_spell_proc_event.sql rename : sql/updates/3.2.2.a_old/6643_world_gameobject_template.sql => sql/updates/3.2.2a_old/6643_world_gameobject_template.sql rename : sql/updates/3.2.2.a_old/6644_world_creature_template.sql => sql/updates/3.2.2a_old/6644_world_creature_template.sql rename : sql/updates/3.2.2.a_old/6644_world_gossip_menu.sql => sql/updates/3.2.2a_old/6644_world_gossip_menu.sql rename : sql/updates/3.2.2.a_old/6644_world_gossip_menu_option.sql => sql/updates/3.2.2a_old/6644_world_gossip_menu_option.sql rename : sql/updates/3.2.2.a_old/6644_world_gossip_scripts.sql => sql/updates/3.2.2a_old/6644_world_gossip_scripts.sql rename : sql/updates/3.2.2.a_old/6644_world_locales_npc_option.sql => sql/updates/3.2.2a_old/6644_world_locales_npc_option.sql rename : sql/updates/3.2.2.a_old/6644_world_npc_gossip_textid.sql => sql/updates/3.2.2a_old/6644_world_npc_gossip_textid.sql rename : sql/updates/3.2.2.a_old/6644_world_npc_option.sql => sql/updates/3.2.2a_old/6644_world_npc_option.sql rename : sql/updates/3.2.2.a_old/6644_world_scriptname.sql => sql/updates/3.2.2a_old/6644_world_scriptname.sql rename : sql/updates/3.2.2.a_old/6645_world_gameobject_template.sql => sql/updates/3.2.2a_old/6645_world_gameobject_template.sql rename : sql/updates/3.2.2.a_old/6649_world_scriptname.sql => sql/updates/3.2.2a_old/6649_world_scriptname.sql rename : sql/updates/3.2.2.a_old/6655_world_spell_bonus_data.sql => sql/updates/3.2.2a_old/6655_world_spell_bonus_data.sql rename : sql/updates/3.2.2.a_old/6657_world_spell_proc_event.sql => sql/updates/3.2.2a_old/6657_world_spell_proc_event.sql rename : sql/updates/3.2.2.a_old/6664_world_quest_template.sql => sql/updates/3.2.2a_old/6664_world_quest_template.sql rename : sql/updates/3.2.2.a_old/6665_world_creature_classlevelstats.sql => sql/updates/3.2.2a_old/6665_world_creature_classlevelstats.sql rename : sql/updates/3.2.2.a_old/6665_world_creature_template.sql => sql/updates/3.2.2a_old/6665_world_creature_template.sql rename : sql/updates/3.2.2.a_old/6669_world_creature_template.sql => sql/updates/3.2.2a_old/6669_world_creature_template.sql rename : sql/updates/3.2.2.a_old/6675_world_spell_linked_spell.sql => sql/updates/3.2.2a_old/6675_world_spell_linked_spell.sql rename : sql/updates/3.2.2.a_old/6676_world_script_texts.sql => sql/updates/3.2.2a_old/6676_world_script_texts.sql rename : sql/updates/3.2.2.a_old/6678_world_creature_classlevelstats.sql => sql/updates/3.2.2a_old/6678_world_creature_classlevelstats.sql rename : sql/updates/3.2.2.a_old/6686_world_scriptname.sql => sql/updates/3.2.2a_old/6686_world_scriptname.sql rename : sql/updates/3.2.2.a_old/6691_world_spell_proc_event.sql => sql/updates/3.2.2a_old/6691_world_spell_proc_event.sql rename : sql/updates/3.2.2.a_old/6694_world_item_template.sql => sql/updates/3.2.2a_old/6694_world_item_template.sql rename : sql/updates/3.2.2.a_old/6710_realmd_account_access.sql => sql/updates/3.2.2a_old/6710_realmd_account_access.sql rename : sql/updates/3.2.2.a_old/6710_world_command.sql => sql/updates/3.2.2a_old/6710_world_command.sql rename : sql/updates/3.2.2.a_old/6710_world_trinity_string.sql => sql/updates/3.2.2a_old/6710_world_trinity_string.sql rename : sql/updates/3.2.2.a_old/6711_world_creature_classlevelstats.sql => sql/updates/3.2.2a_old/6711_world_creature_classlevelstats.sql rename : sql/updates/3.2.2.a_old/6712_realmd_account_access.sql => sql/updates/3.2.2a_old/6712_realmd_account_access.sql rename : sql/updates/3.2.2.a_old/6739_world_script_waypoints.sql => sql/updates/3.2.2a_old/6739_world_script_waypoints.sql rename : sql/updates/3.2.2.a_old/6742_world_script_texts.sql => sql/updates/3.2.2a_old/6742_world_script_texts.sql rename : sql/updates/3.2.2.a_old/6742_world_script_waypoints.sql => sql/updates/3.2.2a_old/6742_world_script_waypoints.sql rename : sql/updates/3.2.2.a_old/6742_world_scriptname.sql => sql/updates/3.2.2a_old/6742_world_scriptname.sql rename : sql/updates/3.2.2.a_old/6748_world_command.sql => sql/updates/3.2.2a_old/6748_world_command.sql rename : sql/updates/3.2.2.a_old/6751_world_creature_classlevelstats.sql => sql/updates/3.2.2a_old/6751_world_creature_classlevelstats.sql
2009-12-20Merge MaNGOS, Gossip System. Autor NoFantasy.win32
* DB support required * Closes #859 --HG-- branch : trunk
2009-12-17Removed some redundant player->SaveToDB calls, original autor balrokn0n4m3
--HG-- branch : trunk
2009-10-17*Massive cleanup redux.maximius
--HG-- branch : trunk
2009-10-17*Backed out changeset 3be01fb200a5maximius
--HG-- branch : trunk
2009-10-17*Massive cleanup (\n\n -> \n, *\n -> \n, cleanup for(...) to for (...), and ↵maximius
some other cleanups by hand) *Fix a possible crash in Spell::DoAllEffectOnTarget --HG-- branch : trunk
2009-08-19 [8378] Use exceptions instead of explicit size checking for each packet ↵megamage
Author: arrai CHECK_PACKET_SIZE was pretty error prone; once it was forgotten mangosd could crash due to the asserts in ByteBuffer.h. That was exploitable by malicious players. Furthermore, there were duplicate checks: Additionally to CHECK_PACKET_SIZE, the ByteBuffer assertions keept an eye on not exceeding the packet boundaries - just to crash the server for sure in such a case. To prevent memory leaks or other undesirable states, please read in every handler all variables _before_ doing any concrete handling. --HG-- branch : trunk
2009-07-01 [8103] More wide use IsInWorld checks and delayed at teleport ↵megamage
operations. Author: Ambal * IsInWorld used to prevent return unexpected not in world objects. * Delayed operations need to process its in world state. --HG-- branch : trunk
2009-06-06*Fix a typo in 3806 that makes players item is mailed back.megamage
*Also a missing part of last rev. --HG-- branch : trunk
2009-06-06 [7971] Implement support exotic pets limtations related to hunter telent ↵megamage
53270. Author: VladimirMangos Note: before this commit hunters can tame exotic pets like any other. After patch like not propertly contriolled pets will auto-dismiss at loading if talent not learned. --HG-- branch : trunk
2009-06-02[7942] Fixed typo: proffesion->professionmegamage
[7944] Replace 10 by MAX_UNIT_ACTION_BAR_INDEX in packet size of SMSG_PET_SPELLS. Author: yad02 --HG-- branch : trunk
2009-05-05[7768] Add check to prevent set homebind to instance map. Author: VladimirMangosmegamage
--HG-- branch : trunk
2009-05-04*Fix chains of iceQAston
*Correct typo in my prev commit-by megamage *Fix hearthstone obtaining from innkeeper. --HG-- branch : trunk
2009-05-01 [7740] More correct flags in trainer list data for profession ranks. ↵megamage
Author: VladimirMangos Note: this is not fix problem with gren show recently learned non-first rank of primary profession. Thanks to Seizerkiller for help in reseach. --HG-- branch : trunk
2009-04-19[7688] Move Get*IfCanInteractWith to Player including renamed ↵megamage
IsGameObjectOfTypeInRange. Author: VladimirMangos --HG-- branch : trunk
2009-04-11*Note: this patch may do not have any use for TC.megamage
[7645] Fixed problems wit temporary unsummoned pets and cleanup code. Author: VladimirMangos * Save temporary unsummoned pet to current slot (instead non_in_slot mode) and prevent save as current pet summoned while temporay unsummon (arena) * Prevent overwrite temporary summoned pet data * At player loading set temporary unsummoned pet data instead pet loading if pet expected to be temporary unsummoned in current player state (loading in taxi flight/etc) * Restore proper pet at arena leave and unsummon in arena summoned. --HG-- branch : trunk
2009-04-10 [7644] Fixed pet slot values using in pet save. Author: VladimirMangosmegamage
Problem exist from client version switch when stable slot amount changed. In result this has been source problems with stable use (3-4 slots) and possible pet lost in some cases or "not save state" for summoned pets. Use enums to avoid repeating problem, use more safe value for not-in-slot save (for summoned pets) Fixed data preparing for MSG_LIST_STABLED_PETS. --HG-- branch : trunk
2009-04-06*Update of aura system.QAston
--HG-- branch : trunk
2009-03-31*Merge.megamage
--HG-- branch : trunk
2009-03-30Added GO gossip menu support. Kudos and cookies to arrai.raczman
--HG-- branch : trunk
2009-03-25*Fix a crash caused by pet.megamage
*Make pet class derived from guardian class. --HG-- branch : trunk
2009-03-11 [7440] Use server-side only zone info. Optimize related calles in case ↵megamage
zone and subzone use. Author: VladimirMangos This in some cases make some zones not explorable if it not have server side data in current maps but not allow cheating with zone set from client. --HG-- branch : trunk
2009-03-08[7403] much more unneeded includes removed Author: balrokmegamage
--HG-- branch : trunk
2009-02-18*Merge.megamage
--HG-- branch : trunk
2009-02-17Newline added to bottom of all files.KingPin
--HG-- branch : trunk
2009-02-16[7283] Use map for trainer spells for fast find data by spell id. Author: zhenyamegamage
--HG-- branch : trunk
2009-02-09[7248] Check `battlemaster_entry` data at loading. Code cleanups. Author: zhenyamegamage
--HG-- branch : trunk
2009-01-24* Fix bug where pet is lost while working in stables and mounted.biglad
--HG-- branch : trunk
2009-02-04* Updated copyright notice for new year (2009) part 2Drahy
* Changed mangos website --HG-- branch : trunk
2009-02-04* Updated copyright notice for new year (2009) part 1 - Mercurial cant ↵Drahy
convert all files at once --HG-- branch : trunk