Page 1 of 1

[REQ] Spawn "size_offset"

Posted: Sun May 24, 2009 12:19 pm
by John Adams
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.

Re: [REQ] Spawn "size_offset"

Posted: Mon May 25, 2009 12:13 pm
by LethalEncounter
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.

Re: [REQ] Spawn "size_offset"

Posted: Mon May 25, 2009 12:28 pm
by John Adams
Ok, added a field `size_offset` to table `spawn` - tinyint(3).

The Minor version is: 19

Re: [REQ] Spawn "size_offset"

Posted: Tue Jun 02, 2009 6:56 am
by John Adams
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!

Re: [REQ] Spawn "size_offset"

Posted: Tue Jun 02, 2009 2:25 pm
by LethalEncounter
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.