Commit graph

5736 commits

Author SHA1 Message Date
VladimirMangos
acc12cc9ed [11252] One missing case for save non-static spawned creatures. 2011-03-15 21:50:19 +03:00
NoFantasy
7b070a93aa [11251] Add some base code for GAMEOBJECT_TYPE_CAPTURE_POINT
Note that code is only a tiny start to implement these gameobjects, and are most likely wrong in itself as conditions for calling events does not exist yet.
To be used in further development.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-15 11:14:05 +01:00
NoFantasy
167ec0df42 [11250] Fix create position for summoned creatures.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-15 09:43:32 +01:00
VladimirMangos
789f513ede [11249] Lost summon point set for critter 2011-03-15 04:18:10 +03:00
Vinolentus
a6bab82c72 [11248] Clarify and check DBC/SQL storage format field types.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-15 02:55:10 +03:00
VladimirMangos
189e7c08b7 [11247] Prevent attemps save npc data without static spawns
Original patch provided by Vinolentus.
2011-03-15 01:02:20 +03:00
VladimirMangos
52b0748282 [11246] Provide mail template items for offline players
Implemented generation mail template items at mails loading in case when
original mail send in time when receiver has been offline. Before like
receiver not receive items.

Small change in mail.has_items meaning. Now it set also in cases when items
generated for template but none items really added to mail. This not affect
mostly existed code work aceept case when mail with template loading.
2011-03-14 23:20:37 +03:00
NoFantasy
13776fa1e4 [11245] Clarify and provide more details for errors related to table spell_script_target
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-14 10:15:47 +01:00
VladimirMangos
2b65cdb3bb [11244] Collect in CreatureCreatePos data for delayed pos setup into Creature::Create.
* CreatureCreatePos work in 3 modes:
    - exactly provided coordinates/orientation/map/phasemask
    - exactly object + orientation as coordinates/map/phasemask
    - delayed position calculation near provided object at specific dist/angle.
* Use in similar way and for Pet/Vehicle Create functions.
  For Totem created new Totem::Create function with some moved in to it totem specific code.
* This let resolve recent problems with creature spawn and preserve fix for cases when
  Creature::Create addon/script code expected known correct possition for creature.
2011-03-14 06:18:34 +03:00
NoFantasy
44915f6f13 [11243] Allow riding training from other team factions when exalted
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-14 00:01:35 +01:00
DasBlub
a19c308001 [11242] Fix line endings for Visual Studio Solution Files (they need to be CRLF, not LF) 2011-03-12 20:03:22 +01:00
DasBlub
93da372dc5 [11241] Fix some renglish/denglish -> english in config files
For the "MaNGOS-Feeling" (c) I left most of the renglish and typos in there, so you will still be able to recognize it as a MaNGOS file ;)
2011-03-11 23:24:25 +01:00
DasBlub
98a5eb6f0e [11240] Drop dead code from vmap extractor 2011-03-10 22:01:51 +01:00
NoFantasy
99b8c8b34f [11239] Comment out crap added in [11237] and bonk the author for creating it.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-10 20:06:51 +01:00
NoFantasy
0ca45c76dc [11238] Add IsActive check in PointMovementGenerator, as with similar waypointmovement
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-10 19:54:08 +01:00
NoFantasy
fcb4eca715 [11237] Implement conditional check in EffectQuestComplete
A few spells has basepoint value, conditional for successful effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-10 17:13:55 +01:00
NoFantasy
792b5ba343 [11236] Add dummy effect of spell 49859
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-10 11:04:18 +01:00
Kaios
287aa642b3 [11235] Fixed typo in mangosd.conf comment
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-09 19:31:21 +03:00
Iriskin
a9b7f00a9e [11234] Fixed typo in .debug spellcoefs help string.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-09 17:20:58 +03:00
zergtmn
ad1f8a1791 [11233] Better way to get caster GUID of dynamic object 2011-03-08 21:21:43 +05:00
NoFantasy
2469bf946a [11232] Proper check for loot recipient.
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-08 12:57:11 +01:00
NoFantasy
c73e3cbd67 [11231] Add dummy aura effect for spell 43969
TODO: fix spell so that no initial aggro are made. Possibly other requirements are needed for effect.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-08 12:51:29 +01:00
crackm
c3f2a6be77 [11230] Add dummy effect of spell 42793
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-08 10:24:09 +01:00
VladimirMangos
69e01fc349 [11229] Avoid access to Pet in pre-Create relocation 2011-03-07 16:20:08 +03:00
zergtmn
777e4e0fb2 [11228] Correct constant in CalculateRewardHonor
0.1000000014901161 actually is single precision approximation for 0.1 in IEEE 754 standard.
2011-03-06 21:06:37 +05:00
VladimirMangos
ad6ab0bc49 [11227] Fixed item search by guid in bank item slots. 2011-03-06 18:55:18 +03:00
VladimirMangos
275928e504 [11226] More strict checks for insatance data load. 2011-03-06 17:14:06 +03:00
virusav
a3f9d3a4dc [11225] Add comments about spells related to spell 47110
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-06 12:40:48 +01:00
NoFantasy
710dce3f97 [11224] Add script effect of spell 24751
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-06 11:45:23 +01:00
VladimirMangos
5aeda4f28b [11223] Replace direct auras adding from creature*_addon tables by cast spell. 2011-03-06 12:49:17 +03:00
VladimirMangos
51b4556c4b [11222] Move possition setup for Creature and subclases before Create call.
Some called from Create code can req. proper pos setup for creature.
Bad side: But in way how currently code orginized impossible setup excetly position for most
Creature sublasses. So in this part need more work.
2011-03-06 12:47:37 +03:00
DasBlub
c132e54f73 [11221] Fixed typo after recent code move to Spell::EffectTameCreature
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-06 09:20:10 +03:00
VladimirMangos
d3947b2026 [11220] Implement support positive persistent auras
Note this alos have bad side: if some spell wrongly checks as possitive then it will work wrong after.
So report if any.
2011-03-05 23:03:28 +03:00
VladimirMangos
8f3d97d955 [11219] Allow work SPELL_EFFECT_PERSISTENT_AREA_AURA with 0/18 only target modes 2011-03-05 23:00:06 +03:00
dpedroia15
4dd87bd468 [11218] Fixed typo in local var.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-03-05 03:24:15 +03:00
zergtmn
02c1bc6557 [11217] Drop effect indexes from *_addon.auras field 2011-03-05 01:50:49 +05:00
VladimirMangos
5a3f557b19 [11216] Fixed crash at explictly empty string setting for dataDir in mangosd.conf. 2011-03-03 22:06:56 +03:00
VladimirMangos
06fe777f82 [11215] Replace direct code use in .npc tame by spell cast.
Only work different from old way: target creature despawned.
So if this not expected use .respawn to it in gm mode or area respawn.

Code simplification suggested originally by rsa.
2011-03-03 21:33:47 +03:00
VladimirMangos
9312ef7e78 [11214] Implement .debug spellcoefs command
Command show default calculated and DB stored coefficients for spell direct/dot heal/damage.
2011-03-03 18:56:29 +03:00
NoFantasy
ceaca46604 [11213] Always PrepareQuestMenu in PrepareGossipMenu when no conditions are set
This will make life easier for DB devs, as GOSSIP_OPTION_QUESTGIVER no longer need to be filled in to gossip_menu_option table.

Menu option with GOSSIP_OPTION_QUESTGIVER and conditions will work as before.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-02 00:08:48 +01:00
NoFantasy
a5d83cea08 [11212] Add dummy effect of spell 47110
Dummy/script effects of related "sub" spells also.

Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-03-01 08:42:23 +01:00
NoFantasy
56205543bf [11211] Remove obsolete comment
Signed-off-by: NoFantasy <nofantasy@nf.no>
2011-02-28 02:30:29 +01:00
Vinolentus
fe0f42d30c [11210] Set moveflags from CMSG_MOVE_SET_CAN_FLY_ACK to proper mover.
Also check cheating case.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
2011-02-28 01:56:01 +03:00
zergtmn
65b631a8e4 [11209] Some refactoring in Player::BuyItemFromVendorSlot 2011-02-28 01:48:14 +05:00
zergtmn
d1370941ca [11208] Restore cooldown marker work for talent 56342 and ranks 2011-02-28 00:09:40 +05:00
VladimirMangos
cd1465b1e4 [11207] Fixed cheating with item loot with some conditionas.
Thanks to zergtmn for explictly pointing to problematic line.
2011-02-27 21:19:18 +03:00
VladimirMangos
f1899e3b27 [11206] Move visibility self/around to new function and use it.
* Fixed wrong visibility changes in some cases at .mod phase uses.
* Apply phase change to any owned units (not only pets as before).
  It also will applied in more safe way for avoid unexpected lost owner at update.
* Check view point setting auras targets accessability not only at visibility change
  but also at phase change.
* Replace SetVisibility(GetVisibility()) hack like calls.
2011-02-27 19:23:05 +03:00
Neveragain
bef47ce126 [11205] Implement talent 48492 and ranks.
Signed-off-by: Lynx3d <lynx3d@some-imaginary-isp.org>
2011-02-27 15:24:47 +01:00
DasBlub
02a07e6bc7 [11204] Fix mangos_spell_check.sql
Thanks Bobbi88 for pointing out!
2011-02-24 21:31:30 +01:00
Lynx3d
44fd108745 [11203] Implement creating scrolls when enchanting vellum.
Thanks to Lightguard and timmons for original contribution.
2011-02-24 01:23:59 +01:00