Okay, I've found a better way to do experiments. Spawn a goblin in arena mode, take control, observe speed, modify stats; return to arena to observe delay.
The first thing that I confirmed is that delay=10^4/advspeed.
The next thing was sort of a shock, and explains different experimental results.
Strength affects the speed of a naked goblin. Up to strength of 2781, I received speed bonuses for strength. No other stats (besides agility) affected speed. A naked goblin with a strength of 2781 and 1000 agility has advspeed 1692. A goblin with 1000 strength and 1000 agility has a speed of 932. A naked goblin with a strength of 1000 and a 2781 agility has advspeed 1692 as well.
Also, up to agility 2781, I received agility bonuses for speed. So it looks like a cap of 2781, with equal effects from strength and agility.
I tried making a naked goblin with grand master armor user @ 1000 str/agility. No effect on speed.
A goblin with str/ag of 1133-1134 has exactly 1000 advspeed.
I'll try and figure out a formula soon. Shouldn't be too hard. Just need to use it to verify with some other values.
EDIT: Okay. It's not based on agility or strength. It's based on the sum of strength and agility, capped to 3797. Weird, huh?
EDIT2: Lower cap too. Sum of agility or strength <204 becomes equal to 204.
EDIT3: Okay, here's what I got.
Step 1: If agility+strength<203 set sum=203; else if agility+strength>3797 set sum=3797;else sum=agility+strength
Step 2: Where y is sum, adventurer speed x is equal to:
Step 3: Round to the nearest integer.
This is not perfect, but it is very very close. An alternative would be to replace the constant "1.6813" with a value like "1.68119" and rather than rounding, just drop anything after the decimal. I doubt that either is a perfect representation, because those are not constants any sane programmer would choose, but they represent the range of values really well; if you build a tolerance of 1 into the sum, it should work for all possible values (not tested for all possible values, lol)
What do you think, dree? Does that count as solved?