Commit Graph

62 Commits

Author SHA1 Message Date
schnek
d60dbb03e9 fix register 2022-11-11 10:42:34 +01:00
schnek
3467f3eda4 start of classic version support 🎉
the ability to log in and enter the world
can't create a new character
2022-04-06 21:40:38 +03:00
aaron02
1e7e13766d Vehicle Handling (#987)
* vehicle handling

* Spells: Handle custom base points correctly

* fix Vehicle and Movement
fix Vehicle Position Updates, Fix Vehicles make no Damage

* Units: Add functions to handle unit spell immunity

* fix a crash on respawn
vehicles shouldnt chase

* fix cata vehicles
Fix Not able to switch seats from Acessory to Base
crashfixes and codestyle

* Auras: Aura effects should be properly updated on aura refresh

* review from appled

* review from appled

Co-authored-by: Appled <346848+Appled@users.noreply.github.com>
2022-01-27 07:45:28 +01:00
Appled
e30342d4e3 Welcome to 2022 2022-01-02 04:23:11 +02:00
Zyres
b75553ffa7 Rewrite misc function s in class Unit and finish cleanup for now 2021-11-21 20:54:10 +01:00
Zyres
3052911382 First batch of removing unnecessary asserts from project 2021-09-07 23:38:52 +02:00
Zyres
5f81bf2264 Added case onLoad to aispells
Added debug command ".debug dumpscripts X" to move scripts much faster to db den writing everything by hand. X = mapId.

ATTENTION: Using this command will took a lot of resources. for every map you executing this command, you will find a new table in your world db (including all aispells which are not already in creature_ai_scripts).

Please use this command only if you know what you are doing. The dumped data requires some checks.
2021-08-25 18:40:47 +02:00
Zyres
3565a8fb32 Remove all unused include from project world
NOTE: Every time we include a header file it will be compiled... stop including them if we are not using them ;)
2021-07-04 01:35:21 +02:00
Zyres
575032e632 Good Bye StdAfx.h - you where used as a global include file, this ends now
Welcome cmake generated pch, show us what you can do to our compiletime :-)
2021-07-03 21:11:52 +02:00
Appled
42471b808b Chat: Some refactoring to unit chat 2021-06-20 19:50:48 +03:00
aaron02
b718ff0df1 Enabled More AIInterface
Rewrite some pet AI, threat handling, transporters
2021-05-28 01:58:54 +03:00
Adrian Weihs
0b5f629d12 Renamed logger to sLogger. 2021-05-07 19:47:51 +02:00
Adrian Weihs
b27100d6b5 Renamed LOGGER to logger. 2021-05-07 14:41:21 +02:00
Adrian Weihs
c44860b827 Rewriten Logging
Created new Logger class which function like log4j from apache.
2021-05-07 12:00:22 +02:00
Appled
ac727cb0d5 Welcome to 2021 2021-01-01 18:25:13 +00:00
aaron02
826607a0f5 Fixed Build, Updatet Commands 2020-12-29 18:14:15 +01:00
Appled
143760e509 Units: Implemented power types for Cataclysm
Units: Rewrote power regeneration
Units: Rewrote mana regeneration calculations
Spells: Rewrote spell start and spell go packets
Players: Fix player corpses (typo in corpse.cpp)
Misc: Organize SpellHandlers library
Misc: Fix crash with undefined spell aura effects
Misc: Clean C style casts
2020-01-31 18:04:16 +02:00
Zyres
a0776e0794 Welcome to 2020 2020-01-09 12:49:09 +01:00
Appled
1e0df75477 Replace old Singleton solution with modern and thread-safe c++11 static method
Closes https://github.com/AscEmu/AscEmu/issues/574
2019-11-17 18:56:53 +02:00
Zyres
c81a21457e MOP: Create mop files based on Cata files 2019-01-12 20:40:50 +01:00
schnek
2a4d9637a8 It is 2019. Update Copyright note. 2019-01-08 20:49:57 +01:00
Rachael Hepworth
9d5ca0f8d3 Some experimental movement code 2018-12-06 04:17:23 +00:00
Rachael Hepworth
16c6cf84e3 Implement UpdateMgr and SplineMgr 2018-12-05 16:16:39 +00:00
Zyres
a9c668bc63 Replaced enum index based chat commands 2018-11-23 17:34:59 +01:00
Zyres
b7e41013ff Add .debug setweather command 2018-08-18 12:35:53 +02:00
Zyres
003f6c5201 Added debug commands to add/get player flags 2018-03-09 01:58:42 +01:00
Zyres
dadcd12390 Added command .debug setunitbyte 2018-02-22 16:27:12 +01:00
Zyres
5f99428a41 Happy 2018 2018-01-02 12:53:51 +01:00
Zyres
2c4c18e161 Warnings: Reduce the amount of warnigs level 4 2017-11-19 14:58:48 +01:00
Zyres
5b41bd0a7d Scripting: Random target. min/max range for hp/distance is now part of CreatureAISpell.
* added helper functions for range check.
 * added .debug dopercentdamage <num> - sends damage for creature for %num.
2017-11-15 17:51:55 +01:00
Zyres
262588b622 Scripting: added locale timer storage/update for creatures on maps without instance script.
* timers get updated locally by AIUpdateFrequency.
 * Command .npc showtimers returns a list of all active timers + time left in ms.
 * the timer update gets bound to InstanceUpdateFrequency if script is available for map on creature spawn.
 * updated event script for Darkmoon Fair as example.

NOTE updateAITimers and timer storages are for internal use only, use the provided functions to work with these timers.
2017-11-11 17:39:50 +01:00
Zyres
7e49b10cdb Scripting: added new virtual function OnScriptPhaseChange(uint32_t scriptPhase).
* gets called when CreatureAIScript::mScriptPhase gets changed (except for phase 0)
 * added debug command to set scriptPhase
2017-11-11 14:40:45 +01:00
Zyres
ed106d1bc7 Scripting: register update event for all instances (default set to 1000 ms)
* add encapsulated update frequency var for instances
 * encapsulate mSpawnsCreated.
 * Style, remove ;
2017-11-05 11:03:16 +01:00
Zyres
cbe2cb34dd Commands: send spline to update orientation. 2017-10-20 17:27:14 +02:00
Zyres
2c9cbc5840 Scripting: corrected moveToSpawn.
* Add some debug commands for further investigation and tests
2017-10-20 10:40:56 +02:00
Zyres
8096960abd AIInterface: splinefunctions minor refactoring.
* Added debug commands for splinemovement functions.
 * removed teleport spline function (used in leap effect) and replaced with jump spline movement.
2017-10-05 06:05:34 +02:00
Zyres
d077b44d25 Scripting: get by spawnid functions (go and creature)
* command .instance countcreature x returns number of creatures with entry x
2017-09-29 20:18:26 +02:00
Zyres
0b7c8d923b Logon/World Comm: Implemented get account id from account table.
Chat/Commands: implemented .account getid X returns account id for account name from account table (logon_db) - not case sensitive
2017-09-12 20:00:05 +02:00
Zyres
49bee32443 Cata: applied guild commits mentioned in #428 2017-07-02 01:34:36 +02:00
Rachael Hepworth
a759be6bf5 Use same ServerState singleton across libs 2017-03-25 15:22:19 +00:00
Zyres
98ed97304b TBC UpdateFields functions 2017-03-16 04:45:21 +01:00
Zyres
c8a11d2442 Merge commits from branch '4.3.4'
----- dfeb08f6a60335a7b2e25b37f74fa77bed4fe2f4
Handle DB2 files
Implemented: MSG_WOW_CONNECTION
Updated opcodes: SMSG_AUTH_CHALLENGE, SMSG_CHAR_ENUM, CMSG_AUTH_SESSION, SMSG_AUTH_RESPONSE, SMSG_CLIENTCACHE_VERSION

----- 135a1873a79a1f1db244a8f12802f1a1aa711f37
Some Opcode changes. Implemented ObjectGuid and char enum.  …
Char creation works now.
todo: clean it up.

----- 5fb13177a9d497a26628de5db13e0b995e44e471
Reimplemented CHAR_CUSTOMIZE_FLAG_CUSTOMIZE  …
Updated opcodes: CMSG_CHAR_CUSTOMIZE and SMSG_CHAR_CUSTOMIZE

----- 4b9780a63595c21ea26aee9400efc6fbf5b7d309
Updated opcodes: CMSG_CHAR_RENAME and SMSG_CHAR_RENAME

----- dd262bddd6df48b78f7f45511da8541f2f7e937b
Updated update fields.
2017-03-15 19:46:46 +01:00
Zyres
a0e2801fb2 Set lower case names for creatures on loading from database.
Corrected info for .lookup creature.
Close #426
2017-03-11 18:14:12 +01:00
Zyres
653383f579 Attempt to seperate tbc and wotlk pakets 2017-02-25 20:59:22 +01:00
Zyres
aeb9c280e1 Style: Apply style lowerUpperUpper on new functions in Unit.cpp
Style: Update comments beside opcodes.
Commands: Add help for debug commands.
Implemented opcode SMSG_SPLINE_MOVE_ROOT and SMSG_SPLINE_MOVE_UNROOT for npcs.
2017-02-22 06:47:34 +01:00
Zyres
e1a681471a Added command .debug speed (sets speed for unit <creature/player>)
Send spline packets on speed change for creatures, send force/move speed pakets for players.
Removed Creature::SetSpeeds and virtual Unit::SetSpeeds function - not used now.
2017-02-21 20:31:35 +01:00
Zyres
38990c9876 Add spline packet featherfall and waterwalk for creatures.
Rewrote command .debug waterwalk (toggles waterwalk),
![spline_waterwalk](http://i.imgur.com/ltWfAZA.png)

Added command .debug featherfall (toggles featherfall).
![spline_featherfall](http://i.imgur.com/m3k9ykz.png).
2017-02-14 22:09:42 +01:00
Zyres
3ca6720949 Added command .debug fly (sets moveflag fly on creature target)
Expand SetMoveCanFly(bool)
![fly_spline](http://i.imgur.com/7daJ9Hp.png)
2017-02-14 20:32:52 +01:00
Zyres
15379cbe0d Added command .debug disablegravity (sets moveflag disablegravity on unit target)
Added new function SetMoveDisableGravity(bool) to class Unit.
Renamed MOVEFLAG_NO_COLLISION->MOVEFLAG_DISABLEGRAVITY
2017-02-14 20:14:17 +01:00
Zyres
c957d1a07b Added command .debug swim (sets mobement flag swim on creature target)
Added new function SetMoveSwim(bool) to class Unit.
![swim](http://i.imgur.com/7daJ9Hp.png)
2017-02-14 19:10:14 +01:00