Log in

View Full Version : perl $npc->GetRunspeed() is returning 40x the value


Athrogate
07-19-2015, 12:11 AM
Currently using the Perl interface to get the runspeed from the database its returning a value 40x more than what is set in the database.

NPC runspeed is 0.3 in the database

$npc->GetRunSpeed() in a quest file returns 12.

Set another npc to 1.0 in the database

$npc->GetRunSpeed() returned 40.

Thanks,
-Athrogate

ghanja
07-19-2015, 03:09 PM
$mob->GetRunSpeed() returns the modified speed (buffs, etc.), by a quick look of things anyway. Been awhile since I've dabbled with it (when making a Perl AI), like 2011/2012.