Optional SQL for adjusting mob speeds.

The base runspeeds for mobs were about 80% high.  This scales them to values appropriate for new speed calculations.
The RescaleRunspeeds regroups speeds into common seen speed bins.  Higher speeds it lowers them by 20%.  This should only be run once against a db.
The Set specific speeds is tailored to specific mob run speeds, based on data taken from eqlive.
This commit is contained in:
ngdeao 2015-06-28 00:58:03 -06:00
parent b11fea91a6
commit 74aec82d2a
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,7 @@
/* This rescales the old peq runspeeds which were about 80 percent too high to new values */
/* This section should only ever be run once */
UPDATE npc_types SET npc_types.runspeed = 1.050 WHERE (npc_types.runspeed > 0 and npc_types.runspeed < 1.2);
UPDATE npc_types SET npc_types.runspeed = 1.325 WHERE (npc_types.runspeed > 1.19 and npc_types.runspeed < 1.75 and race != 73 and race != 72);
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE (npc_types.runspeed > 1.69 and npc_types.runspeed < 2.2);
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE (npc_types.runspeed > 2.19 and npc_types.runspeed < 3);
UPDATE npc_types SET npc_types.runspeed = (npc_types.runspeed * 0.8) WHERE (npc_types.runspeed > 2.99 and npc_types.runspeed < 20);

View File

@ -0,0 +1,61 @@
/* some specific by name */
UPDATE npc_types SET npc_types.runspeed = 3.175 WHERE npc_types.name = 'a_shadowed_man';
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE npc_types.name = 'aviak_egret';
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE npc_types.name = 'froglok_hunter';
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE npc_types.name = 'froglok_forager';
/* rhinos */
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE npc_types.race = 135;
/* centaurs */
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE npc_types.race = 16;
/* griffins */
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE npc_types.race = 47;
/* wolves - use size, to not change cubs*/
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE (npc_types.race = 42 and npc_types.size > 5);
/* sarnaks */
UPDATE npc_types SET npc_types.runspeed = 1.325 WHERE npc_types.race = 131;
/* sabertooth tigers - use size, to not change cubs*/
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE (npc_types.race = 119 and npc_types.size > 6);
/* lions */
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE (npc_types.race = 50 and npc_types.size > 7);
/* panthers/pumas */
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE npc_types.race = 76;
/* beetles */
UPDATE npc_types SET npc_types.runspeed = 1.05 WHERE npc_types.race = 22;
/*leeches*/
UPDATE npc_types SET npc_types.runspeed = 1.05 WHERE npc_types.race = 104;
/*a_brontotherium*/
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE npc_types.race = 169;
/* raptors */
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE npc_types.race = 163;
/* vicious plants */
UPDATE npc_types SET npc_types.runspeed = 1.575 WHERE npc_types.race = 162;
/* western wastes, drakes, cragwyrms and wyvern */
UPDATE npc_types
JOIN spawnentry ON npc_types.id = spawnentry.npcID
JOIN spawn2 ON spawn2.spawngroupID = spawnentry.spawngroupID
SET npc_types.runspeed = 1.575
WHERE ((npc_types.race = 89 OR npc_types.race = 157 OR npc_types.race = 158) AND spawn2.zone = 'westwastes');
/* velium hounds/wolves */
UPDATE npc_types
JOIN spawnentry ON npc_types.id = spawnentry.npcID
JOIN spawn2 ON spawn2.spawngroupID = spawnentry.spawngroupID
SET npc_types.runspeed = 1.850
WHERE (npc_types.race = 42 AND spawn2.zone = 'westwastes');
/* Overthere Specials, goons, etc. */
UPDATE npc_types
JOIN spawnentry ON npc_types.id = spawnentry.npcID
JOIN spawn2 ON spawn2.spawngroupID = spawnentry.spawngroupID
SET npc_types.runspeed = 1.850
WHERE ((npc_types.race = 77 or npc_types.race = 147) AND spawn2.zone = 'overthere');
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE npc_types.name = 'Captain_Rottgrime';
UPDATE npc_types SET npc_types.runspeed = 1.850 WHERE npc_types.name = 'an_undead_marine';
/* Pet Speeds. */
UPDATE npc_types
JOIN pets ON npc_types.id = pets.npcID
SET npc_types.runspeed = 1.575;
/* raptors in tim are slower than other raptors in kunark */
UPDATE npc_types
JOIN spawnentry ON npc_types.id = spawnentry.npcID
JOIN spawn2 ON spawn2.spawngroupID = spawnentry.spawngroupID
SET npc_types.runspeed = 1.325
WHERE ( npc_types.race = 163 AND spawn2.zone = 'timorous' );