Commit Graph

28 Commits

Author SHA1 Message Date
Prithu Parker 92c3613056 Reverted a previous change to IsWithinLootXPDist - must check IsInMap before GetMap() 2017-11-24 17:11:45 +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
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
bladez 8b242a1da7 Now delay far teleports until the map update is complete (#666)
* Add locks for getting/setting object map
Prevent updating quest fail status for players in another map

* Now use FindMap() in IsInMap rather than GetMap(), so we can continue if the map is NULL

* Prevent UpdateForQuestWorldObjects() call with serialized map check as well as IsInWorld()

* Implemented support for delaying far teleports until after map updates have completed. Resolves issues with thread-safety when checking player map and world across threads
NOTE: ADDING players to maps on a teleport is already thread safe (performed synchronously in the world update, before map updates)

* Removed current map guards, world and map status are now always thread safe

* Add support for cancelling and executing a specific player's teleports
Now set the player teleport semaphore on schedule to preserve existing implementations that check if a teleport is scheduled

* Now synchronously force player teleports on login and logout

* Re-add instance check in TeleportTo before teleport schedule
Add cleanup on player delete

* Ensure we always return something in ExecuteTeleportFar

* Now set a pending teleport rather than a far teleport sempahore, so port acks cannot be exploited while waiting for the teleport to be processed
2017-11-17 18:48:03 +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
GuybrushGit 7093510629 Fix to Silithus Wind Stone mobs (#25) 2017-11-04 15:10:20 +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 e39407294b Removed distance limits from raid loot (#2433) 2017-09-26 17:32:18 +02:00
Gemt 2562b2e6f4 naxx invasion event moved spawn logic of attack necropolises to a hardcodedGameEvent. 2017-09-03 15:51:21 +02:00
Prithu Parker a7f8c58c60 Implement customisable visibility modifier for world objects that allows draw distance to extend beyond normal distance
- This can only be used for active objects, as they are the only objects that will update outside of normal draw distance
- Active objects are stored on the map, and added to player visibility updates based on their visibility modifier (or standard draw distance if none)
2017-09-01 01:42:05 +10:00
Gemt 7a0181ad59 Merge branch 'development' into naxxramas 2017-08-27 18:25:08 +02:00
sipertruk 1ecf2e05e6 crash fix attempt (#1789) 2017-08-15 18:45:52 +10:00
Gemt 5585e470fc Merge branch 'naxxramas' into dev_naxx_merge 2017-08-09 19:13:30 +02:00
Gemt 3d74deb15c ported creature linking from mangos/cmangos 2017-07-31 23:33:18 +02:00
Prithu 58ced4862d Fixed some issues with the Blackwing Technicians (goblins) (#1452)
* Technicians will now select a new target if their current victim dies

* Now properly set m_zoneScript on WorldObjects on map change, required for ZoneScript events like OnPlayerDeath

* Fixed some issues with the Blackwing Technicians
- They should now always focus the same target after the first pack
- They will now properly re-acquire a target if someone surpasses the current target in threat
- They will now switch to the second highest threat if their current target dies, rather than remain at the target's corpse
2017-07-14 12:57:04 +01:00
WobLight 41652c6ade Limit unit tracking visibility to the caster (#1002)
* Limit unit tracking visibility to caster's party

* Limit unit tracking visibility to the caster

* Aura::HandleAuraModStalked: force flag update to update owner
2017-07-03 09:36:51 +01:00
brotalnia 1e8635f2f6 Misc Fixes for Flight Master NPCs (#1306)
* Show quest icon for flight master NPCs - cyberium

* Don't show gossip menu when learning new flight paths - robinsch
2017-07-03 09:32:17 +01:00
WobLight 8f06c66783 More bg banner fixes (#966)
* Battleground: do not allow to cast on destroyed banners.

* Alterac Valley: add faction to contested towers and bunkers

* added workaround to fix PvP Banners state from sometime being broken

* fix PvP banners spawn animation

* Corrected banners spawn delay for assaulted Battlefield nodes
2017-06-29 08:07:40 +01:00
sipertruk a695de846d Transport fixes (#1124)
* transport fixes

* better way for transport update
2017-06-29 08:04:44 +01:00
sipertruk 8946f3e56b fix targeted monster chat not working (#384) 2017-06-29 08:04:22 +01:00
Kittnz d9187285ee Core/Opcode: Add support for SMSG_PLAY_MUSIC (#944) 2017-06-01 16:56:26 +01:00
Staden 276a3411c7 Merge branch 'aq' into aqmerge 2017-05-16 10:07:13 +01:00
eir 0e108379f7 Scripts/Silithus: Implement Ahn'Qiraj Opening Event (#486)
Working Ahn'Qiraj opening scene.
Missing are some mobs and General Rajaxx
2017-04-24 07:47:31 -07:00
Gemt 086d906e38 mangosify loot and xp modifier code 2017-04-18 16:53:26 +02:00
Dagobert Duck 316a5fafd1 fixes duplicate const made by 1144551f98 2017-04-18 11:02:27 +02:00
Gemt 1144551f98 added ability to override valid loot and xp distance on a worldObject 2017-04-17 23:30:26 +02:00
StadenElysium 43452c0d9c License update (#27) 2017-03-15 17:27:20 +00:00
shenna c9151a5715 Initial Commit / Core Files 2017-03-10 00:38:11 +03:00