Commit Graph

25 Commits

Author SHA1 Message Date
codestothestars 70c42c4a93 Fix gossip menu options for client version 1.5 (#2193)
* Fix gossip menu options for client version 1.5

Decompiled 1.5 client code shows that...
1. The icon is read as a 32-bit integer instead of 8-bit.
2. The "coded" field is not read at all, indicating that that field was
added in patch 1.6. This lines up with the Blue Murloc Egg being likely
the first item obtainable by gossip-code in late 2005.
Before this change, opening a gossip menu with options would crash the
client.

* Correct version check style
2023-09-17 12:00:44 +03:00
ratkosrb 77698b645d Optimizations to some query and quest packets. 2023-04-24 06:48:13 +03:00
ratkosrb 19e716439c Remove useless debug logs from packet handlers. 2022-11-03 22:30:33 +02:00
namreeb dfb90c5880 Logging rewrite (#1519) 2022-10-06 16:34:56 +03:00
ratkosrb 0347766a19 Reimplement item template loading.
Now bots will not equip items that come from quests which are too high level for them.
2022-09-23 21:57:08 +03:00
GrenderG 0d298dd9c3 Cast ZoneOrSort to int32 instead of uint32 since it can be negative. (#1194) 2021-05-19 12:15:22 +03:00
ratkosrb 8051447555 Change naming style of broadcast_text fields. 2020-02-02 16:30:27 +02:00
ratkosrb e806acc769 Apply clang tidy fixes. (#330) 2019-12-24 06:23:40 +02:00
ratkosrb 49b9a82244 Switch to east const style. 2019-12-21 00:45:35 +02:00
ratkosrb 221145d46e Misc code style cleanup. 2019-12-20 07:18:54 +02:00
ratkosrb 66659fe13f Cleanup and reorganization of Unit and SpellEntry headers. (#312)
* Move some unit and spell defines to dedicated header.

* Reorder functions in unit header.

* Clean up until spell category.

* Finish cleaning up spell functions.

* Cleanup combat system methods.

* Done cleaning up unit header.

* Reduce not needed includes.
2019-11-24 22:20:44 +02:00
ratkosrb ebab772363 Fix some static code analysis warnings and improve performance
Credits to cmangos https://github.com/cmangos/mangos-classic/commit/46229bb28c6a4362dc4f4ee88e8bdaf962cb1d58
2019-11-17 15:57:34 +02:00
ratkosrb acaa54ae9d Initial support for 1.9.4 client.
You can enter world and objects display correctly. Lots of startup errors though.
2018-11-19 05:31:20 +02:00
brotalnia bda11aece8 Add broadcast texts to gossip menu options. (#926)
* Add broadcast texts to gossip menu options.

* Add deleted teleport npc in custom patch.
2017-12-07 08:59:31 +02:00
brotalnia 1335cfff91 Implement broadcast texts in npc_text table. 2017-11-19 23:09:15 +02: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
brotalnia 298fbaca94 Expand quest greeting implementation. (#2530)
- Gameobjects can now have a quest greeting.

- Added some missing greetings from cMaNGOS.

- Default gossip text will no longer be shown when quest greeting is missing.

- Add gossip to Haughty Modiste.
2017-09-12 16:08:40 +03:00
brotalnia 3308c65227 More efficient check if quest has item requirement. 2017-08-20 13:01:12 +03:00
brotalnia 8504bd9f4c Implement Quest Greetings. (#1944)
* Implement Quest Greetings.

* Change int to uint.

* Add more German texts thanks to stratos_5.
2017-08-11 04:29:26 +03: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
brotalnia 4be46bee31 Don't show incomplete text for completed quests (#1001) 2017-06-06 23:24:03 +01:00
StadenElysium 2e0826ef90 Fix SMSG_QUESTGIVER_QUEST_DETAILS to add emote support (#995)
* Revert "Implemented DetailsEmote handling for quests (#993)"

This reverts commit 104c7bc979.

* Fix SMSG_QUESTGIVER_QUEST_DETAILS structure to allow for emotes to be sent along with the quest details
2017-06-06 02:39:41 +01:00
brotalnia 104c7bc979 Implemented DetailsEmote handling for quests (#993) 2017-06-05 23:31:15 +01: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