Commit graph

7 commits

Author SHA1 Message Date
gmriggs
9dad7c222c
update vloc to more accurately reflect the coordinate space w/out the previous anomaly, update /tele to support high precision radar coordinates, with no changes to previous /tele locations (#3803)
* tele accuracy

* updates
2022-02-08 00:03:42 -05:00
fartwhif
ce2b010e69
session termination and boot command enhancement (#1653)
improved session termination and logging
improved command parameter parsing
session termination due to network problems should not be sending anything
refactor session termination terminology
moved textual session termination reasons to the same file as the termination reasons enum
added optional reason to boot command
boot axe man, char, griefing and spamming chat
boot 0x5000000C, iid
boot 1342177292, iid
2019-04-12 18:07:45 -04:00
Mag-nus
4dab146548
Code cleanup (#1681)
* Flags attribute

* empty statement

* Fix Formatting

* Fix OrderBy -> ThenBy

* use OfType

* Replace with asingle call to Count(...)

* Replace with a single call to FirstOrDefault

* Merge cast with type check

* use String.IsNullOrEmpty

* use collections count property

* use format specifier (results in shorter loc)

* use Any() instead of Count() > 0

* revert ThenBy with comment
2019-04-10 20:48:34 -05:00
gmriggs
49bb0ff7e8
Improving /tele and minimap click teleporting (#1157)
* Improving /tele and minimap click teleporting

* Updating patch
2018-12-20 07:49:03 -05:00
fartwhif
1a7ee85e74 various fixes (#1155)
* fixed blank commands crashing server

* command parser and invoke resiliency

* revert log change
2018-12-19 12:07:18 -06:00
Mag-nus
eeaf9725e4
PlayerManager (#1103)
* PlayerManager initial checkin

* OfflinePlayer initial checkin

* More progress

* Comment out Console.WriteLine debug messages

* Add property dictionaries to OfflinePlayer

* IPlayer initial checkin

* Add allegiance vars to IPlayer

* Couple comments

* More progress

* Add more to IPlayer

* line endings fix

* More progress. Compiles. Friends list works again.

* Friend status updates now work (again)

* PlayerManager save OfflinePlayers every 1hr

* Bye bye legacy AllPlayers

* using cleanup

* Allegience switch to PlayerManager progress

* More Allegiance progress

* More progress

* More allegiance progress

* IPlayer adds

* Migrate inversefriends to PlayerManager

* Switch WorldManager GetPlayerByGuid over to PlayerManager

* WorldManager Find(ObjectGuid characterGuid) removed. Use PlayerManager instead

* WorldManager FindByPlayerName(string name) removed. Use PlayerManager instead

* PlayerManager thread safety switched to ReaderWriterLockSlim

* More progress

* ServerStatus added TotalAccountsCreated, TotalCharactersCreated

* No more Player access/management stuff in WorldManager. It's all in PlayerManager now

* Player.IsOnline is no more.

* Friends AppearOnline fix

* Handle dead session better to switch player from online to offline

* Remove adding the + to names in ChatChannels. Name property should be changed to not include +

* serverstatus total accounts and characters on same line

* Allegience initial fix, still more bugs though

* PlayerManager minor cleanup

uint should be faster key than ObjectGuid

Changed the dictionaries to private. We don't want anyone outside of this class referencing them.

* Thread safety added to LScape.get_landcell
2018-12-02 13:41:16 -06:00
fartwhif
e8540917fb added sentinel command /buff [name] (#830)
* added sentinel command /buff [name]
@buff - Buffs you (or a player) with all beneficial spells.
Usage: @buff [name]
This command buffs yourself (or the specified character).

curate the spell enum a bit

* optimization

* readability

* these changes were not supposed to be included in the previous (or any) of my commits

* added @fellowbuff [name] "This command buffs your fellowship (or the fellowship of the specified character)"
optimization

* adding command handler sanity preserving parameter parsing
added optional parameter to /grantxp debug command for specifying a character
fixed bug in parsing of location parameter for the /tele command when the second coordinate contains a decimal
2018-06-29 22:04:54 -04:00