Commit Graph

39720 Commits

Author SHA1 Message Date
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
megamage
daec9868d9 [svn] Enable linked spells: cast spells/remove auras when spells casted/spells hitting/auras removed. Add new table "spell_linked_spell". Some illustrations provided in sql.
Let trigger creature cast AOE spells when summoned. Illustration provided in sql.
Let active creatures always visible if possible. (seems does not work for now, need to find out why)

--HG--
branch : trunk
2008-10-30 11:32:10 -05:00
megamage
f2f73ff19f [svn] Update magisters terrace script. Patch provided by streetrat.
--HG--
branch : trunk
2008-10-30 09:25:38 -05:00
megamage
a1131cdb21 [svn] Provide creature dual wield support.
Update glancing damage formula.
Do not daze creatures when other creatures attack from the back (need to find a better way).
Fix the damage calculation of +damage aura.

--HG--
branch : trunk
2008-10-29 20:00:21 -05:00
megamage
7ea14f94f1 [svn] Merge from mangos.
Wed Oct 29 15:06:00 034b8a34a9
Mon Oct 27 14:36:42 fa072d1510

--HG--
branch : trunk
2008-10-29 18:06:01 -05:00
slg
cca2c3a603 [svn] * Fixed compile error from rev 140
--HG--
branch : trunk
2008-10-29 17:26:01 -05:00
KingPin
0602efb289 [svn] * fixed my typo
--HG--
branch : trunk
2008-10-29 17:11:32 -05:00
KingPin
ce2d63e4ae [svn] * Added npc follow, waterwalk, repairitems commands. Patch by dythzer
* Prevent adding more than 5 people to raid - Apoc
* fixed typo from one of our previous commits.
* Fixed two strings in core, thanx to warhead for patch.

--HG--
branch : trunk
2008-10-29 17:09:32 -05:00
megamage
febb2d6147 [svn] Fix broken spell target 38 (script target).
Implement linked spells, but will not enable it before testing.

--HG--
branch : trunk
2008-10-29 14:19:31 -05:00
megamage
5e809c2a6b [svn] Add new function SelectUnit and SelectUnitList to select target or targets with check "isPlayer" and "isWithinDist". Also add target type SELECT_TARGET_NEAREST and SELECT_TARGET_FARTHEST.
SpellEffect Fix for 40802,29364,43723,41931. Patch provided by WarHead.
Update script of Fathom Lord. Patch provided by Blaymoira.

--HG--
branch : trunk
2008-10-28 16:28:42 -05:00
slg
8ded7dce04 [svn] * Fixed several commands that were accidentally removed in 120
- freeze commands
  - .nameannounce
  - .flusharenapoints

--HG--
branch : trunk
2008-10-28 15:48:56 -05:00
KingPin
3ea64f7581 [svn] * Prevent crash at access to deleted social data for player. Remove social data at logout instead - source mangos
* Fixed subcommands list output at console. - source mangos
* Rename scripts update.

--HG--
branch : trunk
2008-10-28 08:10:44 -05:00
slg
f724227f24 [svn] * fixed world.sql LOCK/UNLOCK for script_texts table
--HG--
branch : trunk
2008-10-27 16:12:31 -05:00
w12x
dd97776501 [svn] * Fixed startup error flood if creature model id is 0
* Fixed totems using proper model ids broken after recent change
* Set pet grid activity state to that of caster upon summoning
* Fix a possible crash in ObjectAccessor
note to self: don't commit anything without 3 days testing. ever. after this one ofc.

--HG--
branch : trunk
2008-10-27 15:28:04 -05:00
slg
1b820f93eb [svn] More C++ scripts converted to use script_texts.
- Blackwing Lair
- Black Morass
- Old Hillsbrad
source: ScriptDev2

--HG--
branch : trunk
2008-10-27 15:17:06 -05:00
KingPin
bbd5c8fd40 [svn] * Properly name Updates for scripts.
--HG--
branch : trunk
2008-10-27 13:23:14 -05:00
w12x
fc77e2d761 [svn] * Changed modelid_a/h(2) values to modelid1..4, display ids are no longer incorrectly chosen based on player faction. Patch provided by WarHead.
--HG--
branch : trunk
2008-10-27 11:48:45 -05:00
megamage
4cbc6f830a [svn] Fix a compile error about M_PI_2.
Update Felmyst script to test new setActive function.
Fix the bug that priest's fear is unbreakable (dirty hack before find the correct way).
(some unfinished unused content included, just ignore them, will finish them later)

--HG--
branch : trunk
2008-10-27 10:57:53 -05:00
KingPin
1bb1603592 [svn] * Moved scripts sqls updates to main sql updates folder.
* Fixed makefile to use proper foldername.
* rXXX_world_scripts.sql will be the format for script sql updates, execute these into your world DB.

--HG--
branch : trunk
2008-10-27 09:57:53 -05:00
w12x
e72a13c3dd [svn] * Allow WorldObjects to keep the grid active, and prevent it from being unloaded. This can be done through calling WorldObject::setActive(bool) from the scripting library. Note that entire instances are still unloaded if no player is present on that map to save resources. This behavior can be changed if the need arises.
--HG--
branch : trunk
2008-10-27 08:41:55 -05:00
megamage
0e18e4330c [svn] Fix some mistakes of the last two commits.
--HG--
branch : trunk
2008-10-27 08:28:57 -05:00