Commit graph

366 commits

Author SHA1 Message Date
VladimirMangos
67b8ca03b5 [9957] Alow sell item for money and extanded coset without momey in same time.
npc_vendor.ExtandedCost can be negative now that meaning:
price excluded default item BuyPrice and use only abs(ExtandedCost) items).
For example expected used for item 36908.
2010-05-22 19:49:07 +04:00
VladimirMangos
6d5d8778fa [9912] Partly revert [9911] :/ 2010-05-16 09:51:52 +04:00
VladimirMangos
112afc260c [9911] Check script using and existance at creature_movement_scripts load. 2010-05-16 09:26:48 +04:00
NoFantasy
312a076491 [9891] Implement *_scripts for creature_movement
New field script_id in creature_movement can be filled for each waypoint point and run the corresponding script from creature_movement_scripts.
Script_id can be any value and several points/creatures can share the same script (with limits of course, such as script depending on location and other factors).

DB projects are advised to move current text, spells and emotes data in creature_movement fields as these fields are strictly no longer needed and may be fully removed in the future.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-14 12:16:54 +02:00
NoFantasy
31ec245b68 [9889] Extend features available for SCRIPT_COMMAND_TALK
* Allow other than Creature to talk.
* Add "buddy-talk", using creature entry in datalong2 (the npc who will do the talk instead of the original source). Value in datalong3 is how far to look for the buddy.
* Add data_flags making it possible to have conversations between units, controlling who does the talking and to whom, including make player do the talking when player is not already the source.

Notes and details are added in the comments for SCRIPT_COMMAND_TALK

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-13 16:39:04 +02:00
NoFantasy
b208effca6 [9883] Change SCRIPT_COMMAND_TALK to support CHAT_TYPE_* using enum ChatType
Making data consistent with other, similar tables like EventAI's text tables.
This convert existing data and also adds support for all chat types.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-12 14:09:38 +02:00
NoFantasy
faf3e287c7 [9881] Add additional fields to *_scripts tables for storage of more data.
Currently not in use by any SCRIPT_COMMAND_* but we have secret plans to be revealed in the future!

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-12 12:02:38 +02:00
tomrus88
ff2cda6af1 [9861] Backporting some code chnages from 400 branch.
(based on 400's commit 0f37423)
(based on 400's commit 636cfef)
(based on 400's commit 0bbe3a7)
(based on 400's commit ce86b56)
(based on 400's commit b74c6a8)
2010-05-10 23:45:49 +04:00
NoFantasy
92d26dbebf [9852] Disable forced alteration of specialFlags in quest_template at startup.
This will allow quest 10162 to work properly with the expected data in quest_template (no specialFlags is needed), but will still give a startup error for spell 33824.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-05-09 09:56:28 +02:00
VladimirMangos
722135b326 [9838] More log filters and macro uses.
* LogFilter_Weather
* LogFilter_PeriodicAffects
* LogFilter_PlayerMoves
* LogFilter_SQLText
* LogFilter_AIAndMovegens
* LogFilter_PlayerStats
2010-05-05 18:46:10 +04:00
VladimirMangos
3f5eccd8a9 [9830] Implement taxi/transport event scripts support. 2010-05-03 19:39:53 +04:00
VladimirMangos
57dcc84940 [9824] Use in taxi flight movegen original taxipath data. 2010-05-02 06:14:26 +04:00
VladimirMangos
4910add486 [9808] Simplify TaxiPathNodes data use, specially for transport case. 2010-04-29 19:44:21 +04:00
patman128
3032e80bb6 [9795] Implement CONDITION_INSTANCE_SCRIPT (mapid, some_id)
True if mapid fit to called instance map id and instance script confirm success for some_id case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-26 09:12:48 +04:00
marintrica
6cff390de2 [9781] One more typo in instance_template loading error output.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-23 15:24:25 +04:00
VladimirMangos
15dd77873e [9779] Drop trailing whitespaces. 2010-04-23 05:28:51 +04:00
VladimirMangos
88ab56a6e8 [9777] Fixed instance_template error output arg in one from cases. 2010-04-22 23:50:09 +04:00
VladimirMangos
48254e3879 Cleanups in instance_template and map entrance DBC data. 2010-04-17 15:24:49 +04:00
VladimirMangos
25c2a76b63 [9716] Allow to vendor have same items in list with different extanded price. 2010-04-10 05:41:30 +04:00
insider42
da253087cb [9715] Implement required basic elements for dual spec learn gossips.
Required DB data for real work. This is final part required at core side for support.

Also note that commit include

* generic implementation money cost gossip menu items so let
  implement in DB many money cost gossip operations with _fixed_ cost.
* useful CONDITION_SPELL that let implemtn menu item visible if specific
  spell known/don't known also wide used case for diff gossips.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-10 03:09:09 +04:00
crackm
12c3227e32 [9704] Add to achievement_reward support gender dependent rewards.
For example for achievement 1793

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-09 07:11:31 +04:00
VladimirMangos
24f2d03485 [9702] Drop now redundent item_text table.
* In beggining bad news: at 3.3.3 switch has been forgoted item_instance.data field chnage.
  In result items with texts (mail copy in to inventory, some other) lost text content.
* That why in current commit item_text droped without convertion. In result all itesm with texts
  will lost text. Sorry for this as i think small porblem :(
* Now text stored in item itself.
2010-04-09 02:10:36 +04:00
VladimirMangos
b48da9755f [9699] Drop item text ids generation.
Now item text not used as independent object (real item texts associated with item guid)
2010-04-08 22:42:00 +04:00
VladimirMangos
7f7d0624e8 Merge branch 'master' into 330 2010-04-08 02:56:04 +04:00
Revils
724fc87332 [9689] Fixed typo in daily/weekly flags conflict check.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-07 17:14:45 +04:00
VladimirMangos
6bcbbc321b Merge branch 'master' into 330 2010-04-07 06:58:42 +04:00
GriffonHeart
fdddf9188a [9686] Implement support weekly quests cooldowns.
Part code provided by zhenya.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-07 04:24:51 +04:00
VladimirMangos
e45d165a8e [9685] Code style cleanups in quest code. 2010-04-07 03:27:28 +04:00
VladimirMangos
fbf530cb50 [9682] Clarify areatrigger related tables loading errors.
(based on 330 commit 71c1d67)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-04-06 21:37:05 +04:00
VladimirMangos
68190a9a0c Clarify areatrigger related tables loading errors. 2010-04-06 21:34:22 +04:00
tomrus88
d131f137cc Merge remote branch 'origin/master' into 330 2010-04-03 11:33:45 +04:00
Blizzy
09b873a316 [9651] Correct code for quest points of interest.
Adjusting field names and type, and send data accordingly to avoid client crash not using auto-generated id.

Due to the nature of the primary keys, two tables are truncated. Be sure to make backup if you have data you do now want to loose.

In addition, speed up load times of data from quest_poi_points, thanks Hunuza for helping out.
2010-03-31 20:58:40 +02:00
tomrus88
c02dcf45a0 Query fix. 2010-03-31 03:22:48 +04:00
tomrus88
f2572fdda0 Merge remote branch 'origin/master' into 330 2010-03-31 02:29:02 +04:00
VladimirMangos
5c7f6356d6 [9644] Changes in emotes work.
Waypoint/db script/event ai/'.npc playemote' emote data now auto select by emote id way to execute:
oneshot or persistent state

So if in referenced DB data wrongly used state emote as oneshot case this will work in different way now.
2010-03-30 22:13:55 +04:00
tomrus88
4c8dd37612 Merge remote branch 'origin/master' into 330 2010-03-30 13:06:34 +04:00
VladimirMangos
d7c1e06d1b [9636] Move item real-time/in-game duration counting flag to new extraflags field.
Client expected only positive duration values, so stop use duration field as signed.
2010-03-29 09:52:59 +04:00
tomrus88
94cd6abe6f Merge remote branch 'origin/master' into 330 2010-03-28 16:01:46 +04:00
hunuza
d85e4228f1 [9634] Remove fields 'data' and 'zone' from corpse table.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-03-28 13:23:31 +02:00
tomrus88
5a89e063c8 Merge remote branch 'origin/master' into 330 2010-03-27 20:02:17 +03:00
hunuza
af1ce1433d [9628] Fix typo from [8408].
Signed-off-by: hunuza <hunuza@gmail.com>
2010-03-27 11:54:43 +01:00
tomrus88
561c340f95 Fixed typo in mail query.
Fixed SMSG_ITEM_TEXT_QUERY_RESPONSE.
Other misc fixes.
2010-03-25 19:46:26 +03:00
tomrus88
d4647bbeaa Dropped itemtextid field from mail table. 2010-03-25 15:33:22 +03:00
VladimirMangos
a27ff3e79d [9602] Simplify creating mail draft with content text, cleanup includes. 2010-03-18 12:10:47 +03:00
NoFantasy
29b2c80449 [9577] Implement SCRIPT_COMMAND_DESPAWN_SELF (self = creature in this context)
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-12 17:32:24 +01:00
NoFantasy
dbbc45828a [9576] Implement SCRIPT_COMMAND_CREATE_ITEM to use when no spell exist
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-03-12 16:19:34 +01:00
VladimirMangos
c4f3578226 [9571] Create and use ObjectGuidGenerator/IdGenerator template classes.
* This is let finally hide guid structure in ObjectGuid.h/.cpp code.
* Shared related code.

NOTE: while switch to use new clasess one more problem has been detected
with not-safe code in .pdump work for future per-map multi-threading.
It's need rewrited before will possible safe use in like case.
For current single world thread case it's safe.
2010-03-11 16:32:09 +03:00
hunuza
5d84477f7f [9564] Remove some trailing whitespace and add comment for last commit.
Signed-off-by: hunuza <hunuza@gmail.com>
2010-03-10 13:45:41 +01:00
VladimirMangos
6487c24f29 [9545] Rename ObjectDefines.h -> ObjectGuid.h
Also move unrelated generic defines to Common.h
2010-03-07 20:05:32 +03:00
timmit
a30af12772 [9544] Implement CONDITION_NOITEM.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-03-07 16:50:08 +03:00