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
Rochet2
32e7a5e065
Fix mangos and TC differences
2015-02-15 03:22:13 +02:00
Rochet2
721355b670
Eluna fix merge
2015-02-15 03:00:24 +02:00
Rochet2
6b5fed561c
Eluna fix problem with reloading timed events
2015-02-15 02:45:29 +02:00
Rochet2
4e787924e2
Change AH hooks to work with TC
2015-02-15 02:45:29 +02:00
Rochet2
1b9a2ae018
MangosTwo change fixes
2015-02-15 02:44:24 +02:00
Rochet2
849651d4c0
Change player access from sessions to players
2015-02-15 02:44:23 +02:00
Rochet2
bdba6bd9bd
Eluna fix cppcheck warnings and errors
2015-02-15 02:44:22 +02:00
Rochet2
e7019de059
Eluna fix problem with reloading timed events
2015-02-15 02:09:16 +02:00
Rochet2
6a731d24ea
Change AH hooks to work with TC
2015-02-15 02:09:15 +02:00
Foereaper
cd217f9490
Added MANGOS define
...
Since Mangos Two also has the new weather system, add definition. Entire block should be refactored as soon as possible.
2015-02-14 10:35:46 +01:00
Rochet2
0701980561
Eluna fix cppcheck warnings and errors
2015-02-13 21:29:02 +02:00
Salja
3ad7d9a767
Merge pull request #144 from ElunaLuaEngine/auctionshouse
...
Auctionshouse Hooks Updates
2015-01-28 10:46:36 +01:00
Salja
540c351460
add bid to AUCTION_EVENT_ON_ADD
...
Signed-off-by: Salja <salja8840@gmail.com >
2015-01-25 23:44:26 +01: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
734f720aca
add player and item to auctionshouse hooks, not sure is better move back to player events ?
...
Signed-off-by: Salja <salja8840@gmail.com >
2015-01-25 22:47:16 +01:00
Rochet2
e6e4ecdab1
Fix push and taxi crashes and add new taxi changes
2015-01-24 02:29:11 +02:00
Tommy
9fe397aaf5
Fix RemoveCorpse and RemoveCorpse return values
...
Small bracket clean up
2015-01-20 23:23:58 -05:00
Tommy
7b94cc4eed
Fix GetHonorStoredKills and NearTeleport return values
...
Corrected line indent
2015-01-20 23:17:27 -05:00
Rochet2
92a924e722
Fix tbc and classic
2015-01-20 18:50:04 +02:00
Rochet2
22e2195d00
Fix build
2015-01-20 18:36:35 +02:00
Rochet2
f2e71c181c
Merge pull request #142 from ElunaLuaEngine/learn_talents
...
Eluna OnLearnTalents hook and player:LearnTalent function
2015-01-20 17:18:01 +02: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
Rochet2
3f9251fef9
Merge pull request #137 from ElunaLuaEngine/reformat_reload
...
Add StackTracePlus, Rewrite not to recreate eluna on reload
2015-01-20 17:07:00 +02:00
Rochet2
3d645d8048
Add StackTracePlus, Rewrite not to recreate eluna on reload
2015-01-20 17:05:41 +02:00
Rochet2
e8d840ace9
Merge pull request #141 from ElunaLuaEngine/hook_boyscouting
...
Move hooks to separate files.
2015-01-20 16:37:04 +02:00
Patman64
58c1cf0ae2
Remove Hooks.cpp.
2015-01-19 00:39:56 -05:00
Patman64
d0efb8f94f
Fix Linux build.
2015-01-19 00:39:01 -05:00
Patman64
9575a970f3
Move hooks to separate files.
2015-01-19 00:32:52 -05:00
Patman64
18a165268e
Add include guards to ElunaIncludes.h.
2015-01-19 00:20:22 -05:00
Rochet2
044b014476
Fix GetStandState
...
Wrong return amount
2015-01-17 15:05:11 +02:00
Patman64
c486e02d10
Move ElunaCreatureAI into a separate file.
2015-01-16 17:11:27 -05:00
Patman64
5492a68e7b
Add GAMEOBJECT_EVENT_ON_USE.
2015-01-15 00:09:47 -05:00
Rochet2
54c82280cd
Merge pull request #139 from ElunaLuaEngine/weather_changes
...
Remove Weather functions and type, add Map:SetWeather
2015-01-12 19:25:23 +02:00
Patman64
dd39592ddd
Allow binding event handlers to individual Creatures.
...
Because GUIDs are, in fact, not globally unique on mangos, the actual
unique identifier is the GUID/instance ID pair of the Creature.
On Trinity Creatures in instances are assigned new GUIDs. This means that
the instance ID part is redundant but must be used anyway for consistency.
2015-01-11 18:48:38 -05:00
Rochet2
d42cb350fe
Remove Weather functions and type, add Map:SetWeather
...
Weather hook changes
2015-01-11 20:17:09 +02:00
Rochet2
882eb40acb
Add method GetItemByGUID
2015-01-09 23:13:31 +02:00
Rochet2
e1230126ab
Eluna fix Gossip hooks, possible crash, typo, lua open hook and make some base documentation about return value changes to source
2015-01-09 21:45:21 +02:00
Rochet2
cc71273277
Fix item use not working - Return value changed from false to true
2015-01-07 12:12:51 +02:00
Patman64
f38591565f
Move On_Reset calls in HookMgr.
...
On_Reset should be called whether or not the hooks that call it have
events.
2015-01-06 20:03:00 -05:00
Rochet2
0f24a77351
Merge pull request #136 from ElunaLuaEngine/hookmgr_cleanup
...
Hookmgr cleanup
Includes:
- Locking
- Removed macros
- Added more checking to calling hooks
- Replacing of an argument on hook call
2015-01-06 13:46:56 +02:00
Rochet2
5e7b0ee0f7
Fix TC build, analysis warnings and triggering addon message hooks
2015-01-06 12:43:53 +02:00
Patman64
6371728547
Return from hooks early if no bindings exist.
...
Also add locking to the bindings to allow for thread-safe checking if
bindings exist.
2015-01-05 23:48:18 -05:00
Patman64
15f161fa1e
Clean-up Eluna lock macro.
2015-01-05 22:52:46 -05:00
Patman64
e2f81b7336
Make the Eluna mutex static.
...
It was previously unsafe to reload Eluna because it had to be reloaded
with the mutex unlocked. This is because the mutex's lifespan was shorter
than the Eluna instance it was guarding.
2015-01-05 22:50:51 -05:00
Patman64
1678b3e40f
Invalidate ElunaObjects after hook calls.
2015-01-05 21:24:55 -05:00
Patman64
1194074fb2
Simplify ReplaceArgument.
2015-01-05 21:20:14 -05:00
Rochet2
0e7367e23d
Fix hookmgr rewrite
...
Fix:
- crash on reload
- crash on error in call
- a warning from type change
2015-01-05 16:38:19 +02:00
Patman64
2ff25ee205
Fix getting results from event handlers.
2015-01-04 22:31:51 -05:00
Patman64
4349a80d8e
Allow updating argument values between handler calls.
...
This allows handlers that return values to see the returned values of previous
handlers. E.g. if Handler A modifies the value from 10 to 20, Handler B
will receive 20 as an argument instead of the original 10.
2015-01-04 21:38:18 -05:00