Commit Graph
301 Commits
Author SHA1 Message Date
Machiavelli 54189f63c2 Fix SCRIPT_COMMAND_MOVE_TO for gossip case.
--HG--
branch : trunk
2010-06-05 17:58:59 +02:00
Machiavelli d45d61c2b1 Remove unneeded SCRIPT_COMMAND_SET_FLAG that already was implemented in a different way.
(/blame Malcrom)

--HG--
branch : trunk
2010-06-05 17:58:11 +02:00
Machiavelli bb292845ed Fix SCRIPT_COMMAND_FIELD_SET, it will no longer throw error that the specified parameter was an invalid field. In addition, the command is now usable from gossip scripts.
--HG--
branch : trunk
2010-06-05 17:48:56 +02:00
click e777161888 HIGHLY EXPERIMENTAL - USE AT YOUR OWN RISK
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-05 00:59:25 +02:00
Machiavelli d3969ff9b3 Fix SCRIPT_COMMAND_EMOTE, allow it to be used in gossip scripts where source = player.
--HG--
branch : trunk
2010-06-04 17:47:22 +02:00
Machiavelli 54ee0f6483 Fix SCRIPT_COMMAND_TALK to be used in gossip scripts.
+ A few trivial typo´s in the same function.
Fixes issue #980
Update issue #2502

--HG--
branch : trunk
2010-06-04 14:37:23 +02:00
Machiavelli 724954af4b Missing rename. (VStudio crashed on me earlier)
--HG--
branch : trunk
2010-06-03 19:11:26 +02:00
Machiavelli 2cec9d276e Rename SCRIPT_COMMAND_MOD_UPDATEFIELD to SCRIPT_COMMAND_SET_FLAG to avoid 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-03 18:16:07 +02:00
Machiavelli f346d779a5 Implement SCRIPT_COMMAND_MOD_UPDATEFIELD with parameters datalong = index, 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-03 18:03:18 +02:00
Machiavelli 227cd4d993 Fix crash in SCRIPT_COMMAND_QUEST_EXPLORED, fixes issue #2532
--HG--
branch : trunk
2010-06-03 15:14:21 +02:00
Machiavelli fb8399c413 Few changes to *_scripts handling in core.
- 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-06-02 18:43:11 +02:00
_manuel_ 78cb29a30d Implemented areaflag hacks for areas Sunreaver Pavilion and Silver Covenant Pavilion.
--HG--
branch : trunk
2010-05-29 14:13:56 -03:00
_manuel_ 4658b3be97 Modified SCRIPT_COMMAND_TELEPORT_TO now it can be used for Creatures. For players datalong2 must be 0 for creatures 1.
--HG--
branch : trunk
2010-05-25 22:11:36 -03:00
[email protected]> 0d4bbd9641 SCRIPT_COMMAND_ORIENTATION fixed right. (thanks Mach)
--HG--
branch : trunk
2010-05-18 19:08:08 -02:30
[email protected]> 7ce2853ca8 Fix SCRIPT_COMMAND_ORIENTATION db script command.
--HG--
branch : trunk
2010-05-18 17:45:15 -02:30
malcrom 2b7d92a401 Some more engrish to english logerror updates.
--HG--
branch : trunk
2010-05-18 14:22:51 -02:30
click 953c267369 Fix broken linuxcompile broken in r53601d50dd
--HG--
branch : trunk
2010-05-18 05:46:32 +02:00
[email protected]> b5342fe754 Add ablility to select closest creature of entry (dataint), range (x) as target for spell (datalong) SCRIPT_COMMAND_CAST_SPELL.
--HG--
branch : trunk
2010-05-17 21:24:21 -02:30
[email protected]> 4077f525f0 Add Ability for db script command SCRIPT_COMMAND_ORIENTATION to set creature orientation to face player.
--HG--
branch : trunk
2010-05-17 20:37:13 -02:30
click 89887b9b65 Correct SMSG_INSTANCE_DIFFICULTY structure (fixes raid difficulty display).
Move GetDifficulty() in under Map-scope, so it's reachable for map-based functions

--HG--
branch : trunk
2010-05-16 04:03:53 +02:00
Anubisss 4a448eca37 Make WaypointMgr to singleton.
Move global waypoint_map variable to WaypointMgr's private variable.

--HG--
branch : trunk
2010-05-13 00:08:30 +02:00
Brian 7957d06654 * Add SCRIPT_COMMAND_CLOSE_GOSSIP that can be used in gossip_scripts to force
* 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-07 19:17:51 -06:00
click 608855f0a0 Stop drinking heavily and instead do things properly - fixes a typo from previous commit...
--HG--
branch : trunk
2010-05-10 14:14:07 +02:00
click 7817596a96 Fix the little messup from the previous commit (sorry!)
--HG--
branch : trunk
2010-05-10 14:08:53 +02:00
click d79f6295aa Add support for NPC-based start of playing moviesequence + clean up indenting on earlier commit
--HG--
branch : trunk
2010-05-10 13:27:18 +02:00
Spp dd9485993b Fix instance load broken by me in 8c4b824176
--HG--
branch : trunk
2010-05-01 20:59:56 +02:00
Spp be01821050 More warning removal (Some code modifications and cleanup when needed)
--HG--
branch : trunk
2010-04-19 17:03:10 +02:00
Spp 74dd02d024 Remove LOTS of compile warnings
--HG--
branch : trunk
2010-04-19 09:26:37 +02:00
Spp 4635fbc020 Code Style (game + scripts only):
"!=" --> " != " (when needed)
"  !=" --> " !="
"!=  " --> "!= "

--HG--
branch : trunk
2010-04-08 08:20:08 +02:00
Spp 46f0674e23 Code Style (game + scripts only):
">=" --> " >= " (when needed)
"  >=" --> " >="
">=  " --> ">= "
"<=" --> " <= " (when needed)
"  <=" --> " <="
"<=  " --> "<= "
" ==" --> " =="
"==  " --> "== "

--HG--
branch : trunk
2010-04-07 23:56:35 +02:00
Spp 2454c290b8 Code Style (game + scripts only):
"==" --> " == " (when needed)

--HG--
branch : trunk
2010-04-07 23:25:02 +02:00
Spp 49d05ba9aa Code style (game + scripts only):
"( " --> "("
" )" --> ")"

--HG--
branch : trunk
2010-04-07 22:59:46 +02:00
Spp d19e127080 Code style (game + scripts only):
"if(" --> "if ("

--HG--
branch : trunk
2010-04-07 19:14:10 +02:00
Spp 2e127f7a30 Code style (game + scripts only):
"while(" --> "while ("

--HG--
branch : trunk
2010-04-07 19:13:19 +02:00
Spp 182e9a20b1 Code style (game + scripts only):
"for(" --> "for ("

--HG--
branch : trunk
2010-04-07 19:12:44 +02:00
Spp b27ce42704 Code Style: Remove trailing spaces
--HG--
branch : trunk
2010-04-07 18:09:10 +02:00
[email protected]> 83500cb1e4 Added SCRIPT_COMMAND_MODEL 32 Allows changing of npc model in db scripts.
--HG--
branch : trunk
2010-03-30 19:01:25 -02:30
[email protected]> 66f5d749c0 Added script command 31 SCRIPT_COMMAND_EQUIP inables an npc to change weapons in TC scripts.
--HG--
branch : trunk
2010-03-29 17:45:08 -02:30
Xanadu 2c605ee482 Upgraded SCRIPT_COMMAND_EMOTE to do state emotes, too, based on datalong2 value. By Malcrom.
--HG--
branch : trunk
2010-03-17 21:00:44 +01:00
thenecromancer e1542df90c Convert some C style casts to new functions
--HG--
branch : trunk
2010-03-11 20:51:31 +01:00
Xanadu ebee705452 Fixed SCRIPT_COMMAND_ORIENTATION, orientation needs to be float. Credit to Malcrom.
--HG--
branch : trunk
2010-03-11 16:54:25 +01:00
raczman 07f3b91426 Some Creature* casts moved to new ToCreature.
Added const Creature* ToCreature()

--HG--
branch : trunk
2010-03-07 18:30:53 +01:00
_manuel_ 661a8be9a5 Implemented SCRIPT_COMMAND_ORIENTATION.
--HG--
branch : trunk
2010-03-01 19:40:05 -03:00
silver1ce e010310c6d removed redundant linking
--HG--
branch : trunk
2010-02-27 15:51:26 +02:00
silver1ce fcaa318fb3 Update visibility system
*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-27 15:25:14 +02:00
Brian 486c00891b * Core switch to client 3.3.2 (11403)
* 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-14 19:13:14 -07:00
Xanadu f8d1920fa5 Yet more cleanup, mostly in the script system. This should conclude the script integration into core.
--HG--
branch : trunk
2010-02-05 13:01:32 +01:00
silver1ce 02acc66043 cleanup into grid containers
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-02-03 05:23:32 +02:00
XTZGZoReX c3ae3b88aa * Implement 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-29 22:24:18 +01:00
XTZGZoReX 9f00ca3eb8 * Remove CellLock class and all cell-level thread locking.
** 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-23 22:24:41 +01:00