Commit Graph

190 Commits

Author SHA1 Message Date
megamage
00f4a31b73 [8016] Work at npc click table data use. Author: VladimirMangos
* New fields in `npc_spellclick_spells` for allow set npc spell click mode from quest to infinity
      or to another quest, or from reward quest.
    * Not expect (and forbid set UNIT_NPC_FLAG_SPELLCLICK in DB and set it at `npc_spellclick_spells` loading.
    * Apply some speedups for creature checks affected by spel click state

*Also add target position of 51852. By Roland

--HG--
branch : trunk
2009-06-15 23:07:43 -05:00
megamage
572a9191d9 *Some creature display id update. By VladimirMangos and GriffonHeart
--HG--
branch : trunk
2009-06-15 18:02:12 -05:00
Machiavelli
6ad7da569c *Integrate TicketMgr with ObjectMgr and clean up assosciated code. More features concerning ticket system are to be added soon. Please report any issues, thanks.
--HG--
branch : trunk
2009-06-15 23:58:29 +02:00
megamage
a115091008 [8005] Check model data existance only for initialized creature display ids. Author: VladimirMangos
--HG--
branch : trunk
2009-06-14 10:01:44 -05:00
megamage
d38da3dd05 [8001] Fixed display id checks for creature case. Author: VladimirMangos
--HG--
branch : trunk
2009-06-13 09:45:44 -05:00
megamage
599595ad10 [7998] Raised stackable limit to 1000. Thanks to Seizerkiller. Author: tomrus88
--HG--
branch : trunk
2009-06-13 09:42:46 -05:00
megamage
67a356767d [7995] Check display id correctness for creature and gameobjects. Author: VladimirMangos
--HG--
branch : trunk
2009-06-13 09:40:44 -05:00
megamage
4f44a441c7 [7989] Fixed check in LoadItemRequiredTarget(). Author: AlexDereka
--HG--
branch : trunk
2009-06-11 19:44:42 -05:00
megamage
9d670fe6f5 *Switch to support client version 3.1.3
*I strongly recommend you not to use this until you get the 313 db. Now all destructible buildings cause client crash.

Source: Mangos
Thanks to TOM_RUS for most work to make this switch possible ;)

--HG--
branch : trunk
2009-06-11 00:45:59 -05:00
megamage
a8dbf8904c *Correctly show spellclick flag for vehicles and creatures with info in spellclick table.
--HG--
branch : trunk
2009-06-08 23:43:25 -05:00
megamage
4e130dcdfd [7980] Implement item use target requirements store and check (new table item_required_target). Author: NoFantasy
Signed-off-by: VladimirMangos <vladimir@getmangos.com>

    * Also implement this table reload
    * Static Spell::SendCastResult function for call not from spell code.
      Can be also used in scripts where need send explicitly spell cast error to client.

--HG--
branch : trunk
2009-06-08 17:25:02 -05:00
megamage
6578cce471 *Add column heroic_level_min in table access_requirement
--HG--
branch : trunk
2009-06-08 15:31:04 -05:00
megamage
45516c5e58 [7950] Make clear in error output 2 cases of fail CMSG_ITEM_NAME_QUERY: DB absent data and not expected to exist item. Author: VladimirMangos
--HG--
branch : trunk
2009-06-04 16:09:36 -05:00
panaut0lordv
ee5f4a93a6 *Typohunt - introduction.
--HG--
branch : trunk
2009-06-04 19:23:52 +02:00
megamage
37f4bf6a04 *Fix the bug that triggers are visible.
--HG--
branch : trunk
2009-06-03 21:47:38 -05:00
megamage
8419f9b059 [7945] Implement support quest data for DetailsEmoteDelay and OfferRewardEmoteDelay value for set time ordering details and reward emotes. Author: NoFantasy
--HG--
branch : trunk
2009-06-03 19:23:49 -05:00
megamage
7fd22f063b *Consider model 11686 as trigger and do not allow they to choose random model. This fix the bug that some triggers are visible.
--HG--
branch : trunk
2009-06-03 00:36:44 -05:00
megamage
be52748f70 [7931] Allow GAMEOBJECT_TYPE_CAMERA gameobjects with event field set call DB scripts. Author: NoFantasy
Drop also redundent check preveting use SCRIPT_COMMAND_CAST_SPELL script command by gameobject script triggred casting.

--HG--
branch : trunk
2009-06-01 14:56:54 -05:00
megamage
f92e8315cf [7918] Improve portability in work with uint64 string format specifiers and in code literals. Author: VladimirMangos
* Replace platform seelction MaNGOS code for select format descriptor for uint64 by using ACE define.
      I64FMTD renamed to UI64FMTD for more clear name.
    * Add new define UI64LIT (base at ACE seelction) for build portables uint64 literals.
      Please always use UI64LIT(0x00001) instead less portable 0x00001LL

--HG--
branch : trunk
2009-05-31 16:15:12 -05:00
megamage
452770cff0 [7915] Implement more stricted checks and limitations at loading creature addon data. Author: NoFantasy
--HG--
branch : trunk
2009-05-31 15:58:58 -05:00
megamage
da871e2fc0 *Move addcre/go functions from opvp to objmgr.
*Do not save respawn time for internally added cre/go.

--HG--
branch : trunk
2009-05-31 14:26:57 -05:00
megamage
8d1f4f9ea0 *Provide another way to implement dynamic spawns. Now a creature will call its zonescript before spawn to determine the spawned entry. This can be used to implement zones such as wintergrasp with less data requirement (only need to know the entry of counterpart creatures, not require spawn points)
*Use zonescript as basic class of opvp script and dugeon script (can also be used for bg)
*Store zonescript in worldobject.
*Add door for sapphiron.

--HG--
branch : trunk
2009-05-30 22:15:05 -05:00
megamage
76d0498aae *Allow to spawn correct npc for defender/attacker in wintergrasp based on game event. Now only xxx Champion is spawned based on faction for test. Other npc and gameobjects requires DB support (now in db the defender is always horde and attacker always alliance, and the data of counterpart is missing)
*Fix defenders' portal (now only useable for horde)
*Display random model if the model id in creature table is one of those in creature_template table (in this case they should be 0 actually).

--HG--
branch : trunk
2009-05-30 15:05:54 -05:00
megamage
15633ec97e *Fix spell Rune Strike.
--HG--
branch : trunk
2009-05-30 00:09:50 -05:00
megamage
cc022341ac [7908] Extract class data from creature_*_addon bytes0 fields, drop its, amd add unit_class field to creature_template. Author: NoFantasy
--HG--
branch : trunk
2009-05-29 21:24:23 -05:00
megamage
5101c7c4c5 [7896] Rename creature_template class/race fields to trainer_class/trainer_race for clarify use. Author: NoFantasy
--HG--
branch : trunk
2009-05-27 16:36:09 -05:00
megamage
09b386a786 [7886] Drop use table petcreateinfo_spell
This is first commit in chain for remove oudated and not used pet functionality.

    * Use instead dropped table CreatureSpellData.dbc if creature_template.PetSpellDataId set (mostly hunter pets)
    * Use creature_template.spellN if not set creature_template.PetSpellDataId (mostly different summon creatures)
    * Fixed bug with not removing from action bar spell icon for not ranked unlearned spells.

    Note: summoned controllable creatures without PetSpellDataId must have expected spells in spellN feilds for creature_template.

[7887] Drop pet spell teaching code, including field in character_pet.

Author: VladimirMangos

--HG--
branch : trunk
2009-05-24 12:16:12 -05:00
megamage
c31fc2780b [7870] Implement creature ranged ammo show at ranged weapon use. Author: VladimirMangos
* Use BDC data (creature weapon not alwas listed in item_template)

--HG--
branch : trunk
2009-05-22 16:38:55 -05:00
Kudlaty
3bd9858417 Add a column to npc_spellclick_spells table to check if quest is completed/rewarded or incompleted
1: completed or rewarded; 3: incompleted; default 3

--HG--
branch : trunk
2009-05-22 17:43:14 +02:00
megamage
bd87c96f4c [7844] Fixed mangos string storage index type. Author: VladimirMangos
--HG--
branch : trunk
2009-05-18 15:07:14 -05:00
megamage
f5af5ea9e3 [7834] Mangos string loading code cleanups. Author: VladimirMangos
* Better integration creature event ai strings.
    * Not inclide in checks as expected max mangos strings range value to range

--HG--
branch : trunk
2009-05-15 16:41:36 -05:00
megamage
c15bae5871 [7832] Better check at petcreateinfo_spell loading for errors and redundend data. Author: VladimirMangos
--HG--
branch : trunk
2009-05-15 13:45:34 -05:00
megamage
7277ddd114 [7797] Use DBC data for mount model selection in more cases. Author: VladimirMangos
* Use alt.team mount data for take player team model id if DB not provide own team creature id in spell taxi call case.
    * Remove unddeded hacks for model ids from Spell::EffectSendTaxi
    * Provide spell target for SPELL_EFFECT_SEND_TAXI for spell with target mode 0 for this effect.

--HG--
branch : trunk
2009-05-08 18:49:07 -05:00
megamage
e69d2cbed9 [7776] Completed implementation of CMSG_SPELLCLICK Author: arrai
For vehicles, you have to add the correct SPELL_AURA_CONTROL_VEHICLE spells to
    npc_spellclick_spells, otherwise you won't be able to use them

--HG--
branch : trunk
2009-05-05 16:56:15 -05:00
megamage
92e393deb8 [7761] GuildBankTabPrice vector is replaced by an array. Author: zhenya
Arrays are significantly faster.

--HG--
branch : trunk
2009-05-04 17:32:39 -05:00
megamage
1cfc04f1f5 [7745] Fixed gcc warnings. Author: AlexDereka
--HG--
branch : trunk
2009-05-03 22:21:46 -05:00
megamage
295b634ca6 [7731] Some code cleanups, warrning fixes. Author: VladimirMangos
--HG--
branch : trunk
2009-04-29 00:31:03 -05:00
megamage
09af28301e [7716] Fixed some typos and possible crashes. Author: AlexDereka
--HG--
branch : trunk
2009-04-27 18:42:35 -05:00
megamage
5ac67c27f7 [7715] Provided way for scripts set alternative gameobject state for client show. Author: VladimirMangos
Also use enum for gsmeobject states.

--HG--
branch : trunk
2009-04-27 18:36:10 -05:00
megamage
0c56b79e96 *Merge.
--HG--
branch : trunk
2009-04-20 20:31:20 -05:00
megamage
b57429c44c *Fix a bug in LoadAccessRequirements() that will generate NULL questtemplate.
--HG--
branch : trunk
2009-04-20 18:11:55 -05:00
QAston
cc5414f925 *Correct check range for totem area auras.
--HG--
branch : trunk
2009-04-20 16:48:35 +02:00
megamage
d159e84325 [7689] Batter EventAI loading checks and fix one from possible crash cases. Author: NoFantasy
--HG--
branch : trunk
2009-04-19 18:24:40 -05:00
megamage
f9befe1d3d [7688] Move Get*IfCanInteractWith to Player including renamed IsGameObjectOfTypeInRange. Author: VladimirMangos
--HG--
branch : trunk
2009-04-19 18:23:10 -05:00
Machiavelli
99fc17d44f * Tabs to spaces cleanup
--HG--
branch : trunk
2009-04-19 18:48:20 +02:00
megamage
ad41b0c9e1 *Fix build.
--HG--
branch : trunk
2009-04-17 16:07:54 -05:00
megamage
f0cbed1ad8 *Merge.
--HG--
branch : trunk
2009-04-17 15:29:55 -05:00
megamage
9af93fa834 [7674] Fixed check of DB script string ids from db_script_string at loading. Author: VladimirMangos
--HG--
branch : trunk
2009-04-17 15:16:19 -05:00
Anubisss
96ffb827ae *Better names for var Modelid.
--HG--
branch : trunk
2009-04-16 00:11:48 +02:00
megamage
905833f84e *Merge.
--HG--
branch : trunk
2009-04-15 17:06:38 -05:00