Page 1 of 1
Scripting question(s)
Posted: Wed Jun 25, 2008 11:36 am
by John Adams
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.
Posted: Wed Jun 25, 2008 2:10 pm
by LethalEncounter
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.
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?
Only 1 LUA script file is required for generic damage spells. It uses parameters passed in from the spell_data table.
Posted: Wed Jun 25, 2008 3:10 pm
by John Adams
LethalEncounter wrote:Only 1 LUA script file is required for generic damage spells. It uses parameters passed in from the spell_data table.
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?
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
Posted: Thu Jun 26, 2008 12:27 am
by Zcoretri
Yes I have working damage spells

They even hit with the damage range...nice work LE

Posted: Thu Jun 26, 2008 3:09 pm
by chrrox
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
Posted: Fri Aug 01, 2008 10:19 am
by John Adams
Chrrox,
Can you put your spells work on the DB SVN, along with your SQL files? I do not want to duplicate work if you or someone else has already done spell configs.
Thanks,
-J