KimLS
6d59baffaf
Basic mod setup only supports combat hooks for now I'll add a few more before i push this
2017-04-26 22:56:18 -07:00
KimLS
78a73cab85
Work on lua parser
2017-04-23 21:58:56 -07:00
KimLS
3b62cf9fd5
Some work
2017-04-22 16:40:01 -07:00
Michael Cook (mackal)
9510e8fbe1
This should resolve leaks and shutdown lua issues
2017-03-18 16:59:46 -04:00
Michael Cook (mackal)
f64e1644b1
Take 2 at fixing encounters
2017-03-18 14:11:30 -04:00
Uleat
8b5dd58e96
Renamed struct EQEmu::ItemBase to EQEmu::ItemData and class ItemInst to EQEmu::ItemInstance
2016-10-16 05:10:54 -04:00
Michael Cook (mackal)
2b2ebc75b0
Add luarocks support
...
This allows one to use the lua_modules folder as their luarocks tree
ex (from the server folder with lua_modules using default location)
luarocks --tree=lua_modules install luasql-mysql MYSQL_INCDIR=/usr/include
This will install the luasql mysql module so you can now do queries from lua
2016-06-11 15:59:46 -04:00
Michael Cook (mackal)
83bb10b32b
Add support for sub folder style lua modules
...
Ex. lua_modules/?/init.lua will work (which some lua modules do use)
2016-06-11 13:23:52 -04:00
phredi
b997a040d7
Config File Update Initial Update
2016-05-20 21:03:34 -05:00
Akkadius
8425607460
Implemented standardized zone controller scripts (Rule Zone, UseZoneController) Defaulted to true
...
- When a zone boots, it will spawn an invisible npc by the name of zone_controller
- Lua and Perl scripts can be represented with this npc as zone_controller.pl/lua
- This NPC's ID is ruled be define ZONE_CONTROLLER_NPC_ID 10
- Two EVENT's uniquely are handled with this NPC/controller (They only work with the zone_controller NPC)
- EVENT_SPAWN_ZONE :: All NPC spawns in the zone trigger the controller and pass the following variables:
$spawned_entity_id
$spawned_npc_id
- EVENT_DEATH_ZONE :: All NPC deaths in the zone trigger the controller event and pass the following variables:
$killer_id
$killer_damage
$killer_spell
$killer_skill
$killed_npc_id
2015-12-29 04:08:10 -06:00
Michael Cook (mackal)
fe0758c984
Add EVENT_TICK for NPCs
...
This event fires at the start of the tick processing so we can
script on the actual tick.
2015-08-13 22:30:49 -04:00
Russell Kinasz
0b17dc73f1
Update to encounter timers so they can actually work from hooked events
2015-06-05 12:23:42 -07:00
Russell Kinasz
c351a9b54f
Removed unnecessary commented code.
2015-06-02 15:27:57 -07:00
Russell Kinasz
6ff06ded43
Fix for extra_pointers in Encounter methods
2015-06-02 15:21:27 -07:00
Russell Kinasz
2c6fd44811
Implemented encounter timers - no spawn required
2015-06-02 12:25:09 -07:00
Michael Cook (mackal)
cced57f56a
Fix lua events
2015-02-01 15:11:27 -05:00
Akkadius
39a47ceb93
Implemented LUA counterpart of EVENT_ENVIRONMENTAL_DAMAGE
2015-01-30 23:15:48 -06:00
Michael Cook (mackal)
f4224b296a
We don't need to cast these anymore
2015-01-18 18:29:37 -05:00
Uleat
34ab3e10f5
Added some nullptr checks for ItemInst* in a few places (tradeskills.cpp - particularly augments - needs a better review)
2014-12-23 10:14:45 -05:00
KimLS
1ca397f426
Lua parser: script_init.lua for zones will now follow script_init_v[0-9]+\.lua similar to player quests.
2014-11-22 03:20:39 -08:00
KimLS
957f05860b
Small changes to encounter stuff
2014-11-04 21:01:20 -08:00
KimLS
1619324d06
Small bug fixes with encounters, also added eq.load_encounter_with_data(encounter_name, data_string) and unload as well. Allows you to send a message via the encounter system load
2014-10-31 22:09:09 -07:00
KimLS
6597967acd
Changed void* to EQEmu::Any in quest interface. Been meaning to change from void* for a while to a structure that data hides instead.
2014-08-25 22:59:52 -07:00
KimLS
a6589e283b
Some potential fixes for clang, not complete
2014-06-23 16:56:37 -07:00
KimLS
d472c05f5d
Lua packet handler dispatch
2013-07-13 13:53:41 -07:00
KimLS
bdc83f4f37
Basic lua packet api, and it works too. Exciting I must say.
2013-07-12 22:21:43 -07:00
KimLS
2f335372a0
Few warning and lua fixes, fix for summon not working on new system. Need to look at enrage as it doesn't appear to work right either and think it's timing related
2013-07-07 15:22:20 -07:00
KimLS
2c68e813e9
More selective filtering of lua libs, seed random set for lua interpreter, Release Canidate
2013-06-29 01:43:56 -07:00
KimLS
f46f7bd528
event_death_complete
2013-06-27 15:07:28 -07:00
KimLS
9e1115f899
Merge master, pretty close to RC atm
2013-06-26 12:52:00 -07:00
KimLS
16d3825df4
Fixed translocate, dispatch event now returns values properly, embparser now stores errors (what few it has)
2013-06-26 09:26:19 -07:00
KimLS
602b17f0e8
Fix for msvc compile, lua_bit.cpp wont try to compile if lua isn't set to build
2013-06-26 08:05:36 -07:00
KimLS
1480b8911f
Sorta hacky work around for doing nukeitem in item quests. Added lua bitop library. Made excluding io/os optional
2013-06-25 14:51:06 -07:00
KimLS
ffe6494147
Forgot a semicolon in an important spot.
2013-06-24 13:00:50 -07:00
KimLS
342a4c1b17
Fix for clickies not working, changed order of dispatch events to allow nuking items from regular item events. Changed the lua modules path.
2013-06-24 12:42:42 -07:00
KimLS
b904689a98
Added Spawn object to lua and functions to manipulate them
2013-06-23 14:48:36 -07:00
KimLS
0dc66b3dd7
Added quest areas (only accessable in lua) which work similar to proximities except are not attached to any one npc. Also fixed up the proximity code a bit to comply and got rid of my stupid ass fix for the deleting lists thing
2013-06-22 20:47:11 -07:00
KimLS
bb1282de30
encounter events can now watch all events by all npcs/items/quests by registering themselves to watch -1, fix #74
2013-06-22 14:23:07 -07:00
KimLS
2529a7700e
Fix for luabind not compiling (jumbers), bunch of api upgrades for lua, changed where spells and items load quests from, removed some old code. etc etc.
2013-06-22 01:32:41 -07:00
KimLS
7af04798fb
Augment item events
2013-06-21 14:20:30 -07:00
KimLS
7b894a7c61
Added direct inventory access, and event_loot for items and event_weapon_proc for items
2013-06-20 14:03:22 -07:00
KimLS
d8a1d84a49
Regression fixes, support for new lua arguments for many events
2013-06-19 22:56:46 -07:00
KimLS
c0d37b2e04
Many fixes to regressions in perl and cleaning up the final interface
2013-06-12 15:04:26 -07:00
KimLS
56b41c882b
Redoing event item api
2013-06-07 02:26:17 -07:00
KimLS
8c3cce822a
Added three new events
2013-06-06 14:29:45 -07:00
KimLS
a3738dc131
Changed EVENT_TRADE to pass iteminst instead of variable ids, perl will not have changed at all but lua now passes the iteminsts in the trade object. Also redid a bunch of the spell quest stuff
2013-06-05 16:47:49 -07:00
KimLS
6d0c0aee7d
Last work to make lua parser feature complete, time to start fixing bugs and cleaning up design and maybe adding some features here and there.
2013-06-04 23:22:03 -07:00
KimLS
1b290b577d
Fix for potential nullptr when using base lua class constructors in debug mode, also added eq.get_qglobals and removed automatic export of them (will do this for a lot of other automatic exports)
2013-06-04 16:48:32 -07:00
KimLS
85c7e1b059
Player event export plus lua_object api
2013-06-03 16:49:47 -07:00
KimLS
55a964267e
Raid/Group lua stuff, renamed corpses
2013-06-02 13:47:52 -07:00