Commit graph

991 commits

Author SHA1 Message Date
VladimirMangos
f671f09950 [10753] Lost mangos.sql changes in one from recent commits. 2010-11-20 02:59:50 +03:00
VladimirMangos
6154cb3b43 [10749] Convert Gameobject owner to objectguid use. 2010-11-19 20:55:19 +03:00
VladimirMangos
f034a9bd0a [10746] Use objetguid for other .list auras command part 2010-11-19 17:06:33 +03:00
insider42
355f172fc6 [10743] Add AP/RAP bonus data to spell_bonus_data.
Also remove related hardcoded cases.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-19 06:03:19 +03:00
QAston
f27741460f [10742] Add spell_bonus_data.spell_bonus_data field and support for RAP bonuses use for spells damage from table.
Thanks to insider42 for prepering patch for mangos repo.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also added loading check for redundant ap/ap_dot data in table.
2010-11-19 05:23:29 +03:00
NoFantasy
f5e40a5fda [10726] Correct one SQL in tools, table was renamed.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-16 08:54:18 +01:00
NoFantasy
7032423d6f [10704] Add the option to close gossip window in gossip system
Field action_menu_id in gossip_menu_option table can be set to -1 where close gossip is expected, instead of sending a new menu.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-11-08 23:18:58 +01:00
VladimirMangos
a163425b57 [10684] Fixed mangos.sql creature_template default content after adding vendor_id 2010-11-05 21:21:54 +03:00
VladimirMangos
2f144d9d29 [10682] New table 'item_convert' for convertion items.
* Implment vendor at show replace BoA item with reputation requirement
  by identical item without rep. reqs for player that fit this requirements
  of original item.

* Table also can be used for store item convertion data form one team items
  to similar other team items. This case not impement but added function easy
  used for it.

* Note: strict single convert for item not created problem for both way use:
  item converted for same team or all, can't be original item for conversion to
  another team.
2010-11-05 00:41:16 +03:00
VladimirMangos
0bf8b0aa79 [10679] New table npc_vendor_template for comon item data for diff vendors.
In vendor list show own vedor items + template ites if any.
Vendor template item lists selected by id stored in creature_template.vendor_id
2010-11-04 20:22:47 +03:00
Deleterios
549b44d8ec [10664] Rename arena_team_stats fields for better fit to stored values.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-11-01 02:37:10 +03:00
VladimirMangos
f48e768a70 [10662] Implement partly item looting
* Not deleted normal item loot at first loot window close.
* Save current item loot content to DB for later continue looting.
* Cleanup spell effect SPELL_EFFECT_OPEN_LOCK check code
* Cleanup Player::AutoStoreLoot calls
2010-11-01 02:04:08 +03:00
NoFantasy
449a708728 [10660] Make quest for game event be independent of source
Create new table and convert existing data.
Simplify how game event quests are activated during event by adding generic function to set quest active/inactive.
Any quest in game_event_quest are disabled until event start (and deactivated once stopped)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-31 11:35:09 +01:00
NoFantasy
a38f97f71c [10655] Add support for monthly quests
Quest that can repeated each month are set by quest_template.SpecialFlags |0x04 flag
Quest are reset at midnight the first day of each month.
Note: for the time being, quest must also be set repeatable (SpecialFlags |0x01)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-29 20:39:01 +02:00
NoFantasy
331a7e7f5b [10654] Allow creature to offer same quest for more than one game event
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-28 13:26:39 +02:00
VladimirMangos
31c9efd219 [10629] Drop function GuidHigh2TypeId
Added ObjectGuid version Aura::GetCasterGuid()

But for prevent big problen with backporting AuraHolder
to mangos-0.12 in most cases still used old uint64 version
Aura::GetCasterGUID.

Recommended use new version where possible in clean way
as done for some cases in commit already.
2010-10-20 09:12:43 +04:00
VladimirMangos
fdc5a1dd67 [10628] SQL update for prev. commit 2010-10-20 08:23:18 +04:00
VladimirMangos
c955941b55 [10627] Use ObjectGuid for player's selection and unit's target 2010-10-20 08:19:48 +04:00
NoFantasy
77b064e19a [10621] Add new field RequiredClasses for quest_template
* SkillOrClass is converted to RequiredSkill (and then field can contain skill id only)
* Field ZoneOrSort has no longer a function in quest requirement, and RequiredClasses must be used instead where class limits are expected.

To restrict a quest to one class or more, use bitmask of class in RequiredClasses. RequiredSkill works like before.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-10-19 00:33:16 +02:00
nos4r2zod
90e4480439 [10604] A couple more spell_proc_event entries for relics.
Missing items were 38360, 40714, 45509, 45144, 50454, 50455, 50456, 50457, 50458, 50459, 50460, 50461, 50462, 50464.

Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2010-10-13 11:43:19 +02:00
Lynx3d
f41909a14b [10582] Add spell_proc_event data for some relic related spells.
Missing ones were 67356, 67363, 67365, 67379, 67381, 67384, 67386, 67389, 67392.
2010-10-06 22:57:02 +02:00
DasBlub
f3903d2261 [10568] Drop unused column 'realmid' from the table 'character_tutorial' 2010-09-30 22:51:39 +02:00
Laise
0c0a3b4ea8 [10551] Fix 55880 proc 2010-09-27 10:29:24 +02:00
NeatElves
138ee2776e [10550] Fixed field types in mangos.sql in consistant with related sql updates.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-27 12:27:38 +04:00
NoFantasy
19844a6ba1 [10538] Fixing some comments in mangos.sql
Not all sql tools like the mix of comment styles in import of dump, so using inline style.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-26 13:58:46 +02:00
Stillhard
52508eee6e [10537] Fixe typo in command help text.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-26 15:07:06 +04:00
zergtmn
20f4a16f01 [10503] Move *_respawn tables to characters DB.
This allow have in `mangos` DB only world static state data.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-09-19 00:45:21 +04:00
NoFantasy
4e4f74e4aa [10501] Correct wrong character in mangos.sql
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-18 02:08:34 +02:00
NoFantasy
0245efecb7 [10500] Extend SCRIPT_COMMAND_TALK to support random selected text
In addition to adding fields for text id storage (in total 4 text id's), also added a comments field for developers notes in scripts (it may help those being old of age to remember what goes on in a script).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-09-18 01:55:29 +02:00
Tequila
c196045d15 [10457] Fix proc of 51692 and ranks
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-08 11:53:30 +03:00
dpedroia15
326fff975b [10454] Fix 54821 proc
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-08 11:25:48 +03:00
Laise
0cb6f7be0c [10453] Fix disease consume part of 49020 and ranks 2010-09-08 10:47:41 +03:00
lavinelu
87b2ab6ba1 [10437] Fix engineering bonus for injectors
Signed-off-by: Laise <fenrisse@gmail.com>
2010-09-03 08:33:50 +03:00
VladimirMangos
7df3f06d87 [10430] Improve detection removed ranks for spell in spell_chain 2010-08-31 19:04:39 +04:00
VladimirMangos
ef9793dcd4 [10428] Fix line ends :/ 2010-08-31 07:00:06 +04:00
VladimirMangos
2c6fd1685e [10427] Drop redundant data from spell_proc_event after recent spell chain changes. 2010-08-31 06:47:40 +04:00
VladimirMangos
a62d9e2817 [10423] Load most spell chains data from SkillLineAbility.dbc
* Output error for redundent data in table
* Drop detected data from `spell_chain`
2010-08-30 07:37:33 +04:00
Wowka321
63ac861fc9 [10422] Fix 71642 proc conditions 2010-08-29 20:02:16 +03:00
VladimirMangos
0d363cc77a [10419] Check redundant single rank spell data in spell_chain.
Also, add empty lines to end of file and apply code style tosome sql updates.
2010-08-29 07:33:40 +04:00
VladimirMangos
d714cd8b3c [10418] Merge not-skill linked spell lists in spell_chain 2010-08-29 01:19:18 +04:00
Laise
821444445b [10416] fix 71611 proc and remove check for family name if no spell_proc_event is defined 2010-08-28 09:29:04 +03:00
VladimirMangos
5a421a91b4 [10415] Sort triggered spell chains 44203 and 42231 in proper place spell_chain data. 2010-08-28 06:06:40 +04:00
Laise
f42f65ade7 [10411] fix broken sqls for spell_proc_event.. 2010-08-27 19:12:35 +03:00
virusav
c8ae8693a2 [10410] Fix wrong sql 2010-08-27 10:55:40 +03:00
Laise
a0f5c969ed [10409] Restore work of 47230 and ranks 2010-08-26 20:29:30 +03:00
VladimirMangos
82314c364a [10400] Fixed crash in .aura command for spell without auras. 2010-08-22 16:52:51 +04:00
NoFantasy
d0df25fd8c [10381] Implement generic system for racial model selection
Table creature_model_info store creature entry to use model from (or explicit model). The selection is based on a base modelId and racemask.

Hacks for shapeshift models removed (data included in SQL update)
Dropped no longer needed creature_model_info.modelid_other_team, as creature_model_info can and should be used instead (sorry, this is what happen when author doesn't do full research :) )

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-19 16:58:53 +02:00
NoFantasy
821bb9fcc4 [10365] Implement ACTION_T_MOUNT_TO_ENTRY_OR_MODEL (43) for creature eventAI.
Read doc/EventAI.txt for details.
SQL query to update existing scripts are included (convert from using ACTION_T_SET_UNIT_FIELD, field 68)

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-17 19:48:19 +02:00
NoFantasy
db7db6382a [10362] Implement creature_movement_template
Template can be used for several cases:
* Unique creature that are already spawned in database (requires creature.MovementType=2 like guid based creature_movement)
* Summoned creature that has a pre-defined path (requires creature_template.MovementType=2)

Note that creature_template.MovementType=2 should be used with care, and must not be used for creatures that may be summoned in random locations in world.

Added additional startup checks for existing creature_movement-table

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-16 14:39:45 +02:00
VladimirMangos
7e70bba865 [10353] Avoid access to DB at view GM tickets by chat commands.
Also
* Show response text if added at view.
* Show tickets amount at console .ticket use instead unexpected no player error.
* Allow use ticket number in .ticket respond case.
* Some code cleanups.
2010-08-13 05:41:34 +04:00