Commit graph

389 commits

Author SHA1 Message Date
VladimirMangos
fec8a8faa1 [8567] Include DB changes from [8548-8549] into mangos.sql 2009-09-30 02:40:31 +04:00
balrok
db7c9f4fc1 [8549] Eventloading check
Through the eventsystem can be quite complex and errormessages should
be quite meaningful for finding mistakes in sql
I decided to create another table in database
This table will just contain the map,event1,event2 and a human
readable description of every event
the primary key is over map,event1,event2

this table will be outer joined with bg_creatures,bg_gameobject
so every inner-join part will just match those events and create no error

but every outer join part will mean there was something wrong
(either a spawn which has no existant event, or an event where no spawn is
inside)

also this table is very useful for db-developers, to see which events exist
without looking into code and understanding the logic behind the code

also please note:
those error-checks don't (and can't) report every mistake..
for example if you have an arathibasin node - and add just one creature in this
event - this system won't look, if you've spawned all needed gameobjects and so
on..
an idea would be to add to this table how much gameobjects and creatures have to
be there at minimum - but i doubt that this will be much helpful
also i won't stop battlegrounds from loading if not all events do exist
(just cause i see no need in it)
2009-09-28 16:44:02 +02:00
balrok
538c5c257e [8548] implement db supported battleground eventindexes
those eventindexes will then be used by the battleground-code to decide
which creature belongs to which objective
for example all creatures in alteracvalley which are standing around a tower
will belong to one eventindex then.. the eventindex will be defined through the code
and must be proper documented for db-devs
2009-09-28 16:41:00 +02:00
Win32
7768d5f3e7 [8521] Implement glyph 42744
Patch added with improvement in code suggested by Shendor.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-21 17:25:43 +04:00
Shendor
b1cb25e92f [8516] Implement spell 53271.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-20 23:59:01 +04:00
Ambient5
64e753f169 [8514] Impmlement unleashing effect for possitive seals that not have special stored spell id for this.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-20 20:26:41 +04:00
Maxxie
81a4eabe34 [8511] Limit talent 57472 triggering to only spell spell 17 and ranks as expected.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-19 19:17:18 +04:00
NoFantasy
744c6eaac0 [8505] Set character spell 16857 active.
Applies to some characters upgraded from 2.x.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-16 11:05:42 +02:00
nos4r2zod
ac56f62684 [8504] Update old spell version to spell 21084 in some playercreate_* cases.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-16 12:48:34 +04:00
NeatElves
139bceb6a0 [8499] Add data to spell_elixir for absent 3.x elixirs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-14 23:47:53 +04:00
dele
c45362a9fc [8498] Implement talent 53234 and ranks.
(cherry picked from commit 510b81f53bbe59beccbc113a802b3f9b1e669e3a)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-14 12:20:48 +04:00
Fog
b276b05363 [8495] Add absent ; in sql update that can create problems in merged sql update sequence.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-13 22:19:50 +04:00
VladimirMangos
610703c14b [8492] Implement talent 53563.
Original patch suggested by Arthorius.
Added data in mangos_spell_check to remember requirement update code for 3.2.x support in future.
2009-09-12 11:04:03 +04:00
VladimirMangos
692f32c82a [8491] Add absent empty line to end of sql updates.
Thanks to mns for pointing to problem.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-12 04:17:25 +04:00
cccyril
da44f2efe7 [8488] Update and add some coeficents for spells in spell_bonus_data.
With related `spell_chain` data.

Added version is result additional fixes and improvments made by nos4r2zod.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-11 22:03:22 +04:00
VladimirMangos
eae9619f5b [8488] Use more readable style format for spell_bonus_data data.
No real changes in data.
2009-09-11 19:57:48 +04:00
nos4r2zod
d91f2c2c35 [8487] Fixes in paladin seals and related spells.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-11 06:08:40 +04:00
burned
af4c9750e3 [8482] New flasks for 3.x added to spell_elixir.
Signoff-by: VladimirMangos <vladimir@getmangos.com>
2009-09-10 05:25:28 +04:00
The_Game_Master
bf7c15a5a6 [8469] Fix possible garbage in character_spell after [8416]
Removed in sql update spell not expected to be listed in character_spell
long before [8416] as dependent, but reported as partly listed. So do cleanup.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-05 04:36:04 +04:00
Athor
7f444189c6 [8462] Fix database table to allow emote id bigger than 255
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-09-04 02:33:24 +02:00
VladimirMangos
69fbe1e82f [8451] Implement talent 47236 and ranks.
Added changes base at merge of patches suggested by pasdVn and Astellar.
2009-09-02 06:43:00 +04:00
VladimirMangos
4d0088e7a9 [8444] Prevent spawn gameobjects with invalid displayid by command.
Also fix mangos string for not existed gameobejct entry.
2009-08-31 23:10:42 +04:00
VladimirMangos
5cf72882ad [8433] Implement proper store and use character specific account data.
* Base at TOM_RUS reseach save/load character specific account data in new table `character_account_data`
* Move its in sql update from `account_data` to new table.
* For client packets that can be send in loggined state or just after logout but assocualted
  with recently logout character add new login status STATUS_LOGGEDIN_OR_RECENTLY_LOGGOUT
* Store low guid for loggedin player or recently logout into WorldSession.
2009-08-29 11:26:57 +04:00
VladimirMangos
fdb2842f60 [8425] Implement SPELL_EFFECT_LEAP_BACK and spell 781
* Move CMSG_MOVE_KNOCK_BACK_ACK (player case) to Unit::KnockBackFrom
* Implement creature case, most at hack way currently :(
  Need information about expected server packet, and possible some disorientation movegen apply at short time.
* In adition of spell 781 implement related creature versions.

* Fixed warnings spawn at reading CMSG_MOVE_KNOCK_BACK_ACK, CMSG_MOVE_HOVER_ACK, CMSG_MOVE_WATER_WALK_ACK.
2009-08-27 05:27:45 +04:00
VladimirMangos
3c22e14e53 [8423] Fixed typo in mangos.sql. 2009-08-26 08:48:34 +04:00
VladimirMangos
8231eed7bf [8420] Update and continue fill mangos_spell_check.sql. Small related code cleanups. 2009-08-26 02:33:03 +04:00
VladimirMangos
208c84556e [8416] Fixed problem with double cast form passives at loading.
* Drop learning form passives at form psell learning, and cast it explictly from code in all cases.
* Drop cast form passives at learning.
* Note: talents that have dependent form time passives still work in original way: learned and casted at learn if need.
* Drop hack for spell 24907 casting at form apply: it casted fines as result normal triggered effect in related form spell.

Original patch provided by nos4r2zod.
2009-08-25 08:45:49 +04:00
VladimirMangos
261ad1c5df [8412] Update some new and old client supported shift-links to proper format.
* List all client and server side supported shift-link types updated in Chat.cpp
* Now Henchant anf Hglyph links can be used in commands as spell links.
* Hitem and Hquest links changed to client supported form.
2009-08-24 02:44:19 +04:00
Triply
efa24ced49 [8409] Fixed guild creation date loading, and added another guild loading optimization - last one.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-23 18:13:09 +02:00
Triply
38fa6b241c [8402] Optimalized guild_eventlog and guild_bank_eventlog loading from database.
Added config options to set count of eventlog records stored in DB.
Attached SQL files will DROP existing and create new tables. Make sure you create backup (if you need old data).
Renamed few variables in Guild class.
Signed-off-by: Triply <triply@getmangos.com>
2009-08-21 09:42:21 +02:00
nos4r2zod
e07a0d9652 [8399] Prevent stacking well fed buffs.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-21 06:00:08 +04:00
VladimirMangos
ab38b58b12 [8398] Restore proper line-ends in touched sql files. 2009-08-21 03:05:21 +04:00
NoFantasy
9fdfd9f487 [8397] Remove no longer needed ranks of spell 7386.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-08-21 00:49:27 +02:00
VladimirMangos
9eb5a3eea1 [8394] Fixes for some non-self only positive spells.
* Propertly reject self targeting for pet spell 2947 and ranks, and spell 54646.
* Some related fixes for pet spells with target mode TARGET_SINGLE_FRIEND_2
* Implement original caster bonus part of spell 54646.
2009-08-20 00:26:34 +04:00
Den
055aa46a8f [8392] Implement 47569 and ranks work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-19 07:05:44 +04:00
VladimirMangos
c26c7395a1 [8377] Resolve some spell_area problems in GM and non-GM mode.
* Make spell 40216 and 42016 casted/remove at aura 40214 apply/remove.
  And drop related spell_area possible existed data.
* In general restore apply area limitations to spell casting in GM mode.
2009-08-17 00:40:19 +04:00
arrai
e7b63e759f [8376] Fixed mangos.sql after 8364 2009-08-16 16:46:19 +02:00
Fog
4aee78d2fb [8364] Implement possibility reset client cache data from server side.
Implemented 2 way set cache data "version":
* New db_version.cache_id field let set cache data version by DB content creators.
  This can be used for content releases by seting some unique value at each release.
  This value used by default.
* New mangosd.conf config option let set (overwrite DB value) or use 0 for ignore.
  This can be used by serever admin for reset cache at some local changes.

Note: values use at client login and then must be unique for long period time to avoid ignored
      at login some long not connected client with old same cache version value.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-13 21:08:36 +04:00
VladimirMangos
964046eb3a [8361] Avoid apply bonuses to item 32262 drain life. 2009-08-13 03:49:48 +04:00
pasdVn
6a4b79cdc2 [8342] Iplement talent 53252 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 17:48:12 +04:00
ApoC
6d9448dd7f [8339] Improved storing/restoring BG entry point
* Introduced new table character_battleground_data
* Entry point is now stored on BG enter event not join event
* Entry point for dungeons is now correctly set to nearest graveyard
  (this prevent well known assert in GetInstance because of porting to already destroyed instance)
* Teleporting from BG correctly restore mount state
* Teleporting from BG correctly restore taxi flight
  (in multipath flight you will end up in nearest transition point on the route)

Signed-off-by: ApoC <apoc@nymfe.net>
2009-08-09 11:00:37 +02:00
VladimirMangos
a2b952b15e [8333] Move sql updates related to 0.13 release to sql/updates/0.13
You can still used its (for example to upgrade DB from 0.12 state)
but its will not included in installed sql updates list at Unix/Linus
for speedup 'make install'.
2009-08-09 02:31:38 +04:00
rilex
175d1c5551 [8332] Add non-unique key accid for realmcharacters table for speedup queries by this field.
Just note about related _not_ mangos bug: this table _expected_ to have primary key by pair (`realmid`,`acctid`).
If used DB not have it for table, then this wrongly setup of DB.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-09 01:49:59 +04:00
Nevan
0a534fda64 [8310] Implement item set 73/824 (4) bonus.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-05 01:51:15 +04:00
Necro
4841fae910 [8294] Some playercreateinfo_action fixes. Also DK food initial amount fix in code.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-08-02 09:44:48 +04:00
VladimirMangos
ebac9a23de [8293] Some progress in spell_check fill. 2009-08-02 01:39:47 +04:00
VladimirMangos
3fc547e6e6 [8283] Implement 3.x way work for double damage from 35290 and ranks 2009-07-31 17:09:54 +04:00
Lutik
f0a878bf1e [8265] Add boss spells 64422 and 64688 to divided damage spells list.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-28 14:29:14 +04:00
Alez
a4baef0c47 [8254] Internal cooldowns for some item effects.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also add lost chain data part to mangos.sql from prev. commit.
2009-07-26 20:49:09 +04:00
Den
110ff906e8 [8253] Some spell proc fixes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-07-26 20:33:31 +04:00