39 Commits

Author SHA1 Message Date
Elmsroth
0f53874d1f
Implement .reset mail command + Increase max bags slots to 36 (#102)
Default behaviour :
       -------------------
        - delete checked mails (even if its is GM stationery and if it contains items in it, but not deleted COD)

       Options :
       ---------
        - cod : delete only cod mail (even if it is unchecked)
            TODO -> to improve => return cod to sender instead of delete
        - gm : delete only GM stationery emails (even if it is unchecked)
        - all : delete all mails (even if it is unchecked)
        - from XXXX : delete all mails from specific sender in the slected player mailbox, name or guid
          TODO  -> to improve, if unchecked return letter to sender to inform it was not read and purged by GM for tech. reason.

        TODO : future => handle reset mail for Offline char ?
2020-06-17 07:50:54 +01:00
Elmsroth
9b8a213ba9
Implement .reset items command (#101)
Fix BagSize limit to 36
Fix Null pointer Exception
fix revision.h
Fix building issues
2020-06-04 21:35:06 +01:00
Antz
2d32788121 Minor styling tidy up 2020-05-24 21:01:04 +01:00
Elmsroth
a2accf6029
Now we can inspect player when GM mode is ON (#98)
* Now we can inspect player when GM mode is ON

* Fix potential crash in ExecuteCommand
2020-05-23 18:44:47 +01:00
Elmsroth
f2ae3ed7b7
Implement command localization (#97)
Implement Localization for Commands.
2020-05-22 16:09:11 +01:00
Elmsroth
1b33fc4284
GM Commands files reorganisation (#96)
No more LevelX.cpp !
Now commands are grouped by relevant Topics
2020-05-18 00:22:53 +01:00
Elmsroth
778941c09a
Gm ticket handling fixes (#90)
* Fix .ticket response & .ticket close handling

- Now the GMTicket::SetResponseText method will save the response to the right ticket and will nor update all ticket responses for the same character
- Fix potential issue in GMTicketMgr::Create : limiting to the the most recent ticket of the player and avoid potential multiple returns if there is inconsistent data in table
- Fix GMTicket::SetText
- Prevent to update ticket_text for old tickets of the same char when submiting ticket or updating ticket text in game
- Fix item_text GUID generation
- Setting system response when ticket closed without mail response
- Create a PSendSysMessageMultiline function , will split a mangos string in multiple lines if "@@" string is found.

* Fix revision.h after structure change

Need apply Rel21_16_053_GM_tickets_handling_fixes.sql in order to work correctly
2020-05-11 09:16:01 +01:00
Tim Forbes
7fd24f7a6a
Make Mangos Zero compatible with newer MySQL (#83)
* Delimite SQL queries for MySQL 8 compatibility

* Fix database name for PlayerDump

Fix an incorrectly escaped SELECT

* Missed a tick
2020-04-23 19:53:28 +01:00
Antz
d698c18b1c
Apply style fix pt4 2020-01-13 23:43:29 +00:00
Antz
343193ef2d
Apply style fix pt3 2020-01-12 21:17:49 +00:00
Antz
4e9f27e284
Apply style fix pt2 2020-01-11 23:50:26 +00:00
Antz
ec54642cdf
Apply style fix 2020-01-10 16:15:51 +00:00
Antz
d34051d719
Minor typo tidy up 2020-01-07 22:35:20 +00:00
Antz
57464c1f32
Happy New Year 2020 from everyone at getMangos.eu 🎉 2020-01-06 21:21:08 +00:00
Antz
6b0e4a7228
Happy New Year 2019 from everyone at getMangos.eu 🎉 2019-01-02 23:27:16 +00:00
H0zen
d014ca2599 ObjectAccessor rewrite
- ObjectAccessor now hides it's inner locks
  - Introduced C++11 lambdas; from now on, VS2012 and any non C++11 compiler are not supported anymore
2018-03-29 14:39:32 +03:00
Antz
52454825c7 Happy new year from getmangos 🎉 2018-01-14 10:24:47 +00:00
Antz
71593d747d Remove last reminents of obsolete npc_gossip table 2018-01-05 21:38:15 +00:00
Olion
55d99aa41b Command: debug recv
Places the packet described in the ropcode.txt server-side file into own packet queue (counterpart of debug send opcode).
2017-07-25 11:30:08 +01:00
Antz
756c8ff797 Remove unused include directives
Based on the work of @stfx in commit:
https://github.com/cmangos/mangos-classic/commit/48a84fb
2017-01-20 23:20:46 +00:00
H0zen
16aa27c03a AutoBroadcast system.
-This commit is paired with 1 database update
2017-01-12 16:47:40 +02:00
Antz
cb2d60ba17 🎉 Happy 2017 from everyone at getmangos.eu 2017-01-01 14:19:24 +00:00
H0zen
cdd3489f08 Various external fixes - part 9 (#168)
Ported commits from cmangos repositories
- https://github.com/cmangos/mangos-classic/commit/b09f961
- https://github.com/cmangos/mangos-classic/commit/14cb464
- https://github.com/cmangos/mangos-classic/commit/de7e4cc
- https://github.com/cmangos/mangos-classic/commit/0181ff1
- https://github.com/cmangos/mangos-classic/commit/be4f74b
- https://github.com/cmangos/mangos-classic/commit/1ede0a0
- https://github.com/cmangos/mangos-classic/commit/5cf8095
- https://github.com/cmangos/mangos-classic/commit/35e30d8
- https://github.com/cmangos/mangos-classic/commit/ff444d2
- https://github.com/cmangos/mangos-classic/commit/86568b8
- https://github.com/cmangos/mangos-classic/commit/a554fa5
- https://github.com/cmangos/mangos-classic/commit/c4606f3
- https://github.com/cmangos/mangos-classic/commit/6fcc33f
2016-09-13 15:50:30 +01:00
Zilvereyes
fc3f83c334 Fix "crash" by ".ticket accept" (unable to handled no args) (#165)
* Fix "crash" by ".ticket accept" (unable to handled no args)
Fix .ticket info (ticket req Gamemaster+, info req Moderator+)

* Added comment on ".ticket accept"

* Added comment on ".ticket accept"
2016-09-06 01:38:31 +01:00
H0zen
fbf53e316e Implement quest_relations table (#114) 2016-04-12 20:38:16 +01:00
Antz
c453b05106 Corrected website URL 2016-03-20 22:09:21 +00:00
Olion17
2f17dbe017 [GM] .ticket command rework
Including ticket numbering fix (now real ticket IDs throughout)
Closing tickets for offline players
2016-03-19 22:23:37 +00:00
Olion17
ceaf2aa1e9 cleanup inspired by GCC build 2016-03-02 23:34:54 +00:00
Olion
247313df1d Reload command do not announce to player accs 2016-02-19 23:27:04 +00:00
Olion
b34cfa0a4a Added disables table
Mostly backported from TC.
Changed table format (mapID in lower 16 bit, areaID in higer 16 bit of data field).
Added CREATURE_SPAWN and GAMEOBJECT_SPAWN disable types.
2016-01-02 22:18:14 +00:00
Antz
3967eddc87 [2016] Happy New Year from the MaNGOS Team 2015-12-31 21:15:37 +00:00
stormrage-project
1d35902127 Commands for GO manipulations (gobj): anim, state, lootstate 2015-09-10 01:25:06 +01:00
Foereaper
ee336830b5 Implement Playerbots
This is the first, rough implementation of Playerbot AI by Ike3, originally playerbot by blueboy

There's still TONS of work left to do on this, but it should compile and build

This introduces a new cmake option, playerbots. Disabled by default
2015-04-04 01:21:17 +02:00
Olion
e28a446f24 [Core/SD2] Major refactoring of SD2 script system 2015-04-01 01:34:08 +03:00
schmoozerd
93aef79e8a [Core] Fix crash when using console commands 2015-03-26 09:57:57 +00:00
Antz
15bd01600e Implement player rank in defensive channels
Based on (c2613) by @Laizerox
2015-03-26 09:33:04 +00:00
schmoozerd
95073a4d1c [Waypoints] Complete redesign of waypoint system
Rewrite Waypoint related commands (c2612)
Toggle the commands .wp add .wp modify and .wp show to be able to work with waypoints from creature_movement_template

Technical changes:
* Move Path Selection to WaypointManager
* Set visual waypoints to be summoned npcs

Remove .npc addmove command to add a waypoint. (c2619)
For this .wp add command is expected to be used

Remove unneeded functions from WaypointManager (c2620)

Waypoint Commands: Improve export command, remove import command (c2621)
* Also finally drop the wpguid columns from creature_movement[_template]
* Also remove all static spawns of id=1 (they are usually waypoints from the old system)
* Fix a minor bug in WaypointManager than can result in a crash if bad params are passed

Waypoint-Commands: Prefer current path's movement for handling (c2626)

WaypointMovement: Allow External sources to load waypoints (with different path ids) (c2627)

* Add SetExternalWaypointTable(..) function to ScriptMgr.h scope to be able to define from which table external waypoints are loaded
* Add AddWaypointFromExternal(..) function to ScriptMgr.h scope to load points into WaypointManager
* Expand MotionMaster::MoveWaypoint function to use source and pathId for specifying which path to load
* Expand MotionMaster::MoveWaypoint function to use some overwrite information for "entry".
  This will be helpfull to have one path for mobs with different entry (ie ally/horde npcs with same behaviour)
* For externally loaded waypoints let CreatureAI::MovementInform have EXTERNAL_WAYPOINT_MOVE(256) + pathId as type.
  This will allow an external user to know which of "his" paths is used
* Adapt the related commands a little bit such that parts of the commands will also be usable for external paths
  At the moment .wp show and .wp export work with external paths.

WaypointMovement: Add support to set the next waypoint (c2635)
* Also add support to initialize a path with waittime before starting movement
* Add additional types for external use of MovementInform such that MovementInform is called when a waypoint is started, or when the last waypoint is handled
* Improve some minor technical issues

Let .wp add command start with 1 as first waypoint (c2640)
2015-03-26 01:21:44 +00:00
cyberium
8f326bbe32 Add a debug command to show all possible random point for selected creature. (c2610)
To use it
- You must be GM
- Select a creature and type ".mmap testheight" to view point (using default respawn radius)
- If no selected creature it work around the player char itself.
- You can specify the radius '.mmap testheight 20"
2015-03-25 11:51:34 +00:00
Antz
386f5374ab [Release20] Initial Release 20 2015-03-22 22:10:05 +00:00