aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.cpp
AgeCommit message (Collapse)Author
2010-06-05Fix SCRIPT_COMMAND_FIELD_SET, it will no longer throw error that the ↵Machiavelli
specified parameter was an invalid field. In addition, the command is now usable from gossip scripts. --HG-- branch : trunk
2010-06-05HIGHLY EXPERIMENTAL - USE AT YOUR OWN RISKclick
Implement the use of the new vmap3-format by Lynx3d (mad props to you for this, and thanks for the talks earlier) + reduced Vmap size to less than one third, and improve precision + indoor/outdoor check which allows automatic unmounting of players + additional area information from WMOAreaTable.dbc, removed existing "hacks" + WMO liquid information for swimming and fishing correctly in buildings/cities/caves/instances (lava and slime WILL hurt from now on!) - buildfiles for windows are not properly done, and will need to be sorted out NOTE: Do NOT annoy Lynx3d about this, any issues with this "port" is entirely our fault ! THIS REVISION IS CONSIDERED UNSTABLE AND CONTAINS WORK IN PROGRESS - USE AT YOUR OWN RISK! --HG-- branch : trunk
2010-06-04Fix SCRIPT_COMMAND_EMOTE, allow it to be used in gossip scripts where source ↵Machiavelli
= player. --HG-- branch : trunk
2010-06-04Fix SCRIPT_COMMAND_TALK to be used in gossip scripts.Machiavelli
+ A few trivial typo´s in the same function. Fixes issue #980 Update issue #2502 --HG-- branch : trunk
2010-06-03Missing rename. (VStudio crashed on me earlier)Machiavelli
--HG-- branch : trunk
2010-06-03Rename SCRIPT_COMMAND_MOD_UPDATEFIELD to SCRIPT_COMMAND_SET_FLAG to avoid ↵Machiavelli
confusion. Also add a parameter ´apply´ (dataint). If 1, it will set the flag, if 0, it will remove it. Note: currently only supports 32bit integers. --HG-- branch : trunk
2010-06-03Implement SCRIPT_COMMAND_MOD_UPDATEFIELD with parameters datalong = index, ↵Machiavelli
datalong2 = newvalue. This will allow you to set the specified index value to the specified flag, as per Malcrom´s request. --HG-- branch : trunk
2010-06-03Fix crash in SCRIPT_COMMAND_QUEST_EXPLORED, fixes issue #2532Machiavelli
--HG-- branch : trunk
2010-06-02Few changes to *_scripts handling in core.Machiavelli
- Use pointers of most abstract classes possible where applicable. - Don´t use dynamic_cast when casting possibility is already explicitly checked per typeid. - Where applicable use the ToCreature() and ToPlayer() functions for typecasting. - Fix functioning of SCRIPT_COMMAND_CAST_SPELL - Fix possible crash in SCRIPT_COMMAND_KILL - Always include script id in error messages. - Added a few TODO comments. These changesets were merged in from MaNGOS: - [9576] Implement SCRIPT_COMMAND_CREATE_ITEM by NoFantasy - [9577] Implement SCRIPT_COMMAND_DESPAWN_SELF by NoFantasy - [9869] Extend SCRIPT_COMMAND_QUEST_EXPLORED to allow player<->player as source/target by NoFantasy --HG-- branch : trunk
2010-05-29Implemented areaflag hacks for areas Sunreaver Pavilion and Silver Covenant ↵_manuel_
Pavilion. --HG-- branch : trunk
2010-05-25Modified SCRIPT_COMMAND_TELEPORT_TO now it can be used for Creatures. For ↵_manuel_
players datalong2 must be 0 for creatures 1. --HG-- branch : trunk
2010-05-18SCRIPT_COMMAND_ORIENTATION fixed right. (thanks Mach)malcromdev@gmail.com>
--HG-- branch : trunk
2010-05-18Fix SCRIPT_COMMAND_ORIENTATION db script command.malcromdev@gmail.com>
--HG-- branch : trunk
2010-05-18Some more engrish to english logerror updates.malcrom
--HG-- branch : trunk
2010-05-18Fix broken linuxcompile broken in r53601d50ddclick
--HG-- branch : trunk
2010-05-17Add ablility to select closest creature of entry (dataint), range (x) as ↵malcromdev@gmail.com>
target for spell (datalong) SCRIPT_COMMAND_CAST_SPELL. --HG-- branch : trunk
2010-05-17Add Ability for db script command SCRIPT_COMMAND_ORIENTATION to set creature ↵malcromdev@gmail.com>
orientation to face player. --HG-- branch : trunk
2010-05-16Correct SMSG_INSTANCE_DIFFICULTY structure (fixes raid difficulty display).click
Move GetDifficulty() in under Map-scope, so it's reachable for map-based functions --HG-- branch : trunk
2010-05-13Make WaypointMgr to singleton.Anubisss
Move global waypoint_map variable to WaypointMgr's private variable. --HG-- branch : trunk
2010-05-07* Add SCRIPT_COMMAND_CLOSE_GOSSIP that can be used in gossip_scripts to forceBrian
* the gossip window to close when a given menu option is chosen. * This is with all my love -- for Malcrom :P --HG-- branch : trunk
2010-05-10Stop drinking heavily and instead do things properly - fixes a typo from ↵click
previous commit... --HG-- branch : trunk
2010-05-10Fix the little messup from the previous commit (sorry!)click
--HG-- branch : trunk
2010-05-10Add support for NPC-based start of playing moviesequence + clean up ↵click
indenting on earlier commit --HG-- branch : trunk
2010-05-01Fix instance load broken by me in 8c4b824176Spp
--HG-- branch : trunk
2010-04-19More warning removal (Some code modifications and cleanup when needed)Spp
--HG-- branch : trunk
2010-04-19Remove LOTS of compile warningsSpp
--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) " >=" --> " >=" ">= " --> ">= " "<=" --> " <= " (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-04-07Code style (game + scripts only):Spp
"for(" --> "for (" --HG-- branch : trunk
2010-04-07Code Style: Remove trailing spacesSpp
--HG-- branch : trunk
2010-03-30Added SCRIPT_COMMAND_MODEL 32 Allows changing of npc model in db scripts.malcromdev@gmail.com>
--HG-- branch : trunk
2010-03-29Added script command 31 SCRIPT_COMMAND_EQUIP inables an npc to change ↵malcromdev@gmail.com>
weapons in TC scripts. --HG-- branch : trunk
2010-03-17Upgraded SCRIPT_COMMAND_EMOTE to do state emotes, too, based on datalong2 ↵Xanadu
value. By Malcrom. --HG-- branch : trunk
2010-03-11Convert some C style casts to new functionsthenecromancer
--HG-- branch : trunk
2010-03-11Fixed SCRIPT_COMMAND_ORIENTATION, orientation needs to be float. Credit to ↵Xanadu
Malcrom. --HG-- branch : trunk
2010-03-07Some Creature* casts moved to new ToCreature.raczman
Added const Creature* ToCreature() --HG-- branch : trunk
2010-03-01Implemented SCRIPT_COMMAND_ORIENTATION._manuel_
--HG-- branch : trunk
2010-02-27removed redundant linkingsilver1ce
--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-14* Core switch to client 3.3.2 (11403)Brian
* Credits (in no particular order) to: * n0n4m3, raczman, manuel, Spp, Malcrom, Teacher, QAston, Tartalo, * thenecromancer, Xanadu, Trazom, Zor, kiper * Additional credits to: * TOM_RUS and NoFantasy from MaNGOS * Thanks for testing Aokromes and XTElite1 * SoTA still needs some work, but is very playable (huge thanks to raczman and * kiper) * To upgrade, you need to apply all SQL from sql/updates/3.2.2a_old from the * last rev you are on * and then apply all SQL from sql/updates/3.3.2_old to char / realmd / world * DBs * Known problem with guild banks. --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-02-03cleanup into grid containerssilver1ce
grid containers doesn't contains guid keys, so guid parameter is useless, removed find functions(anyway result of search would be null always) --HG-- branch : trunk
2010-01-29* Implement ↵XTZGZoReX
CMSG_CORPSE_MAP_POSITION_QUERY/CMSG_CORPSE_MAP_POSITION_QUERY_RESPONSE opcodes. Thanks to: Ceris, Lightguard, raczman for helping with research/code. * Fix SMSG_QUERY_TIME_RESPONSE use/structure. Patch/research by TOM_RUS. --HG-- branch : trunk
2010-01-23* Remove CellLock class and all cell-level thread locking.XTZGZoReX
** It was wasting CPU power as cell-level locking is not needed. ** Our multithreading is on map-level, not cell-level. ** CellLock was just a 'proxy' between Cell and CellPair and in some cases carried redundant data. ** Some minor cleanup in Cell::Visit/Map::Visit. --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-22*Prevent assertion fail in Unit::_AddAura after creature add to remove list.QAston
--HG-- branch : trunk