Closed xmish closed 3 months ago
no
1.7 (Master)
Windows
10.0.19045.4529
Setting "speed" attribute to NPC in XML has no effect in game
Code to reproduce the issue:
<?xml version="1.0" encoding="UTF-8"?> <npc name="Riona" script="default.lua" walkinterval="2000" floorchange="0" speed="20"> <health now="100" max="100" /> <look type="138" head="57" body="59" legs="40" feet="76" addons="0" /> <parameters> <parameter key="module_shop" value="1" /> <parameter key="shop_buyable" value="backpack,1988,20;pick,2553,10;shovel,2554,20;rope,2120,50" /> </parameters> </npc>
Even though NpcType' baseSpeed is loaded from XML it has no effect on getSpeed()/getBaseSpeed()/getStepSpeed()
getSpeed()/getBaseSpeed()/getStepSpeed()
speed attribute is respected
No response
Name hiding: https://github.com/otland/forgottenserver/blame/a2b24a4cf53204832efb5d74deb214482a96986c/src/npc.h#L262
By submitting this bug issue, you agree to the following.
Does this bug crash tfs?
no
Server Version
1.7 (Master)
Operation System
Windows
OS Description
10.0.19045.4529
Bug description
Setting "speed" attribute to NPC in XML has no effect in game
Possible Pull Requests which are to blame
Steps to reproduce
Code to reproduce the issue:
Actual Behavior
Even though NpcType' baseSpeed is loaded from XML it has no effect on
getSpeed()/getBaseSpeed()/getStepSpeed()
Expected Behavior
speed attribute is respected
Backtrace
No response