I haven't reviewed the code yet, and maybe I should first... but I am curious if the only thing standing between us and full spell/ability functionality is writing the scripts? Is all server engine work done to support all spells/abilities (aside from those maintained spells)?
And, do we need to create 1000 scripts, one for each "damage" spell out there? Or is the theory that we need but one spell script (Damage.lua) that gets params passed to it and that one single script handles all "damage" spells?
I haven't messed with this yet, but would like to get an editor together to make things easier. If it's just DB data, that's a snap.
Scripting question(s)
Moderator: Team Members
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
-
LethalEncounter
- Team: Zombie
- Posts: 2717
- Joined: Wed Jul 25, 2007 10:10 pm
Right now spells are handled via a code/lua script/database mesh. The spells that cannot currently be written are buffs, debuffs and those that summon a pet. All other spells should work unless I have forgotten a spell type. I originally had DOT and HOT code written and it might still work but I am unsure about those types. Some spells might require an additional LUA function to work, but otherwise all the code is in place for them.
Only 1 LUA script file is required for generic damage spells. It uses parameters passed in from the spell_data table.And, do we need to create 1000 scripts, one for each "damage" spell out there? Or is the theory that we need but one spell script (Damage.lua) that gets params passed to it and that one single script handles all "damage" spells?
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Right on! That's what I was hoping to hear. So if I have a table editor that allows you to insert params, they should magically (pun intended) work right now?LethalEncounter wrote:Only 1 LUA script file is required for generic damage spells. It uses parameters passed in from the spell_data table.
I think I've tried Lightning Bolt or something simple like that, but never made anything else. Somehow I feel there's more to it than simply inserting a row into a spells table (since there are 4 spells tables heh) but I get the idea. I'll see what I can come up with.
Has anyone else been working on spells, creating them in their databases? If so, I'd like to have a look at your data.
TIA,
-J
-
chrrox
- Content Designer
- Posts: 177
- Joined: Wed Oct 17, 2007 8:12 pm
here are some spells i played around with a little.
"i can include the sql code if need be just let me know."
http://www.sendspace.com/file/ta31hh
"i can include the sql code if need be just let me know."
http://www.sendspace.com/file/ta31hh
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Who is online
Users browsing this forum: No registered users and 0 guests
