[REQ] Spawn "size_offset"

Old feature requests stored here for reference.
Locked
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:

[REQ] Spawn "size_offset"

Post by John Adams » Sun May 24, 2009 12:19 pm

LE, in going through a lot of the data lately, I am noticing that many spawns have the exact same appearances _except_ for size. Do you (or anyone) know if SOE may use some sort of size_offset, so when a spawn pops in, it's size could be between say, 35 and 39? The example I use in our data are the spawns "dark horror".

I understand these are "event" spawns, but it got me thinking... if we wanted to use a single spawn ID, but have the spawns appear slightly different each time, we could set a size_offset of like 5, and the spawn will pop either -5 or +5 than the configured "size" field.

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

Re: [REQ] Spawn "size_offset"

Post by LethalEncounter » Mon May 25, 2009 12:13 pm

Yah we could do that. Add it to the spawns table whenever you are ready and just let me know so I'll add the code support.

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:

Re: [REQ] Spawn "size_offset"

Post by John Adams » Mon May 25, 2009 12:28 pm

Ok, added a field `size_offset` to table `spawn` - tinyint(3).

The Minor version is: 19

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:

Re: [REQ] Spawn "size_offset"

Post by John Adams » Tue Jun 02, 2009 6:56 am

This is implemented and working. The only question I had about functionality is, if I have an NPC who has a size ranging from 35 to 39... would I set the `size` value to 37, and the `size_offset` to 2, so it would add/subtract 2 from 37 to get me my 35-39?

Is that how offsets work?

Thanks!

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

Re: [REQ] Spawn "size_offset"

Post by LethalEncounter » Tue Jun 02, 2009 2:25 pm

John Adams wrote:This is implemented and working. The only question I had about functionality is, if I have an NPC who has a size ranging from 35 to 39... would I set the `size` value to 37, and the `size_offset` to 2, so it would add/subtract 2 from 37 to get me my 35-39?

Is that how offsets work?

Thanks!
Yup, that is correct. A size of 37 and an offset of 2 would give you the range of 35-39.

Locked

Who is online

Users browsing this forum: No registered users and 0 guests