Commit graph

465 commits

Author SHA1 Message Date
VladimirMangos
f8ed87c45e [8803] Update racial spell id changes in 3.2.x
Characters tables not affected, its not include default spells.
2009-11-11 17:02:40 +03:00
Splinter
22fb22ee5e [8800] Implement item 47499 work.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-11-10 21:24:49 +03:00
XTZGZoReX
a34d1509ad [8783] * Fix mangos.sql after [8775]. 2009-11-07 22:04:35 +01:00
VladimirMangos
500858b789 [8777] Fixed spawn mask to correct after recent commits for BG maps. 2009-11-05 14:12:53 +03:00
balrok
c50df41b3c [8775] implement all creature difficulties + support bgs with this
former know as heroic_entry we now have 3 of those
which let us chose different creature_templates for different
map-types

normal maps will need a bit more support to use correct
spawnmodes

but for battlegrounds it works already good:
they are divided by levelrange:
    0-59  == normal spawn -> spiritguides level 60
    60-69 == difficulty=1 -> spritiguides level 70
    70-79 == difficulty=2 -> spiritguides level 80
    80    == difficulty=3 -> spiritguides level 80

this is needed mostly for alterac valley to get
right creature-templates spawned
and with that all creature->SetLevel hacks could
get removed from alterac valley code
2009-11-05 10:48:15 +01:00
Daveh
71c031b478 [8770] Fix dynamic quest levels.
QuestLevel -1 is now to be used for dynamic quest level instead of older 0. DB support needed for update of quests.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2009-11-03 22:20:02 +01:00
VladimirMangos
e078d0dd03 [8769] Implement mails sending at player levelup. 2009-11-03 20:21:11 +03:00
VladimirMangos
78022c0999 [8750] Fix sql update for [8749]. Use this version. 2009-10-29 09:26:08 +03:00
VladimirMangos
3c53dded97 [8749] Rename quest_mail_loot_template to mail_loot_template.
Store loot in mail_loot_template indexed by mail template ids.
Provide new SendMail functions for send mail base at mail template.
2009-10-29 08:57:44 +03:00
VladimirMangos
fad1fb92f4 [8731] Restore difficulty 1 spawn use for creatures with special difficulty 1 versions.
* Rename creature template `heroic_entry` => `difficulty_entry_1`
  Possible need add 2 more fields for 2-3
* Use 2 more EventAI EFLAG_* flags for 2-3 difficulty support, update checks.
* Update area trigger code.

Note: support for specialized creature version for difficulties 2-3 not added yet
      and will be used same as difficulty 1 mode.

TODO: Rename area triggers heroickey/etc fields ?
2009-10-25 06:23:00 +03:00
Andeeria
8baee4a73f [8728] Store current realmid for online account in realm Db account table.
* Replace old `account`.`online` field by `account`.`active_realm_id`.
  It have 0 if account offline.

NOTE: this break all scripts that use `online` field for seelct online characters, and it required update.
But from other side this reolve
* Bug with reset online state active realm at restart another realm.
* Let easy select online accounts for some specific realm if need.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-25 03:22:08 +03:00
Corfen
54a9c6c225 [8726] Fixed spell proc flags for spell 62600.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-24 23:11:01 +02:00
VladimirMangos
1101e3f6b0 [8723] Rename table achievement_criteria_data => achievement_criteria_requirement
And make related renames in code for types, variables and functions.
To make more clear difference achievement createria type from old achievment criteria data type
in DB and code.
2009-10-24 20:50:20 +04:00
leak
455a053b3d [8721] Allow guildmaster to withdraw money before first bank tab is purchased.
Attached sql file needs to be run to repair existing structure.

Signed-off-by: unknown <Jakub@.(none)>
2009-10-24 09:25:44 +02:00
tomrus88
3cc7f36006 [8720] Added missing ReqItem 5 and 6 to database.
(backported from commit 7a722b8)
2009-10-24 04:07:57 +04:00
ApoC
86a6c952b8 [8712] Fixed commit [8708]
* Now final damage counted also with spell bonus.

Thanks Corfen for pointing this out.

Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-22 21:56:42 +02:00
KiriX
eb26f27a21 [8708] Fixed damage from spell 1120 and ranks when target below or equal 25% of health.
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-22 14:12:56 +02:00
balrok
69abc9ece4 [8702] removed startup-error for creature_loot_template id=0
for alterac valley we've defined Player-loot inside creature_loot_template
with id=0
this hack is used, so that we won't need to create an extra table
player_loot_template for just one case

if later more player-loot will be needed, we should implement
new table and remove this

also added sql-fix for reputation of last commit
it will just fix those which are hated by faction 729/730
2009-10-21 23:32:45 +02:00
Corfen
86b60901bf [8693] Fixed glyph 45785
Signed-off-by: ApoC <apoc@nymfe.net>
2009-10-20 23:54:34 +02:00
balrok
e990d5c509 [8688] proper implementation of creatures ghost-flags
this reverts 8676 (9c50d9e70314b0cd9eb0fe3bac8040d64a9965a5)
the new flag is from wdb-files so your database should be
already alright

also i've dropped the function Player::CanInteractWithNPCs
cause it was used only in one place and didn't seem to make anything
easier

NOTE for this flag:
it just means that the creature can be seen by ghost-players
too..
so they are still visible for alive players.. unless a special
aura or ther unitflag (spiritguide/healer) disables this..
(see next commit for it)
2009-10-20 23:34:13 +02:00
balrok
a2ff999fd3 [8676] implemented dead-visible creature flags_extra
with this flag you can specify a creature to be only
visible for dead players - this removes all hacks from
spiritguides/spirithealers from code and allows some other
special creatures

i decided to not implement an extra deathstate cause
actualy those creatures are almost equal to living ones
2009-10-18 21:28:36 +02:00
GalaxyMan
545218fda3 [8618] Implement glyph 42752
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

Also fix typo in mangos.sql.
2009-10-10 17:26:37 +04:00
balrok
45f6a474bf [8608] implement BattleGround Alterac Valley
sql won't be included - please look at your database
providers forum

also note, that creature_loot_template id 0
is used for the loot of dead players in this bg
(after a player died and you remove insignia from him..
he not only drops money - he drops some random items too)

further work must be done in better code for adjusting right
levels to creatures - maybe using something similar like it's
done in heroic instances

also quests and creatures needs some scripts in future

thanks to:
netsky - initial start of this patch
bogie - 2nd person writing on this patch
triply, kapatejib, vladimir - code review and suggestions
arrai - for his great tool and help
and all testers / code contributers - I won't write
down a list, else I would forget most probably one ^^
2009-10-09 18:18:22 +02:00
balrok
ed5130c1c1 [8607] more userfriendly eventcommands
.event start/stop will now output the started/stopped eventame+id
.event activelist got renamed to .event list with optional parameter "all"
so .event list - will list all active events
and .event list all - will list all events including inactive ones
2009-10-09 14:38:58 +02:00
balrok
49c52ddf9c [8600] allow unbinding instances also per map
so command can be called as
.instance unbind all
or
.instance unbind #mapid
now

output also the mapname next to the mapid
for the humanoid users among us ;)
2009-10-08 00:46:55 +02:00
balrok
dc382abdf5 [8596] fixed query from last commit
now i also know what the error caused
old sql made "alter table `characters`.`bugreport`"
but my database wasn't supposed to be called "characters"
and the other db had an index defined over the type-field
2009-10-07 01:00:42 +02:00
balrok
6800ae932b [8595] fixed incompatible mysql
in 8589_06 i got an error:
ERROR 1170 (42000) at line 2: BLOB/TEXT column 'type' used in key specification without a key length

also added delete-queries for 8589_05
2009-10-07 00:31:27 +02:00
VladimirMangos
793102318e [8594] Resync command data in mangos.sql with code. 2009-10-07 01:59:45 +04:00
VladimirMangos
cbfb671af3 [8593] Fixed my typo in mangos.sql. :/ 2009-10-07 01:40:49 +04:00
VladimirMangos
1d9a142237 [8591] Add switch sql update changes into mangos.sql/characters.sql 2009-10-07 00:59:15 +04:00
VladimirMangos
f37f27d3c2 [8589] Merge branch '320' - Switch to support client version 3.2.2A
You need extract new dbc/map/vmaps for correct work.
And apply ofc sql updates that including character convertion.

Special thanks to TOM_RUS for prepering this switch :)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-06 12:59:26 +04:00
VladimirMangos
4e4e9b0c78 Character data field convertor. 2009-10-04 01:44:48 +04:00
VladimirMangos
8b07b82b93 Renumbering sql/320 sql updates 2009-10-03 23:05:44 +04:00
NeatElves
4a2ef99d70 [8584] Remove spell 28734 from mangos.sql
sql updates from [7884] not has been applied to mangos.sql in past.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-10-03 22:44:40 +04:00
VladimirMangos
8ad4f0f10b Restore spell 53563 work at 3.2.x 2009-10-03 07:17:53 +04:00
VladimirMangos
ef19575a59 Update spell code base at mangos_spell_check.sql errors:
* Drop code for spell 781. Not need now for work.
* Move code for 8017 and ranks to expected effect for 3.2.x.
* Drop code for spell 26635. Not need for new way work.
2009-10-03 06:47:34 +04:00
VladimirMangos
5c0e01be8f Remove outdated spell data from mangos.sql 2009-10-03 02:29:01 +04:00
VladimirMangos
59befa2e0e Merge branch 'master' into 320 2009-10-02 19:09:06 +04:00
VladimirMangos
9ee41092df [8573] Fixed sql update name 2009-09-30 20:04:35 +04:00
VladimirMangos
47bf1dbce6 [8571] Avoid use ^ bitmask operation for bool values compare in general.
Also drop HandleSet32Bit logn unused and wrong coded chat command code.
2009-09-30 19:39:44 +04:00
VladimirMangos
fec8a8faa1 [8567] Include DB changes from [8548-8549] into mangos.sql 2009-09-30 02:40:31 +04:00
YuruY
ee884d2791 Support item levels > 255 as expected for 3.2.x clients.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2009-09-30 01:41:43 +04:00
tomrus88
546f7a7fe5 Merge commit 'origin/master' into 320
Conflicts:
	src/game/BattleGround.cpp
2009-09-28 19:52:54 +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
tomrus88
258e19a4a3 Merge commit 'origin/master' into 320 2009-09-22 18:14:06 +04: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