Commit Graph

128 Commits

Author SHA1 Message Date
BuildingOutLoud
9bad880f12 copy/paste mistake 2021-04-16 13:26:57 -06:00
BuildingOutLoud
df3c7b4be6 Add GetExtraFlags 2021-04-16 12:52:08 -06:00
Rochet2
5f28a2fc82 Fix most CI problems (#328)
Thanks to H0zen at 23daeb6a0d for helping comments.
2020-09-15 21:38:35 +03:00
Foereaper
126976b647 Merge branch 'master' of https://github.com/ElunaLuaEngine/Eluna 2020-09-12 18:05:14 +02:00
Foereaper
9c821527eb Add GetRealmID 2020-09-12 18:05:11 +02:00
Foereaper
dad6dba284 Merge pull request #324 from iThorgrim-Hub/master
Add SetAchievement to Eluna
2020-09-12 18:02:58 +02:00
Foereaper
b6a450569e Required changes for latest TC 2020-09-12 15:44:02 +02:00
iThorgrim
3dba4036d0 Add SetAchievement to Eluna 2020-08-24 11:42:23 +02:00
Rochet2
34151cc744 Remove CreateCorpse, Improve Ban() 2019-07-06 23:25:47 +03:00
Rochet2
eafc146405 Fix TC build 2018-09-08 21:24:46 +03:00
Grymskvll
3db9e63bd9 Fixed player:HasTalent, changed unit:GetCreatureType description, added creature:GetCreatureFamily 2018-06-09 16:56:07 +02:00
ayase
9b5499db9c AZEROTHCORE compatibility (#271)
* Done Compatible AZEROTHCORE.

* Fix TC build

* Try fix whitespace (trailing and tabs2spaces)

* Remove undefs and TC_LOG defines

* Revert indentation change

* Indentation and style change

* Add more possible SQL types to query

* change bg hooks OnBGEnd parameter type.
2018-06-06 18:42:46 +03:00
antz
c2f2dd566c Add Mangos Four support 2018-03-28 19:36:45 +01:00
Rochet2
5b9743025b Fix TC build, remove GetCombatTime 2018-01-06 00:28:30 +02:00
Foereaper
d644b3a7f0 Added game event related methods 2017-11-12 12:37:27 +01:00
Rochet2
fad53ae637 Add world object methods 2017-09-28 23:45:41 +03:00
Rochet2
b1e31a6886 Add function to check if player is immune to everything (divine shield) 2017-09-16 02:56:43 +03:00
Rochet2
de4f4276ac Remove CanRegenerateHealth method 2017-08-27 14:58:19 +03:00
Rochet2
093b5d82fa Implement get class mask and get race mask 2017-07-26 23:17:49 +03:00
Rochet2
0cba9fc4c3 Change SetPower arguments
Add modify power
https://github.com/ElunaLuaEngine/Eluna/issues/189
2017-07-19 19:53:18 +03:00
Rochet2
963352e4f5 Move GetPlayers from global method to map method.
For backwards compatibility for GetPlayersInMap(mapid, instid) use GetMapById(mapid, instid):GetPlayers()
2017-07-19 19:41:49 +03:00
Rochet2
48313dd0db Remove guild bank methods 2017-07-19 18:12:31 +03:00
Rochet2
00eef91aa2 Fix clang warnings about variable usage 2017-04-13 00:51:17 +03:00
Rochet2
4cc5e42562 fix clang warnings Wundefined-var-template 2017-04-12 23:20:27 +03:00
Rochet2
b7c379a42c Change Eluna to a global variable
Remove Eluna* from being passed. You can now get it through Eluna::GetEluna(L)
Change function call cleanup to lua_settop instead of manual loop
Explicitly delete the copy constructor and copy assignment operators
2017-03-19 15:48:48 +02:00
Rochet2
d39e49b4b0 Fix copy paste error 2016-08-10 19:56:50 +03:00
Rochet2
17d2d299c6 Add setphasemask for gameobjects and other worldobjects 2016-08-10 19:22:36 +03:00
Rochet2
33e3bf9de2 Fix some mangos compatibility 2016-01-24 19:29:42 +02:00
Rochet2
2fce645b7e new year 2016-01-05 20:19:47 +02:00
Rochet2
969c0bbbfa Fix documentation indentation and implement emote state method. Closes https://github.com/ElunaLuaEngine/Eluna/issues/181 2016-01-05 16:58:09 +02:00
Rochet2
086ad796fc Add new methods. Closes https://github.com/ElunaLuaEngine/Eluna/pull/176 and https://github.com/ElunaLuaEngine/Eluna/issues/171 2016-01-05 16:42:29 +02:00
Rochet2
c94ef51cbe Remove DeleteBonesFromWorld method from corpse and fix build for TC 2015-11-09 17:56:17 +02:00
Rochet2
28161fa2fc Remove corpse methods (report if needing them) and made changes to objectaccessor required by TC
See 402a3c45ff for more
2015-09-30 22:01:36 +03:00
Tommy
9d9e72e598 Updated method documentation and cleaned up
Method documentation should be completed. Only thing left now is polishing up (fixing typos, update wording, add enumerator data to method documentation that doesn't have it, etc)..

Cleaned whitespaces

Corrected/Fixed up some comments

Removed all known documented method comments in LuaFunctions.cpp. Commented out methods are now marked as undocumented until they are uncommented & documented in their respective header files.

Removed 'Getter, Setter, Boolean, Other' comments in method files

Documented VehicleMethods, the rest of PlayerMethods, UnitMethods, CreatureMethods and GuildMethods.

Refer to #101 for more information
2015-09-16 04:14:32 -04:00
Rochet2
83e001b2ac Remove functions not to be used or cant be used and fix TC build 2015-08-26 17:05:34 +03:00
Rochet2
b9bc5343b4 Enable null as CastSpell target and Add IsCasting
Closes https://github.com/ElunaLuaEngine/Eluna/issues/160
2015-08-10 01:11:01 +03:00
Rochet2
1bc22faa7f Add some bug and warning fixes as well as some enchantment from mthread branch 2015-08-08 15:37:22 +03:00
Patman64
31470c2cf7 Allow scripting of instances w/ persistent data
Some fixes for TC and changes overall

Pass map object to hook via function arguments

The map object is no longer stored inside the instance data table.

Fix mistake in base64 decoder

It was failing whenever it encountered a '=' character, which is
completely valid.

Make ElunaInstanceAI::Load always load something

When it failed to load data, it was leaving nothing on the stack. Since
subsequent code expected Load to always load something, this was causing
issues.

Now, when Load fails to load anything, it just leaves a new empty table on
the stack.

Also: the error messages for Load have been improved.

Modify lua-marshal to allow saving of functions/userdata.

Some additional code was needed to save functions due to the inclusion of
a reference to _ENV within their upvalues (since Lua 5.2).

During encoding, a placeholder is left where the _ENV reference would be.
During decoding, a reference to the current _G is swapped with the
placeholder.

Make ElunaInstanceAI::Load re-initialize if data failed to load.

Also improve error messages by not including the raw data.

Improve storage format of upvalues

Instead of storing the upvalues by name, store by index. A wrapper is
still used in case the upvalue is nil, to prevent holes in the upvalues table.

A special field in the upvalues table, "E", is used to store the index of
the _ENV reference (if there was one). A reference to the current globals
table is set as the upvalue upon decoding.

Remove wrapping from upvalue storing, instead save amount of upvalues
2015-08-01 00:35:41 +03:00
Rochet2
f62c655d40 Add forgotten changes from a49f6f03ac 2015-07-30 20:30:51 +03:00
Rochet2
02c7a06410 Add GetDBTableGuid method 2015-07-05 10:03:05 +03:00
Rochet2
85cd8e1900 Rework group methods, fix warnings and fix typos 2015-06-22 01:40:14 +03:00
Rochet2
3aa6d0544b Fix TC compile 2015-06-04 12:30:43 +03:00
Rochet2
564cf2b15b Add quest add and remove commands and make questcomplete try satisfy the requirements and act like quest complete command. Merge SetLevel and GiveLevel for player methods. 2015-05-02 02:07:50 +03:00
Rochet2
adccf1ef36 Update LuaFunctions.cpp 2015-04-30 11:48:31 +03:00
RStijn
e8b9ae9d4f Added support for GameObject::GetLootRecipient() 2015-04-07 11:06:20 +03:00
Rochet2
2d672d8828 Add methods to get exact coordinate distances 2015-03-06 17:18:38 +02:00
Asandru
5f6417663e New player method unbind all instances 2015-02-15 14:12:35 +02:00
Rochet2
166dacee83 Revert 340fe17f4f partially
The UpdateUInt32Value method is not identical to Set and Set screws up gossip on TC based
2015-02-15 13:52:15 +02:00
Salja
81b049cdcd use auctionHouseEntry for all auctions hooks add buyout, etime to AUCTION_EVENT_ON_ADD
Signed-off-by: Salja <salja8840@gmail.com>
2015-01-25 23:22:45 +01:00
Salja
ed0d7dd415 eluna OnLearnTalents hook and player:LearnTalent function
Signed-off-by: Salja <salja8840@gmail.com>
2015-01-20 17:17:02 +02:00