Commit Graph

762 Commits

Author SHA1 Message Date
brotalnia 8601dc8c83 Various progression stuff. 2017-11-29 04:01:28 +02:00
dimefox c678e099e0 Fixes for Celebras (#720)
* update Celebras script to use improved broadcast texts

* Make Celebras the Redeemed non TemporarySummon so he respawns and persists

* remove unused Maraudon scripts

* simplify celebras_spirit script and add timeout on waiting for click on book

* data for Celebras gossip and spawn

* handle quick book click

* adapt migration npc_text to new schema
2017-11-28 02:16:28 +02:00
brotalnia 0d899f790d Fix game event problems. 2017-11-27 21:42:55 +02:00
GuybrushGit ee87f9f700 Nathanos Blightcaller timers (#790)
* Fix to Nathanos Blightcaller timers

* Fix to Nathanos Blightcaller timers
2017-11-27 18:42:53 +11:00
bladez b7e98c8ca8 Removed invalid TemporarySummon casting and handling of Guardian pet for Tapoke "Slim" Jahn (#793)
* Removed invalid TemporarySummon casting and handling of Guardian pet

* Missed an unsummon when refactoring
2017-11-26 02:40:57 +11:00
bladez 1038cde116 Now handle despawning of TemporarySummon through unconventional means (#751)
* Added handling for when a TemporarySummon is added directly to the remove list without being UnSummoned
Now log if a TemporarySummon is deleted before being unsummoned

* Despawn temporary summons correctly in Regthar Deathgate's script

* Increase the summon limit for Eris Havenfire

* Increase the summon limit for The Battle for Darrowshire

* Kromzar will now last the duration of the phase rather than only 60 seconds

* Don't double inform the summoner of despawn
2017-11-23 01:51:00 +11:00
bladez 4c40408ed9 Allow creatures to modify their summon limits, and alert GMs when a creature is at the limit (#744)
Allow objects to modify their summon limits, and alert GMs when an object is at the limit
2017-11-22 18:02:36 +11:00
GuybrushGit dd86f8a980 Removed Warchief cooldown (#193) 2017-11-22 16:45:33 +11:00
bladez 1c4af71bca Set a configurable cap on the number of creatures a single object can have spawned (#199)
* Set a configurable cap (default 100) on the number of creatures a single object can have spawned at once (dead or alive)

* Add checks to unchecked creature summons

* Add default config option and docs
2017-11-20 04:01:58 +11:00
GuybrushGit 5f6dcb0e85 Adjusted timers for Gerenzo's Orders (#690) 2017-11-20 03:17:10 +11:00
GuybrushGit 493f6234e1 Fix to Baroness Anastari immunity (#699) 2017-11-20 03:08:20 +11:00
brotalnia 87aab06eed Remove incorrect npc text id. 2017-11-19 16:28:51 +02:00
brotalnia a37ae4642b Corrected more wrong npc_text ids. 2017-11-18 04:03:13 +02:00
StadenElysium f99e40d8dd Geolocking implementation (#518)
* Implements a mechanism for locking accounts down if a player logs in from another country.
* Removed some deprecated cruft (auto_ptr/random_shuffle/register/(unary | binary)_function) at the same time.
* Adds JSON for Modern C++ (https://github.com/nlohmann/json/) to the project.
2017-11-14 23:55:27 +00:00
brotalnia 19cc8ccb56 Set orientation when using SCRIPT_COMMAND_MOVE_TO. 2017-11-15 00:46:38 +02:00
brotalnia fd257ee92a Replace creature nostalrius string ids with broadcast text. 2017-11-15 00:32:45 +02:00
brotalnia 01deb6826a Correct some text ids. 2017-11-14 20:39:10 +02:00
bladez 384d0d5c37 The Gates of Ahn'Qiraj War Effort (#540)
* Set Red Scepter Shard run timelimit to Blizzlike 5 hours

* Added a missing script text during the Eternal Board

* Corrected some typos, item availability and long forgotten memories quest completion

* War Effort event rework

* Allow events started at the current tick to run

* Fixed stock incrementing on handin for shared and alliance turnins
Add war effort game events and some gossips (some are missing)

* Check actual war effort event for world state

* WIP War Effort event

* Refactored gobj update and objective checking to utilize an AI that periodically updates

* Removed old, unused hard coded gossip for war effort officers

* Add condition for toggling based on the NPC entry

* Add gossip and remove script for War Effort officers

* Add NPC gossip for recruiters

* Removed shared resource contributions - the objectives are not completed simultaneously by both teams, but rather they both have the same goal for those resources

* Always add the game object to the map, regardless of whether it is spawned by default or not

* Don't offer quests if the unit has no quest giver flag

* Implement supply tier decay as the effort moves to Silithus

* Partial implementation of active game events during the effort. TODO: Build an array that dictates active events at each stage

* Adjusted event terminator to auto assign

* Now store an array of events for each stage so we can resume cleanly after a restart

* Set most war effort events to hardcode so we can control the start/end of the event better

* Ensure default spawn type is preserved when saving a game object to DB

* Fix migration, link gong to gong event

* Now properly despawn gameobjects that are not spawned by default

* Moved crystal AI to war effort script, adjusted gobj spawn handling

* Force overwrite on StopEvent, ensure the AQ gate is open at end of war, adjusted when stage events are updated

* Allow world timers to be modified externally so certain timers can be forced to occur sooner than usual

* Added a var that counts how many times a gong has been rung

* Gong is now active, final battle event is now hardcoded. Fixed comments preventing migration from executing

* Allow hardcoded events to adjust update delay dynamically based on internal state

* Added helper methods to enable/disable rather than just start/stop. We need to do this for events that can be active prior to 1.9, such as the gate
Add dynamic update for certain stages to ensure things happen in a timely manner
Re-added crystals emerging text

* Remove hard-coded Rajaxx summon, he'll be spawned with the event

* Remove Rajaxx AI outside of AQ. He just stands still on top of the gate

* Added AI for moving soldiers into position when CH is under siege

* Added Rajaxx spawn to DB
Added additional Colossal Anubisath around the gate
Added a trigger creature for CH attack waves
Updated the size of Resonating Crystals
Updated the draw distance for Hive Colossus
Add AI to IF/Org soldiers and Priestess of the Moon

* High Overlord Saurfang script and text

* Renamed some events that are now being utilized, added additional stages to the battle

* Re-numbered Saurfang script texts
Remove priestess mount aura
Fixed trigger insert query
Add dummy additional anubisaths (coords not set yet)

* Add cenarion hold attack spawn trigger
Add Saurfang AI

* Use MovePoint rather than MoveTargetedHome, since MoveInLineOfSight does not fire during the latter

* Fixed some syntax errors, added colossal spawns NE of AQ
Adjusted rifleman AI

* Made infantry AI a bit more generic so it can be extended
Added separate AI for riflemen
Added formation for following Saurfang

* Fixed AutoStoreLoot bypassing loot conditions. TODO: Remove this SHIT

* Add dummy spawns for colossal during final battle
Rectified a number of incorrectly forbidden items

* Add config option for the rate at which the war effort auto completes

* Reversed the order for CONDITION_NPC_ENTRY, added CONDITION_WAR_EFFORT_STAGE

* Added support for auto completing the war effort

* Invert npc entry condition values, restrict field duty and aq20 gear quests, update spawn pos of final battle NPCs

* Fixed stage value check

* Fixed objective count in collection event check

* Added remaining transition day count world state
Increased the wave size and reduced destroyer spawn chance during the cenarion hold attack

* Simplify gobj spawn condition

* Remove colossus events from stage updates - they can persist outside of the stages

* Now start colossus reward events on death

* Add gossip text to recruiters indicating when the resources will arrive in Silithus
Fixed mounts on cavalry and Stormwind infantry equipment

* Reduced time between the collection being completed and the transition starting

* Save the gong bang time to DB

* Prevent underflow on m_respawnDelayTime with negative spawntimesecs

* Increased the power and health of High Overlord Saurfang during the war, fixed his state being set incorrectly on respawn during the wave attack

* Don't allow zoning into AQ while the gate is up

* Now use a saved var with flags for Hive colossus events rather than starting them directly in the map update (not thread safe!)

* Add game sounds to gate opening

* Add faction-specific signet reward NPCs during the collection

* Remove npc_gossip entries, now use only gossip_menu for recruiters
Removed interactability of resonating crystal formations
Corrected the min level for turn in pre-quests

* Added support for game event checking in area trigger teleports, removed hard-coded team/rank checking and added DB support for them

* Make Ahn'Qiraj teleport triggers require the gate to be open

* Corrected the reputation requirement on some Scepter chain quests

* Overwrite start time for colossus reward events

* Move colossus text to colossus spawn rather than on the gong

* Fixed criteria check for CONDITION_NPC_ENTRY after param order change

* Add missing NPC texts from broadcast_text
Add missing world announcements for battle progress
Correct Maws resistances/armour

* Store Saurfang guid so we can follow him from across map. Implement Saurfang spell AI

* Saurfang will now correctly resume his path after engaging in combat
Soldiers following Saurfang will no longer fly and warp around after combat ends
Soldiers following Saurfang that die will respawn near him, and resume following
Added an extra point to Saurfang's path to avoid a terrain glitch
Priestess should now properly dismount on aggro
2017-11-14 16:11:13 +11:00
GuybrushGit 4fda306001 Implemented the Cenarion scout quests. (#609) 2017-11-13 22:38:00 +11:00
brotalnia e7828f143e Remove gossips from NPCs that didn't have it in vanilla. 2017-11-11 19:00:03 +02:00
GuybrushGit 679a7e4640 Fix to Skeram instance binding (#533) 2017-11-11 12:29:43 +02:00
GuybrushGit 3269734d89 Arcanite Dragonling adjustments (#526) 2017-11-11 12:27:00 +02:00
LHGemt 0e115edd68 Atiesh immuneflags and misc fix (#557)
* atiesh immuneflags

* Atiesh: slightly faster shadowbolt. Dont drop multiple weapons. Only do spawn-lightning on spawn, not after a reset.
2017-11-10 18:56:54 +11:00
brotalnia 77a78e4a15 Implement Broadcast Texts and add new DB release.
* Core: Implement broadcast texts.

* Core: Get rid of db_script_strings table.

* Core: Fix MaleText locales and db scripting improvements.

* DB: Add broadcast texts and fix quest 2608.

* Fixed FemaleText locales!

* Move chat functions back to worldobject.

* Replace all db_script_string ids.

* Drop table db_script_string.

* New database release.
2017-11-09 16:01:53 +02:00
StadenElysium 378c024e84 Fix a couple of small out-of-bounds bugs (#527)
* Fix a couple of small out-of-bounds bugs
* Fix bad health comparison
* Remove unused var
* Fix dodgy comparison
2017-11-08 15:07:40 +00:00
brotalnia 49727ee813 Fix texts for quest Hidden Enemies. 2017-11-04 22:48:23 +02:00
GuybrushGit 7093510629 Fix to Silithus Wind Stone mobs (#25) 2017-11-04 15:10:20 +11:00
LHGemt 22c05ecc62 Atiesh (#422)
* Atiesh implementation

* remove unused code

* only apply unholy aura during combat

* atiesh: added red lightning cast on spawn
2017-11-01 04:28:53 +02:00
LHGemt 1353e67621 heigan: some fissures that were hitting in zones they should not have been fixed (#285) 2017-11-01 03:28:09 +02:00
kampeador 0bcbc103fb Fixed some issues in The Missing Diplomat(q:1249). (#108)
- Fixed a server crash during the next event when the previous one was failed near the gate.
- Slim's friend will now help Tapoke "Slim" Jahn outside quest event.
- Fixed an issue when Tapoke "Slim: Jahn respawned 2x longer than needed and Mikhail reported a wrong information.
- Fixed an issue when Slim's friend corpse didn't despawn if the quest was failed near the gate.
2017-10-31 23:20:01 +02:00
GuybrushGit 5be9e51e45 Added Your Fortune Awaits You quest chests (#32) 2017-10-31 23:14:47 +02:00
bladez 4932256e35 Resolve a crash in channeled spell update when multiple holders are removed during iteration (#368)
* Added a simple unit AI script for testing casting on multiple units that despawn during the spell update

* Now step the aura update iter on holder removal

* Prevent array overrun

* Now initialize m_channelUpdateIterator, refactored and slightly optimised channel holder removal

* Allow unused custom script warnings to be suppressed
2017-10-29 14:14:09 +11:00
brotalnia b9b006db08 Correction to structure of some packets. (#240)
* Correction to packet MSG_QUEST_PUSH_RESULT.

* Packets SMSG_PET_NAME_INVALID, SMSG_RAID_GROUP_ONLY, SMSG_OPEN_CONTAINER

* Correction to packet SMSG_TRANSFER_ABORTED.

* Implement SMSG_MOUNTRESULT, SMSG_DISMOUNTRESULT.

* Remove handlers for non-existent opcodes.

* Rename SMSG_CAST_FAILED to SMSG_CAST_RESULT.

* Fix guid sent in SMSG_PLAYERBOUND.

* Implement SMSG_INVALIDATE_PLAYER.

* Implement CMSG_MOVE_SET_RAW_POSITION.

* Corrections to SMSG_LOGOUT_RESPONSE, SMSG_*_QUERY_RESPONSE.

* Correction to SMSG_GAMEOBJECT_QUERY_RESPONSE, guild related enum.

* Fix spacing.

* Few SMSG_CHANNEL chat opcodes.

* Correction to packets SMSG_READ_ITEM_OK, SMSG_READ_ITEM_FAILED.

* Revise packets SMSG_QUESTGIVER_QUEST_FAILED, SMSG_QUESTUPDATE_FAILED.

* Remove extra value from SMSG_SPELLHEALLOG, SMSG_QUESTGIVER_REQUEST_ITEMS.

* Corrections to SMSG_BUY_FAILED, SMSG_SELL_ITEM, SMSG_BUY_BANK_SLOT_RESULT and petition signing.

* We don't need those brackets.

* Move SendGameObjectCustomAnim() to GameObject class.

* Implement packet SMSG_GAMEOBJECT_RESET_STATE.

* Refactor bg group queue checks to implement error messages for SMSG_GROUP_JOINED_BATTLEGROUND.

* Add back text error.

* Correct ResponseCodes, ActionFeedback enums.

* Correct SMSG_PARTY_MEMBER_STATS_FULL size for offline member.

* Implement SMSG_SET_FACTION_ATWAR.

* Corrections to SMSG_UPDATE_INSTANCE_OWNERSHIP, SMSG_UPDATE_LAST_INSTANCE, SMSG_INSTANCE_RESET_FAILED.

* Don't send reset error to offline player.
2017-10-27 17:25:43 +03:00
GuybrushGit 119dac1e34 Misc DB fixes (#37)
* Misc DB fixes

* Misc DB fixes

* Update migration to new format.

* Girdle of Nobility loot tables

* Pet immunity and Shadow Mastery

* Pet immunity and Shadow Mastery

* Kul Tiras no PvP flag

* Stormpike Emissary condition

* Remove duplicate Stormpike Emissary spawn.

This spawn is a duplicate. There already is a Stormpike Emissary at the same position for the Call to Arms: Alterac Valley event.

* Forgot the creature_addon entry.
2017-10-27 00:45:35 +03:00
brotalnia d6e3c6bbcc Fix startup errors and misc stuff. 2017-10-27 00:24:22 +03:00
brotalnia c074c04015 Fixes to naxx merge migrations. 2017-10-26 19:05:57 +03:00
Prithu Parker 2c41c80713 Merge branch 'release-clean' into development 2017-10-26 19:12:24 +11:00
Prithu Parker 001a77c2dd Missing Diplomat cleanups and pointer safety 2017-10-26 14:04:36 +11:00
GuybrushGit 256801be03 Fix Mandokir targetting pets (#44) 2017-10-24 00:45:33 +11:00
bladez 65bd4457f3 Merge pull request #198 from thepparker/more-missing-diplomat-fixes
More Missing Diplomat cleanups and fixes
2017-10-23 18:30:29 +11:00
Prithu Parker ac3819dde1 Prevent crash if summoned creature despawns during the event
Additional cleanups
2017-10-23 01:49:08 +11:00
shenna eefc5f439f Blizzlike values for amounts required for War Effort materials 2017-10-16 03:50:35 +03:00
Prithu Parker 4ff96da8cc Missing Diplomat cleanups and pointer safety 2017-10-14 20:17:52 +11:00
Prithu Parker 6ac0cd1c68 Merge branch 'development' of git@github.com:elysium-project/server.git into release-merge
# Conflicts:
#	sql/migrations/20170929190759_characters.sql
#	src/game/Chat/Chat.cpp
#	src/game/ObjectMgr.cpp
#	src/game/Objects/Creature.cpp
#	src/game/Objects/GameObject.cpp
#	src/game/Objects/Player.cpp
#	src/game/Objects/Unit.cpp
#	src/game/Spells/SpellAuras.cpp
#	src/game/Spells/SpellEffects.cpp
#	src/scripts/world/npcs_special.cpp
2017-10-14 12:41:18 +11:00
Prithu 4df596dd2b Ensure Chromaggus always enters enrage mode once he reaches 20% HP (#3147)
* Ensure Chromaggus always enters enrage mode once he reaches 20% HP

* Don't need to cast with CAST_TRIGGERED
2017-10-13 13:33:12 +11:00
brotalnia 8332d93eb7 Script Emerald Dragon Whelp. 2017-10-10 05:04:30 +03:00
brotalnia deea4ac912 Script Lady Jaina Proudmoore. 2017-10-10 04:03:54 +03:00
brotalnia ff6355fdec Try to fix compile on linux and fix warnings. 2017-10-09 11:07:48 +03:00
brotalnia dd45d7b8c3 The Missing Diplomat fixes. 2017-10-09 09:48:18 +03:00
kampeador 6330854d32 Missing Diplomat: Enhanced Edition. (#2715)
* Missing Diplomat: Enhanced Edition.

Missing Diplomat id: 1447:
Complete event rework featuring:
 - A new mechanics for thugs.
   * Their spawn positions have been corrected.
   * Implemented a cutscene when Dashel has been defeated and thugs stayed alive.
   * "Ok Boss!" placeholder was replaced with 2 blizzlike texts.
   * Fixed a bug with an incorrect despawn.
   * Thugs will now focus player who started a quest event and will not put other players nearby into a combat mode.
   * Thugs will now use a correct "attack" animation instead of switching to "stand" after each hit.
 - Fixed some spelling errors in existing texts.
 - Fixed a bug when Dashel sometimes get stuck in combat mode.

Missing Diplomat id: 1324:
 - A new text quote for Hendel's friends.
 - Fixed some spelling errors in existing texts.
 - Added a visual effect for the Teleport spell used by Tervosh on Private Hendel.
 - Fixed an inconsistent behavior, when a Private Hendel has been defeated, allies have not yet arrived and a random creature started to attack him.

Missing Diplomat id: 1265:
Full quest event implementation.
 - A new quest area-trigger. 1667 instead of 330.
 - Tervosh will now appear, once player enters a Sentry Point tower. All guards inside will salute him.
 - Tervosh will will buff players with Proudmoore's Defense on quest complete.
 - Many rare cases for high population has been resolved(i.e many players are doing this quest at the same time).

Missing Diplomat id:1249:
Complete event rework featuring:
 - Detail emotes for quest text.
 - Tapoke "Slim" Jahn now uses a correct stealth spell with 8 sec duration.
 - A waypoint path for Tapoke "Slim" Jahn has been reworked completely.
 - Tapoke "Slim" Jahn has learned a new ability: Pummel.
 - Implemented a Mikhail's gossip script. His gossip behavior is very different from other NPCs in a game and consists of 3 states, but only 1 is active at a time, depending on a player's quest status.
   * Gossip: A special gossip text for players trying to start a quest event if Tapoke Slim Jahn is unavailable(event was started, he is dead or pulled away from the inn).
   * Quest: Other Missing diplomat quests or event q:1249 is ready to start.
   * Nothing: No quests, no gossip.
 - Implemented a Slim's friend behavior. He will continue to help Tapoke "Slim" Jahn after enemy Vanish, Feign Death, etc.
 - Fixed a critical issue with respawn timer. It was 2 seconds after the first player completed this event.
 - Quest will also fail if Tapoke "Slim" Jahn ran away from player/group range.
 - Fixed an inconsistent behavior when Tapoke "Slim" Jahn was attacked by player from the opposite faction, during the event.

Misc:
 - Fixed an issue when: if (uiDamage > m_creature->GetHealth() || m_creature->GetHealthPercent() < 20.0f) fails and NPC dies if multiple harmful spells land on the target at the same time.

npc_escortAI API:
 - Added a method to turn on/off pathfinding between waypoints.
 - Added a method to control a delay before the first waypoint. Hardcoded value (2500ms) is too high for some quests.

* Added some missing data.

* Added some missing data. Part 2.
2017-10-09 02:59:39 +03:00