Commit Graph
143 Commits
Author SHA1 Message Date
megamage e03b7cd4d7 *Change react state of guardian back to aggressive. Instead check threat radius in canstartattack to prevent them attack too far target.
--HG--
branch : trunk
2009-08-15 14:30:14 -05:00
megamage e94295fe42 *Fix function disappearanddie to make creature disappear immediately without death visual.
--HG--
branch : trunk
2009-08-14 22:26:07 -05:00
maximius 2fd68eab44 *Add Dual Spec support, original by EnderGT, thanks to Thyros and XTElite1 for helping me test :)
--HG--
branch : trunk
2009-08-14 17:24:52 -07:00
megamage 656cb8a318 *Remove some incorrect use of removefromworld in scripts.
--HG--
branch : trunk
2009-08-13 10:21:57 -05:00
megamage f0c8efea55 *Fix the equip visual of quest endless hunger.
--HG--
branch : trunk
2009-08-11 22:20:34 -05:00
megamage 9403ff03e7 *Only use m_isWorldObject to check if an object is in grid or world.
--HG--
branch : trunk
2009-08-11 16:14:45 -05:00
Rat 35cf6778de *added script for training dummies
*added new creature extra flag (CREATURE_FLAG_EXTRA_NO_SKILLGAIN) if set creature won't increase player's weapon skill

--HG--
branch : trunk
2009-08-04 12:38:35 +02:00
QAston 2ff21d4cef *Implement Aura Type 247 (SPELL_AURA_CLONE_CASTER) and 279 (SPELL_AURA_INITIALIZE_IMAGES)
*Handle CMSG_GET_MIRRORIMAGE_DATA opcode.
*Save Minions follow angle to allow themmoving in a formation
*Improvements in SpellAI: correctly evade and select attack target for creatures without threat list
*Use SpellAI instead of PetAI for not controllable guardians
*Only guardians with SUMMON_TYPE_PET are controllable now
*Add script and template data for Mirror Image.
*Thanks to Drahy for help.

--HG--
branch : trunk
2009-07-22 17:10:30 +02:00
megamage ffcbd11b2c [8190] Update killing quest objectives base at creature_template KillCredit fields. Author: GriffonHeart
Note: for avoid double counting must be removed C++ scripts and EventAI scripts that do same thing in old way.

    Signed-off-by: VladimirMangos <[email protected]>

    Also implement KillCreditN field check at loading.

--HG--
branch : trunk
2009-07-20 12:30:37 +08:00
megamage e1d93bd00f *Backup your DB!
[8098] Support uint32 spell ids in code. Author: VladimirMangos

    * Propertly work with uint32 spell ids in player action bar
    * Fix in same time bug with not save equipment set button with id==0
    * Merge misc field in character_action and playercreateinfo_action to action field as 3 byte
    * Propertly load uint32 spell ids from character_spell
    * Fixed types for some pet/creature related structure for spell id storing.

--HG--
branch : trunk
2009-07-01 18:07:20 -05:00
QAston 69f36d7af4 *Send threat messages to client - thanks to megamage for research.
--HG--
branch : trunk
2009-07-02 00:03:57 +02:00
megamage fe89fbfbdb [8057] Move code from Event AI to class Creature function for reuse in other scripting cases. Author: NoFantasy
--HG--
branch : trunk
2009-06-27 15:37:33 -05:00
QAston a74ae18739 *Merge tc1 commits 1582-1590
--HG--
branch : trunk
2009-06-27 15:29:06 +02:00
Muhaha eab85d9d6e * Added LowerPlayerDamageReq function from TC2
* Akama is summoned after the illidari council has been deafeated. (remove your akama spawn from creature db)
* Dampen Magic timer
* Merging mother from TC2

--HG--
branch : trunk
2009-06-20 02:54:03 +02:00
megamage 39d3b492fe *Update creature damage calculation.
--HG--
branch : trunk
2009-06-19 17:13:36 -05:00
megamage c4a8da0e32 [8040] Implement Creature::ForcedDespawn and ACTION_T_FORCE_DESPAWN for EventAI. Author: NoFantasy
--HG--
branch : trunk
2009-06-18 17:05:01 -05:00
megamage 6fd4113cda [8033] Update max vendor item list for client 3.x.x Author: VladimirMangos
--HG--
branch : trunk
2009-06-17 18:38:51 -05:00
megamage c6765f9365 *Allow to force to respawn creatures.
*Save creature data for vehicles.
*Change some visibility update sequence of respawned creatures.
*Fix bugs of quest 12687: dark rider may not be on horse / horse cannot be used twice / horse does not respawn at correct phase

--HG--
branch : trunk
2009-06-17 01:01:39 -05:00
megamage 572a9191d9 *Some creature display id update. By VladimirMangos and GriffonHeart
--HG--
branch : trunk
2009-06-15 18:02:12 -05:00
megamage b9610f27dd *Check movementflag to interrupt casting instead of checking position.
*Also some other fixes about movement flags.

--HG--
branch : trunk
2009-06-15 12:02:55 -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
Machiavelli 1c97b2bf79 Merge
--HG--
branch : trunk
2009-06-11 17:56:20 +02:00
Machiavelli 6eaf6e962a * Change name of recently added scriptAI functions to better reflect purpose
* Fix typo in 3910_world.sql, spotted by irish

--HG--
branch : trunk
2009-06-11 17:54:59 +02: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 b0fa2172e3 *Fix a crash in 3896.
--HG--
branch : trunk
2009-06-10 09:46:32 -05:00
Machiavelli ee9beadbc2 Merge
--HG--
branch : trunk
2009-06-10 08:45:45 +02:00
Machiavelli f137dc02ec * Better fix for issue that players are unable to loot creatures when the HP of the creature is changed via a script. Do not use rev before this.
--HG--
branch : trunk
2009-06-10 08:44:10 +02:00
megamage 853432b201 *Fix a bug that creature ignore LOS in assistance case.
--HG--
branch : trunk
2009-06-09 19:55:15 -05:00
Machiavelli d065bbf410 * When checking if players are eligible for reward after killing a creature, check for minimum of 50% of 'cur_health' prior to combat rather than max health. Fixes Murmur loot issue.
--HG--
branch : trunk
2009-06-10 00:41:29 +02:00
megamage ebfb4c0558 [7971] Implement support exotic pets limtations related to hunter telent 53270. Author: VladimirMangos
Note: before this commit hunters can tame exotic pets like any other.
          After patch like not propertly contriolled pets will auto-dismiss at loading
          if talent not learned.

--HG--
branch : trunk
2009-06-06 20:31:23 -05:00
megamage 8bb75918a8 [7951] Mope call for help code to function form Event AI code to allow use it from C++ scripts also. Author: NoFantasy
--HG--
branch : trunk
2009-06-04 16:10:26 -05:00
megamage d0878ec414 *Fix the bug that shaman/druid/mage pets do not have scaled stats
--HG--
branch : trunk
2009-06-01 23:45:00 -05:00
megamage d83658c821 *wintergrasp: allow players to click titan relic to change the attacker/defender teams. Now only some of npc and portal will be changed.
--HG--
branch : trunk
2009-05-31 22:45:32 -05:00
megamage 76e4dfe8dd *Store creatureData and goData for creatures and gos.
--HG--
branch : trunk
2009-05-31 21:04:04 -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 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 451471d438 [7904] Change creature damage calculation formula. Author: Seizerkiller
* Add new creature_template field `dmg_multiplier`
    * Make attackpower include in creature damage not dependent from attack speed.

    NOTE: included in sql update recalculation for creature damage related fields only make
    temporary possible usable values. Real values need revisited by DB devs for correctness.

--HG--
branch : trunk
2009-05-28 18:29:59 -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 d971d0121f *Do not consider possessed creatures as pet. Also fix the bug that possessed creature does not display spells.
--HG--
branch : trunk
2009-05-25 22:52:08 -05:00
megamage c14fb42915 *Change the value of CREATURE_FLAG_EXTRA_NO_TAUNT.
*There is no creatures with this flag in core. So if you have custom content, you can use this:
update creature_template set flags_extra = (flags_extra | 0x00000100) where flags_extra & 0x00010000;
update creature_template set flags_extra = (flags_extra & ~0x00010000) where flags_extra & 0x00010000;

--HG--
branch : trunk
2009-05-24 11:29:38 -05:00
megamage 67c84b1f3d Mobs fleeing and getting assistance feature implementaion. Author: Neo2003
--HG--
branch : trunk
2009-05-21 10:48:00 -05:00
megamage b7053ecc0d [7860] Implement creature event ai ACTION_T_CALL_FOR_HELP for explicit call for help in some script cases. Author: VladimirMangos
--HG--
branch : trunk
2009-05-21 10:15:09 -05:00
megamage ff7f023ff1 *Merge.
--HG--
branch : trunk
2009-05-15 13:57:10 -05:00
Muhaha 62c5720227 * avoid loot/exp when the mobs are killed by npc. Authore: KAPATEJIb @ getmangos.org
--HG--
branch : trunk
2009-05-13 10:34:55 +02:00
megamage 8fc07d443a *Change waypoint data structure. Use creature db guid as path id. If a creature uses waypoint movement as default movement type, the path id should be DBGUID*10. For paths of script use, the path id should be DBGUID*10+1 ~ DBGUID*10+9.
*Two sql queries are included. Converter is used to convert the existing path id to new path id. "...creature_add..." is used to change table structure. You can first run the converter, then run the other one. Or run the other one directly and get the new data from the db team. Because it may take hours to run the converter.
*If you have custom data, you may need to run the converter. We suggest you use console to run it It is extremely slow to run the query. If you have multiple paths for a creature in your db, you need to do more work to convert it. However, if you know how to use multiple paths, you should already have more db knowledge than I do and you should know how to convert it.
*There may be a faster query to convert the db. If you know, please tell us. I am no sql expert.
*Backup your db first!
*Thanks to X-Savior and subhuman_bob.

--HG--
branch : trunk
2009-05-11 13:27:10 -05:00
megamage b8e82a23a6 [7808] Move corpse search code in function with template arg for class-check. Author: Astellar
This let reuse code for other similar near corpse target selection spells.
    Also provided currently not used class-checks for 2 spells

--HG--
branch : trunk
2009-05-10 14:47:56 -05:00
megamage fe0b73c3a6 [7806] Defines for known gossip icon value cases. Author: NoFantasy
--HG--
branch : trunk
2009-05-10 14:43:58 -05:00
megamage 122d944945 *Update summon system.
*Fix the bug that shaman cannot summon fire elemental.
*Fix the bug that totem meters cannot be displayed.

--HG--
branch : trunk
2009-05-02 19:24:22 -05:00
megamage 295b634ca6 [7731] Some code cleanups, warrning fixes. Author: VladimirMangos
--HG--
branch : trunk
2009-04-29 00:31:03 -05:00