Commit Graph

179 Commits

Author SHA1 Message Date
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 83d468c7ee *Always use idle motion as default for triggers.
--HG--
branch : trunk
2009-05-29 21:30:08 -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 1288761fb7 [7905] Implement ACTION_T_SET_SHEATH for creature event ai make possibility set ranged fire state. Author: VladimirMangos
Also related cleanup code in field cases and player Player::SetSheath.

--HG--
branch : trunk
2009-05-28 18:43:57 -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 2780893030 *Fix a bug that player can change to an occupied seat on vehicle.
*Load full creature data for vehicles.

--HG--
branch : trunk
2009-05-23 20:40:14 -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
megamage 047cc95388 *Add some distance check functions. By VladimirMangos.
--HG--
branch : trunk
2009-05-14 16:50:47 -05:00
megamage 4cf3ca42f0 *Process events for dead creatures. This allows delayed spells to work after caster is dead.
--HG--
branch : trunk
2009-05-13 10:53:31 -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 883c2ef77d *Do not allow persistant auras from the same caster stack on target.
--HG--
branch : trunk
2009-05-09 22:31:53 -05:00
megamage 1b460da5cb *Fix broken instance scripts.
--HG--
branch : trunk
2009-05-06 17:52:45 -05:00
megamage 3f6f15e34b *Update instance script functions.
--HG--
branch : trunk
2009-05-06 00:06:38 -05:00
megamage 2a725194b6 *Merge.
--HG--
branch : trunk
2009-05-03 10:48:28 -05:00
megamage 558a5707ff *Only update object which are in world.
--HG--
branch : trunk
2009-05-03 10:34:02 -05:00
megamage db817d668a *Merge.
--HG--
branch : trunk
2009-05-01 18:37:32 -05:00
megamage c9cd3b07f9 *Add some InstanceData functions to better handle instance doors.
--HG--
branch : trunk
2009-05-01 18:24:12 -05:00
megamage de11b9e901 [7730] Some optimizantion and code style. Author: zhenya
--HG--
branch : trunk
2009-04-29 00:26:07 -05:00
megamage 94e25701ad *Fix the bug that neutural npc aggro players.
*Fix build.

--HG--
branch : trunk
2009-04-25 18:46:07 -05:00
megamage 8644c48db8 *Add new eventAI action 105 call assistance. Param1 = radius.
--HG--
branch : trunk
2009-04-25 09:15:40 -05:00
megamage bd56af1294 *Merge.
--HG--
branch : trunk
2009-04-23 21:44:48 -05:00
megamage e97ddc5872 *Do not let civilian aggro players.
--HG--
branch : trunk
2009-04-23 21:38:50 -05:00
QAston cc5414f925 *Correct check range for totem area auras.
--HG--
branch : trunk
2009-04-20 16:48:35 +02:00
Machiavelli 99fc17d44f * Tabs to spaces cleanup
--HG--
branch : trunk
2009-04-19 18:48:20 +02:00
megamage f0cbed1ad8 *Merge.
--HG--
branch : trunk
2009-04-17 15:29:55 -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
megamage 8e910aca6b *Merge.
--HG--
branch : trunk
2009-04-15 12:05:59 -05:00
raczman 4fb720c7d1 Update to creature formations.
This is a big merge, it may cause problems. Use with caution, report bugs.

--HG--
branch : trunk
2009-04-15 15:46:02 +02:00
megamage 4f4c6aeaf5 [7666] For heroic mode creature use AIName from normal mode version in same way as done for ScriptName. Author: VladimirMangos
Also at creature templates loading check that AIName/ScriptName not set for heroic mode creature versions.

--HG--
branch : trunk
2009-04-14 18:31:31 -05:00
raczman f428765065 Fix build on windows.
--HG--
branch : trunk
2009-04-14 15:41:59 +02:00
raczman def6071b8f Small update to creature respawn - by Iskander
--HG--
branch : trunk
2009-04-14 14:43:28 +02:00
raczman a712170758 Creature respawn linking, idea by Rat, wrote by Iskander, blessed by raczman.
--HG--
branch : trunk
2009-04-14 14:33:48 +02:00
megamage 6b11f9a511 *Call new function InitializeAI() instead of Reset() to do one-time work.
--HG--
branch : trunk
2009-04-13 17:53:09 -05:00
megamage 53d37935a9 [7658] Drop dead code. Author: VladimirMangos
--HG--
branch : trunk
2009-04-13 17:21:17 -05:00
megamage d697fbd158 *Merge.
--HG--
branch : trunk
2009-04-11 15:03:34 -05:00
megamage 9378a9cf21 *Add function GetPlayer and GetCreature for scripts. Please try to not use GetUnit in the future.
--HG--
branch : trunk
2009-04-11 13:42:34 -05:00
megamage d1c2d98015 *Merge.
--HG--
branch : trunk
2009-04-10 18:01:15 -05:00
Rat 1e61dffc89 *added creature extra flag No Crit (CREATURE_FLAG_EXTRA_NO_CRIT)
*added function to disable reputation gained from monsters
*tabs2spaces in affected files

--HG--
branch : trunk
2009-04-10 18:11:09 +02:00
XTZGZoReX 2fe9fed7c7 * Tabs to spaces -- using: perl -p -i -e "s/\t/ /g" *
--HG--
branch : trunk
2009-04-07 10:51:45 +02:00
megamage ac4edf0e09 *Update creature formation code.
--HG--
branch : trunk
2009-04-06 20:33:52 -05:00
megamage e8866340ce *CreatureGroups fixed and improoved. By TrullyONE
- Multimap support for instances added.
 - Removed redundant group checks.
 - New movement rules (bool group formed/dismissed added).
 - uint32 Creature::GroupID replaced with CreatureGroup pointer.

--HG--
branch : trunk
2009-04-06 13:27:42 -05:00
QAston 20c02ef760 *Update of aura system.
--HG--
branch : trunk
2009-04-06 13:31:14 +02:00
megamage f744c09075 *Merge.
--HG--
branch : trunk
2009-04-04 15:12:36 -06:00
megamage 86bd3bfb42 *Do not check formation for pet and summoned creatures.
--HG--
branch : trunk
2009-04-04 15:04:24 -06:00
megamage 8408fb7cd3 *Merge.
--HG--
branch : trunk
2009-03-31 18:21:45 -06:00
megamage 7f209249a2 *Do not call reset in construct funciton of script.
*Add function doaction to safely pass parameters between scripts.

--HG--
branch : trunk
2009-03-31 18:12:49 -06:00