Commit Graph

190 Commits

Author SHA1 Message Date
megamage
46bb829582 [svn] Merge define.h from mangos. Hope this will solve the lag problem.
--HG--
branch : trunk
2008-11-07 13:46:47 -06:00
megamage
2021552353 [svn] Update serpent shrine scripts. Patch provided by streetrat.
--HG--
branch : trunk
2008-11-07 10:03:34 -06:00
megamage
fd3fcb4612 [svn] Remove isVisible function. Check stealth and invisible in canAttack();
Use new remove aura by interrupt flag function.

--HG--
branch : trunk
2008-11-07 09:36:46 -06:00
megamage
fdff7330d2 [svn] Fix ritual of summoning.
--HG--
branch : trunk
2008-11-06 17:16:33 -06:00
megamage
2a328220bf [svn] Merge from mangos:
b44eac552a0f9d4f298398d4cb07d2cd1462ad41 Use .respawn only for selected creature (if any) Tue Oct 28 08:34:35 2008
91988e44158fe5a7611d34612bc192aa7988de06 Fixed crash at using .account set gmlevel with wrong args.

--HG--
branch : trunk
2008-11-06 16:51:46 -06:00
megamage
43eabaff1b [svn] Fix a typo in canSeeOrDetect().
--HG--
branch : trunk
2008-11-06 16:34:54 -06:00
megamage
b22c10128d [svn] Update SerpentShrine Cavern script. Patch provided by streetrat.
--HG--
branch : trunk
2008-11-06 16:17:36 -06:00
megamage
37d4724c97 [svn] Merge from Mangos:
3c7ac5bd3e20c33a22ac57c5c3bac23a0798dc9e 2008-10-23 19:06:27
Some endianess related fixes and cleanups. By VladimirMangos.

--HG--
branch : trunk
2008-11-06 16:10:28 -06:00
megamage
0aada07187 [svn] Fix hunter's trap (let original caster summon dynamic object).
Fix black temple boss 1's hurl spine.

--HG--
branch : trunk
2008-11-06 12:24:56 -06:00
megamage
31be467b2e [svn] Check combat reach in GetRandomContactPoint() until find out why some units have invalid combat reach.
--HG--
branch : trunk
2008-11-06 10:36:40 -06:00
megamage
43910434c5 [svn] Rewrite canSeeOrDetect function.
Minor change on trigger creatures.
Remove some unused hacks in scripts.

--HG--
branch : trunk
2008-11-06 10:27:58 -06:00
KingPin
5746d0e98d [svn] * Avoid access to bag item prototype for getting bag size, use related item
update field instead as more fast source. source mangos.
* Further reduce of DB access in guild handlers.
* Multi-locale DBC extracting  - source Foks

*** Devs not responsible if all your player items drop to the ground and get eaten by ants or rabbits.. or some kind of wierd ant-rabbits..

--HG--
branch : trunk
2008-11-06 08:20:26 -06:00
megamage
c74f9b4a68 [svn] Fix a bug that summon spells may summon incorrect number of creatures (will find a better way later).
--HG--
branch : trunk
2008-11-05 23:53:13 -06:00
megamage
c6442f086c [svn] Fix broken VC90/game.vcproj in rev 182.
--HG--
branch : trunk
2008-11-05 23:28:07 -06:00
gvcoman
44bdb135f4 [svn] Implemented player on player and player on creature possession:
* Implemented packet and vision forwarding through possessed units
* Added new OnPossess script call alerting scripts on when possession is applied/removed
* Moved fall damage and fall under map calculations into the Player class
* Added new PossessedAI that is applied only while possession on creature is active
* Implemented summon possessed spell effect
* Fixed Eyes of the Beast

--HG--
branch : trunk
2008-11-05 20:51:05 -06:00
KingPin
8d331f2b10 [svn] * Avoid access to bag item prototype for getting bag size, use related item update field instead as more fast source.
* Better check client inventory pos data received in some client packets to skip invalid cases.
* Removed some unnecessary database queries.
* Make guid lookup for adding ignore async.
* Added two parameter versions of the AsyncQuery function
* Make queries for adding friends async. - Hunuza
* Replace some PQuery() calls with more simple Query() - Hunuza
* Mark spell as executed instead of deleteable to solve crash.
*** Source mangos.

**Its a big commit. so test with care... or without care.... whatever floats your boat.

--HG--
branch : trunk
2008-11-05 20:10:19 -06:00
megamage
404f72c7a2 [svn] Add some assert for better debug.
--HG--
branch : trunk
2008-11-05 16:37:52 -06:00
KingPin
9167e72a84 [svn] * fixed compile
--HG--
branch : trunk
2008-11-05 16:13:04 -06:00
KingPin
c6d9b60207 [svn] * Allow reconnect in trinityrealm.
--HG--
branch : trunk
2008-11-05 13:35:33 -06:00
KingPin
84624aa7c4 [svn] * minor fix
* Add missed part of 176

--HG--
branch : trunk
2008-11-05 09:59:56 -06:00
KingPin
62ed044d08 [svn] *** Source Mangos ***
*Load npc_options at server startup, use cached data at creature gossip menu init.
* Also new .reload table command added
*Implement npc_option localization support, also store in DB BoxText/BoxMoney/Coded
* Use characters.guid instead low guid value from characters.data in charcter enum data prepering for client.
* Fixed crash at .pinfo command use from console.
* Fixed windows ad.exe build
*Creature related code and DB cleanups.
* Rename 2 creature_template fields to more clean names and related code update also.
* Use enum values instead raw values for type_flags, use halper functions instead code repeating.
* Move tamed pet creating code to new function.

** Small code changes to make things compliant with above changes.
** Another rev with big changes so test away.

--HG--
branch : trunk
2008-11-05 09:22:56 -06:00
slg
a1981ecc77 [svn] * Added missing SQL for [173]
--HG--
branch : trunk
2008-11-04 16:31:42 -06:00
slg
d266f7622b [svn] * Updated more .cpp scripts to use script_texts
- Hellfire Ramparts
 - Blood Furnace
 - Shattered Halls
 - Magtheridon's Lair
 - Steam Vault
* Added random OOC yells to Magtheridon

--HG--
branch : trunk
2008-11-04 16:26:01 -06:00
megamage
e91816937b [svn] Merge SD2 Rev 735. Patch provided by neo0608.
Fix 171_world.sql.

--HG--
branch : trunk
2008-11-04 15:37:18 -06:00
slg
31cebde085 [svn] * Updated Serpentshrine Cavern scripts to use script_texts
* Added script_texts for (nearly) all scripts
* Added documentation for script_texts
* Fixed tabs in chat.cpp

--HG--
branch : trunk
2008-11-04 15:21:02 -06:00
KingPin
89c9756b77 [svn] added commands : pet create, tp, learn, unlearn. gobject activate and playall. thanx to dythzer.
--HG--
branch : trunk
2008-11-04 13:32:08 -06:00
megamage
b53ab74b50 [svn] Remove a hack on triggered spell target selection.
Some minor fixes.

--HG--
branch : trunk
2008-11-04 10:33:02 -06:00
megamage
fc9a14a6cf [svn] Fix 146_world.sql. Do not use default for text. (Ignore this if you have successfully applied 146_world.sql)
Fix HandleAuraModIncreaseHealth, also increase current health.
Merge from Mangos:
2008-11-02 10:53:27 854e0d64e3410b2a1eff6d56705f8e42b4291534 Do not split self caused damage.
(PART) 2008-10-31 12:45:22 e56b671979623570acd358a9b99aa169be22ffba Move tamed pet creating code to new function.

--HG--
branch : trunk
2008-11-04 09:23:06 -06:00
megamage
a5045b7684 [svn] Update black temple boss 1, 2 script.
--HG--
branch : trunk
2008-11-03 20:44:32 -06:00
megamage
6391d04aac [svn]
--HG--
branch : trunk
2008-11-03 18:45:53 -06:00
megamage
47d205ea71 [svn] Replace many IsWithinDistInMap with IsWithinCombatDist in melee attack function.
--HG--
branch : trunk
2008-11-03 17:39:34 -06:00
megamage
94c03e3211 [svn] Fix hunter's frozen trap, half duration when pvp.
Use vector to store linked spell information to support multiple effects.

--HG--
branch : trunk
2008-11-03 17:20:35 -06:00
megamage
6a8878fb5d [svn] Use IsWithinCombatDist for all AI. This should fix the bug that pet and guard does not attack target. (Note: some scriptedAI may need to update)
--HG--
branch : trunk
2008-11-03 14:11:09 -06:00
megamage
da5786249f [svn] Fix SPELL_ATTR_UNAFFECTED_BY_INVULNERABILITY spells, patch provided by QAston.
Fix priest's fear. Is breakable now.

--HG--
branch : trunk
2008-11-03 13:43:36 -06:00
megamage
09c72569c0 [svn] Update zul'aman script. Patch provided by streetrat.
--HG--
branch : trunk
2008-11-03 10:42:25 -06:00
megamage
ab1bb3ac76 [svn] Add class SummonList in script to despawn summons. Update Zul'jin script for test.
--HG--
branch : trunk
2008-11-03 10:16:06 -06:00
megamage
b9af250881 [svn] Fix the compile error. Patch provided by Tidus.
Merge part of mangos svn rev 6748: Use SMSG_PET_NAME_INVALID opcode instead of db string. Source: Mangos.

--HG--
branch : trunk
2008-11-03 09:53:31 -06:00
megamage
b3bdc26a11 [svn] Set destination when calling CastSpell. This should fix the bug that seed of corruption does not work and "cannot find destination for spell" spams. Not sure if this is the correct way to fix it.
--HG--
branch : trunk
2008-11-03 08:29:04 -06:00
megamage
fbef4e3abf [svn] Fix a compile bug. Patch provided by Paradox.
--HG--
branch : trunk
2008-11-03 08:14:21 -06:00
KingPin
d5beb2bbe9 [svn] *Implement new player conditions CONDITION_NO_AURA, CONDITION_ACTIVE_EVENT
* Default behaviour of pets for creatures changed to REACT_DEFENSIVE
* Disallowed sending wrapped items as COD
* Prevent loading and saving single target auras for pet in same way as already implemented for player
* Correctly limit use some flask types to zones.
* Fixed extracting common.MPQ under *nix
* Many small xleanups and fixes.
** mangos merge rev.

TEST REV so be careful of creepy crawly bugs!

--HG--
branch : trunk
2008-11-02 16:53:46 -06:00
megamage
6633d3c680 [svn] Fix tame beast.
--HG--
branch : trunk
2008-11-02 11:00:14 -06:00
megamage
794dc2c3e7 [svn] Fix eagle eye (and other far sight spells).
--HG--
branch : trunk
2008-11-02 08:48:25 -06:00
megamage
c10a9e6ccc [svn] Fix a bug that GameObject::CastSpell crash the server.
--HG--
branch : trunk
2008-11-02 08:44:15 -06:00
megamage
972e2d56e2 [svn] Add function GameObject::CastSpell. Used for hunter's trap and so.
Use original caster instead caster to check spell hit result.
Let spell triggers have the same faction as the summoner.
Fix the bug that trigger creatures attack enemy. (no need use civilian extra flag in the future, 128 is enough)
Fix shadow step.

--HG--
branch : trunk
2008-11-02 00:59:44 -05:00
megamage
1dad2c855c [svn] Disable combat_reach spams.
Fix holy nova. Patch provided by Disassembler.

--HG--
branch : trunk
2008-11-01 18:52:59 -05:00
megamage
37d0fdd0cd [svn] Check creature combat reach when loading db. This should fix the bug that finding random contact point causes crash.
--HG--
branch : trunk
2008-11-01 16:53:16 -05:00
megamage
d292b85d38 [svn] Fix teleport spells.
Fix cone spells.
Use interrupt_aura_flag to remove stealth/invisible/feign death auras.

--HG--
branch : trunk
2008-11-01 15:08:12 -05:00
megamage
e2eb694c57 [svn] Improve TargetedMovement (TODO: let mob find "near angle" rather than "random angle").
Delete a repeated check in instance canenter().
Fix some spell targets.
Add some sunwell spell sql.
Fix Magtheridons earthquake. (TODO: need to find out why soul transfer has no effect when casted by mobs)
Let Brutallus dual wield. Enable burn (still no script effect).
Quick fix for shadowmoon valley illidan quest crash (wait for author's fix).

--HG--
branch : trunk
2008-10-31 21:42:00 -05:00
megamage
1c3d4c40c3 [svn] Set target in combat even if spell does not hit target.
Call AI function only when spell hits target.
Move combat check from dealdamge to attackerstateupdate to remove redundant check.

--HG--
branch : trunk
2008-10-31 14:00:49 -05:00
megamage
67b86d636b [svn] Spell target selection improvement. Remove most mangos hacks in spell target selection. (work almost done)
Merge mangos svn rev 6744.

--HG--
branch : trunk
2008-10-31 11:04:32 -05:00