Scripting question(s)

EQ2Emulator Development forum.

Moderator: Team Members

Post Reply
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Scripting question(s)

Post by John Adams » Wed Jun 25, 2008 11:36 am

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.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Wed Jun 25, 2008 2: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.
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.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Wed Jun 25, 2008 3:10 pm

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

User avatar
Zcoretri
Team Member
Posts: 1642
Joined: Fri Jul 27, 2007 12:55 pm
Location: SoCal

Post by Zcoretri » Thu Jun 26, 2008 12:27 am

Yes I have working damage spells :)
They even hit with the damage range...nice work LE :)
Image

chrrox
Content Designer
Posts: 177
Joined: Wed Oct 17, 2007 8:12 pm

Post by chrrox » Thu Jun 26, 2008 3:09 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

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Fri Aug 01, 2008 10:19 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests