EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Raids (https://www.eqemulator.org/forums/showthread.php?t=25959)

KLS 08-24-2008 06:50 AM

Can probably just export the IsGrouped() and IsRaidGrouped() functions to the perl interface so you'd be able to tell between the two with a simple if else check in code.

trevius 08-24-2008 08:32 AM

Ahh, gotcha! That should work :)

KLS 08-28-2008 03:39 AM

Have raids running on PEQ atm. Still pretty rough and needs a lot of work, I put in some very sloppy code at parts that needs to be fixed... im sure any professional coder would cringe at it. And some features are NYI, bugged and/or need optimization... but it's functional.

trevius 08-31-2008 05:45 PM

So, are raids in the 1128 code? I see that the SVN seems to be working again now. I am running the version that Derision released here:

http://www.eqemulator.net/forums/showthread.php?t=26049

which seems to be an even newer version than 1128 according to the change log that it includes (compared to the change log on the download page for 1128 ).

Running that version of code, I can't seem to get raids to work at all yet. Also, for some reason the empty corpse code doesn't seem to be working either. I see that the empty corpse code is definitely in that version of the source, but it isn't actually working. I set the rule to 2000 (ms) and it still makes empty corpses rott for 20 minutes. Maybe I just need to wait for the next SVN update and just use that. But, the code that should be in Derision's version has some nice additions to it that I would like to use without having to add them all in manually.

KLS 08-31-2008 06:03 PM

No they're not in official source yet.

Rocker8956 09-18-2008 12:46 PM

KLS,
Is this the database structure you plan on using for raids? (atleast for a while)
Code:

CREATE TABLE `raid_members` (
  `raidid` int(4) NOT NULL,
  `charid` int(4) NOT NULL,
  `groupid` int(4) NOT NULL,
  `_class` int(4) NOT NULL,
  `level` int(4) NOT NULL,
  `name` varchar(64) NOT NULL,
  `isgroupleader` tinyint(1) NOT NULL,
  `israidleader` tinyint(1) NOT NULL,
  `islooter` tinyint(1) NOT NULL, 
  PRIMARY KEY (`raidid`, `charid`)
)
ENGINE = InnoDB;

CREATE TABLE `raid_details` (
  `raidid` int(4) NOT NULL,
  `loottype` int(4) NOT NULL,
  `locked` tinyint(1) NOT NULL,   
  PRIMARY KEY (`raidid`)
)
ENGINE = InnoDB;

I am asking because I am getting ready to write the quest function for handing out instance flags to a raid. I will really only be using the raidid and charid field. I just want to be certain I write code that works with your implementation of raids.

Thank you

KLS 09-18-2008 04:53 PM

What is used at the moment. I'll actually get raids sourced in after I get some time and do some smaller stuff.

Code:

Required SQL:
CREATE TABLE `raid_members` (
  `raidid` int(4) NOT NULL,
  `charid` int(4) NOT NULL,
  `groupid` int(4) NOT NULL,
  `_class` int(4) NOT NULL,
  `level` int(4) NOT NULL,
  `name` varchar(64) NOT NULL,
  `isgroupleader` tinyint(1) NOT NULL,
  `israidleader` tinyint(1) NOT NULL,
  `islooter` tinyint(1) NOT NULL, 
  PRIMARY KEY (`charid`)
)
ENGINE = InnoDB;

CREATE TABLE `raid_details` (
  `raidid` int(4) NOT NULL,
  `loottype` int(4) NOT NULL,
  `locked` tinyint(1) NOT NULL,   
  PRIMARY KEY (`raidid`)
)
ENGINE = InnoDB;



All times are GMT -4. The time now is 10:26 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.