Commit graph

883 commits

Author SHA1 Message Date
VladimirMangos
1500be4079 [10308] Fixed mangos.sql after recent changes. 2010-08-02 04:05:29 +04:00
NoFantasy
c6f2f16e05 [10307] Rename two tables to prefix scripted_, making the tables have consistent names
Both tables (areatrigger / event_id) are used explicit to store ScriptName for script library use.
In addition rename to ScriptName in instance_template

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-08-01 23:10:37 +02:00
NoFantasy
2ad9cd34b2 [10299] Add new script call ProcessEventId
Let script library know when some event is about to start. Event id's may be found in several sources, such as spells, GO's and transport/taxi paths.
Database scripts may be prevented by returning true from script side whenever needed. If false, DB script will run like normal.
New database table event_id_scripts will need a ScriptName for the event id, in same way as for example areatrigger_scripts.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-31 17:52:38 +02:00
NoFantasy
2ae0badf48 [10289] Adjust creature models system
This change will:
* make it easier to use cached data directly without any modifications
* correct issues regarding invisible models
* simplify certain aspects of model selection itself and make it somehow easier to control and maintain special cases.

Two new fields added to creature_model_info, to store modelid_alternative and modelid_other_team
* _alternative holds an alt. model, for cases where gender are the same, or is not male/female.
* _other_team is generally used for totem models, but may have future use.

This commit will possibly break a few things (visually) and will require DB projects to update their creature_template models data.
It is advised to use cache data as-is, and in addition fill creature_model_info for certain models, totems in particular, for expected appearance.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-30 16:40:17 +02:00
zergtmn
119e97a1a1 [10286] Use unsigned type for creature_addon.guid
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-30 02:54:18 +04:00
NoFantasy
fb1e8c01ef [10270] Implement basic system for reputation spillover
* Database table needs data for each faction that should give spillover to other faction(s). One faction may give spillover to max 4 other spillover factions.
* The spillover rate is multiplied with the points after bonuses and reward rate is set, Rate is given as: 0.5 for 50% gain, -1.0 for 100% loss, etc
* It is possible to restrict spillover faction by rank. If player has a higher rank with the spillover faction given in database, no spillover will be given towards this faction

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-25 17:05:34 +02:00
VladimirMangos
8a3a03e0a6 [10263] Not allow listing pool elements in more one pool.
NOTE: sql update remove forbided by commit duplicates from pool_* tables in random way.
      So for more porper results DB better manually check and fix before apply it.
      This is mostly note for DB projects devs.
2010-07-24 18:49:32 +04:00
Salja
84dbc4c698 [10262] Fixed table auction name in characters.sql
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-24 18:27:54 +04:00
VladimirMangos
129973569d [10260] Move pre-0.16 release sql updates to subdir 2010-07-24 18:21:49 +04:00
porteyoplait
5951ebeacc [10257] Fixed typo in "alliance" in recent commit changes.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-24 15:27:27 +04:00
VladimirMangos
9a6535963c [10256] New auction command with subcommands for look different auction stores from anywhere. 2010-07-24 14:29:38 +04:00
VladimirMangos
e3befa2072 [10254] Remove dependence auction data from auctioneer guid.
* Field `auctioneerguid` replaced by `houseid` and table reanmed to `auction`
  (it list auctions and `id` is auction id).
* Update related code.

* SQL update fill `houseid` field by old `auctioneerguid`
  BUT: SQL update expect that you world DB named `mangos`.
  If this not true for your case you need modify SQL update BEFORE APPLY
  in 2 placed in part "mangos.creature AS c, mangos.creature_template AS ct"

* Another small possitive result: now possible easy select auctions related
  to some auction store (1-3 is one team actions, 4-6 another team auction,
  and 7 is neutral auction store for both teams
2010-07-24 01:45:59 +04:00
NoFantasy
61990de6dd [10252] Implement reputation_reward_rate for quests and creatures
* In addition, implement "flat" reputation for quests, where a value in RewRepValueN is given. Human diplomacy will not affect the total. The rate however will be applied, where a faction is defined with a rate for quests. Value in database are expected to be *100 of the actual value given (before rate are applied).
* New database storage can contain rates for quest/creature/spell reputation and will affect the base value given as reward. When for example the quest reward for a faction should receive 30% more reputation points, the rate can be set to 1.3.
* This will fix issues with certain quests that are using the expected RewRepValueId but where the outcome has been lower than expected.
* Note that if the rate is set to 0.0 it will disable reputation gain for the faction and type.
* Reputation rate for spells (spell effect) is not yet implemented

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-07-23 17:50:36 +02:00
VladimirMangos
50c2e8eca2 [10251] Clarify error message for one from redundent commamd data case. 2010-07-23 19:34:23 +04:00
VladimirMangos
40ec688b2c [10244] Implement .stable gm command for open pet stable anywhere.
Maybe command not so useful for stable case because spell can be learned,
but it example how can be packet allowed depndent from player possibility
when some functionality base at many packets recieved from client.
Same way possible can be used for auction anywhere, maybe some other cases.

Also it will very usefull for 2.x/1.x branches where no another way... ;)
2010-07-22 08:49:15 +04:00
Lynx3d
4f0f701b63 [10239] Fix mangos.sql
I just had to forget one thing...
2010-07-21 03:33:30 +02:00
Lynx3d
a4a6a7a609 [10237] Implement additional damage proc on hit for Spell 8024 and ranks. 2010-07-21 03:19:52 +02:00
VladimirMangos
093db9c033 [10223] Implement spell 44572 affect to permament stun immuned targets.
This also fix unexpected triggering effect any unrelated spell casts.
2010-07-19 06:53:01 +04:00
VladimirMangos
98ae9efbc6 [10220] Fixed typos in mangos.sql
* Typos in `1playercreateinfo_*` tables. Thanks to Astoria.
* Lost recent field rename in `item_template`. Thanks to bobi88.
2010-07-18 22:54:58 +04:00
Laise
5a1a40719c [10219] Fix spell 36032 stacking and procs 2010-07-18 20:02:13 +03:00
crackm
7bb8b2bedb [10217] Update playercreateinfo_action/playercreateinfo_spell
* Drop some food action buttons
* Drop attack spells for caster classes
* Use expected simlifed spell version 20154 (it replaced by full version at learn spell 53408 and similar)
  In code used helper code for support 2 versions as fake non-stacking ranks.
* Some other old "max ranks" of talents and spells now are permanent bonuses known from start (only "max rank" for spell exist)

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-18 12:26:12 +04:00
crackm
624b45f333 [10208] Add proper data for character orientation at creating.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-07-17 20:04:38 +04:00
VladimirMangos
20a5551739 [10207] Implement ITEM_FLAGS2_EXT_COST_REQUIRES_GOLD use instead sign of ExtendedCost field. 2010-07-17 19:23:38 +04:00
Lynx3d
f2e3881a77 [10205] Correctly implement flying mount restrictions in zone 4395 by use of special area flag.
Also drop existing spell_area entries if exist, workaround not needed anymore.
2010-07-17 05:53:17 +02:00
VladimirMangos
4e16982d18 [10203] Rename item_template.Faction to Flags2 and define some values for it.
Thanks to Shauren for research flag ITEM_FLAGS2_COST_REQUIRES_GOLD meaning
and inspiring in general what must be done long time ago with field rename
and other enum values listing.
2010-07-17 04:51:25 +04:00
VladimirMangos
f8efc2b5b3 [10197] Add to playercreateinfo original player orientation field.
It still not filled. Patch with correct values welcomed ;)
2010-07-15 22:25:27 +04:00
VladimirMangos
93e06f945e [10171] Clarify acoount password/lock command errors. 2010-07-09 23:20:39 +04:00
Laise
f5565c725a [10160] Fix sql for character_aura and pet_aura 2010-07-08 17:52:36 +03:00
Laise
a4c197681b [10159] clean-up after recent changes 2010-07-08 13:30:08 +03:00
Laise
a32b3063a2 [10156] Add shared object for auras of same spell and move spell proc code to its own file, also spread procs by auras and effect indexes. 2010-07-07 19:08:26 +03:00
Lightguard
ba5de6eb8c [10148] Improve .gm ingame command
Thanks to Vladimir for suggestions
2010-07-04 00:30:36 +02:00
przemratajczak
8d80906296 [10131] Fix spellpower bonus received by 54181
Signed-off-by: Lightguard <Lightguard@tauri.hu>
2010-07-01 10:17:15 +02:00
schmoozerd
9379e3b81d [10125] Add pool/event ids to diff creature/gameobject list output commands.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-30 20:45:12 +04:00
NoFantasy
b8942160be [10119] Add model data for undead player that got lost for rev 10109
Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-29 09:54:55 +02:00
NoFantasy
bb3b0bd598 [10109] Add and use actual bounding_radius/combat_reach per model for characters.
Data are stored in same table as for creature (like dbc models data), and provides the default values for playable races.
Currently the bounding and reach are applied only at creation and load. Note that these values are modified by scale. For player case, scale is always 1.0 as default.

For later, auras and spell effects that change scale and/or modelid must in addition make sure bounding_radius are updated accordingly to the new scale and/or model (combat_reach does not seem to be affected by such changes, and is always 1.5 for players).

Signed-off-by: NoFantasy <nofantasy@nf.no>
2010-06-27 01:31:51 +02:00
schmoozerd
4e1c8a2ad6 [10107] Pool/event info in .npc info and .gobject target commands
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-26 18:56:22 +04:00
VladimirMangos
a504b4d200 [10106] More modes for .go commands
* Now '.go' command can be used with creature_entry/gameobject_entry shift links (output of .lookup creature/object commands)
* Now '.go object' command sipport id-mode and name part mode similar .go creature case: .go object id #gameobject_id or .go object $namepart.
* HandleGoHelper use in more commands also.
2010-06-26 17:26:00 +04:00
VladimirMangos
8e6410d639 [10089] Change in event system work with pool system.
* `game_event_pool` dropped and related in momory data generated
  based by another pool tables content.

* Pool work with spawed at event and despawned at event object now different.
  - If object listed in `game_event_*` as spawned at event start and it's part of some pool
    then all other pool object must be listed as spawned with this event start, and more,
    if pool has mother pool, then all mother pool members must have objects spawned at this
    event start. More short: all object of some top (not have mother pool) mitbe or listed for some event start spawn,
    or not listed for any event start spawn.
  - If object listed in `game_event_*` as DEspawned at event start and it's part of some pool
    then nothing special required for other pool objects. Event systemwil command to pool system exclude for spawning and despawn referenced
    object until event end.

* Many checks has been added at event/pool data loading.
* Changes fix crashes related to event/pool common work.

Thanks to NoFantasy for help in research original problems and ways for improve code.
2010-06-21 06:13:02 +04:00
VladimirMangos
a2a50c11be [10087] Move table in more expected mangos.sql part 2010-06-20 21:49:47 +04:00
VladimirMangos
619f01e150 [10086] Implement use .go command with shiftlinks or player name.
* Now if for .go command provided no X Y Z args command will not teleport player to nowhere.
* Instead command allow used with player name and work as simplifed .goname
  (teleport to player _point_ in user instance binding, not to player instance)
* Also command can be used with diferent point coordinates provided shift-links:
  - player (result for example .lookup player account)
  - creature (result .list creature command)
  - gameobject (result .list object command)
  - tele (result .lookup tele)
  - taxinode (result .lookup taxinode)
2010-06-20 07:13:20 +04:00
VladimirMangos
e82f4fbd29 [10058] Add to mangos.sql data from 09720_01_mangos_spell_proc_event.sql
Thank you to NoFantasy for pointing to inconsistance.
2010-06-15 02:15:08 +04:00
VladimirMangos
aa5dfc2895 [10056] Re-add spell proc sql data from [7879].
* It not has been added in commit time to mangos.sql
* It alsow required data updating in family masks.

Thank you to NoFantasy for reseatch problem :)
2010-06-14 20:13:24 +04:00
VladimirMangos
f520c9b1e0 [10051] Fixed talent 58426 broken after 3.3.3 switch.
Also cleanup character auras from wrong duration auras.
2010-06-12 04:32:33 +04:00
VladimirMangos
e1766a3adb [10045] Frop unexpected custom rank data for 26016.
This make spell rank use first rank data.
2010-06-08 17:31:10 +04:00
VladimirMangos
8e9a201ea0 [10044] Generate talent related spell_chain data instead storing its in table.
* Drop now redundant part of data from `spell_chain`.
* Allow store in spell_proc_event cusom ranks data for ppm for chained ranks.
* Drop now redundant part of data from `spell_proc_event`.
2010-06-08 01:51:32 +04:00
AbsoluteZero
32bed90aa9 [10036] Fixed health restore and triggering cooldown for talent 30881 and ranks.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2010-06-06 18:39:08 +04:00
Ceris
7ed98198a7 [10022] Fix damage for 14278 and 16511 and ranks when dagger is equipped
Signed-off-by: Laise <fenrisse@gmail.com>
2010-06-02 18:39:59 +03:00
Laise
1750f61d73 [10018] Add 16246 proc to mangos.sql 2010-06-01 09:02:15 +03:00
VladimirMangos
e4adbc29e6 [10017] Make spell_proc_event.SchoolMask unsigned.
Also use byte length hex for school mask in mangos.sql data.
2010-06-01 06:26:57 +04:00
VladimirMangos
86439e14ad [10015] More redundant data check in spell_proc_event 2010-06-01 04:45:50 +04:00