Machiavelli
3a309abfab
* In case of a 'for' loop, don't declare the iterator of a type that has a larger value range when the iterator can take a maximum value of a more efficient data type. (int to uint8 in most cases).
...
* Other minor cleanups, Null pointer checks etc.
--HG--
branch : trunk
2009-06-18 17:21:25 +02:00
megamage
d805e89091
*Update creature melee damage calculation.
...
--HG--
branch : trunk
2009-06-17 13:34:49 -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
3cf2be6042
[8026] Obtain object's map directly by calling appropriate WorldObject::GetMap()/GetBaseMap() functions instead of accessing MapManager. Code cleanups. Big thanks Infinity for tests. Author: Ambal
...
--HG--
branch : trunk
2009-06-16 11:19:59 -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
b8f95e0546
*Fix the bug that players lose stats when change weapons when have disarm auras.
...
--HG--
branch : trunk
2009-06-10 10:13:45 -05:00
megamage
b0fa2172e3
*Fix a crash in 3896.
...
--HG--
branch : trunk
2009-06-10 09:46:32 -05:00
megamage
853432b201
*Fix a bug that creature ignore LOS in assistance case.
...
--HG--
branch : trunk
2009-06-09 19:55:15 -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
37f4bf6a04
*Fix the bug that triggers are visible.
...
--HG--
branch : trunk
2009-06-03 21:47:38 -05:00
megamage
e3390806a9
[7948] Use SetFaction instead explcit field set, other cleanups. Author: NoFantasy
...
--HG--
branch : trunk
2009-06-03 19:29:55 -05:00
megamage
5036cf91f4
*Fix a crash introduced in 3734. Thanks to onkelz28
...
--HG--
branch : trunk
2009-06-03 11:07:01 -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
7e3bb5c2d4
*Restore creature's phasemask when respawn.
...
--HG--
branch : trunk
2009-06-03 00:22:43 -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
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
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