Hello!
I've tried to add attackspeed to item attributes.
I'm using this release: [8.6] [TFS1.3] Global + Source + Web + tools + Quest Reward System (https://otland.net/threads/8-6-tfs1-3-global-source-web-tools-quest-reward-system.271659/)
I recompiled successfully and added everything here TFS 1.X+ - [C++] item attack speed (attr key not recognized) (https://otland.net/threads/c-item-attack-speed-attr-key-not-recognized.262272/)
Tried adding attackSpeed attribute to items.xml but actual attackspeed doesn't change, item shows AtkSpd +500 but doesn't hit twice every second.
This error comes when I try to attack a creature
This error comes when I try to use item to add item attributes to it
Thanks in advance!
Should I even try to continue fixing this or should I remove this and implement another system like this.
I've tried to add attackspeed to item attributes.
I'm using this release: [8.6] [TFS1.3] Global + Source + Web + tools + Quest Reward System (https://otland.net/threads/8-6-tfs1-3-global-source-web-tools-quest-reward-system.271659/)
I recompiled successfully and added everything here TFS 1.X+ - [C++] item attack speed (attr key not recognized) (https://otland.net/threads/c-item-attack-speed-attr-key-not-recognized.262272/)
Tried adding attackSpeed attribute to items.xml but actual attackspeed doesn't change, item shows AtkSpd +500 but doesn't hit twice every second.
This error comes when I try to attack a creature
Code:
Lua Script Error: [CreatureScript Interface]
data/creaturescripts/scripts/others/stats.lua:onHealthChange
data/stats.lua:720: attempt to call method 'getAttackSpeed' (a nil value)
stack traceback:
[C]: in function 'getAttackSpeed'
data/stats.lua:720: in function 'getItemAttribute'
data/stats.lua:2442: in function 'getLevel'
data/stats.lua:29: in function 'getStatReqLevel'
data/stats.lua:1424: in function <data/stats.lua:1408>
This error comes when I try to use item to add item attributes to it
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/other/other/slot.lua:onUse
data/stats.lua:720: attempt to call method 'getAttackSpeed' (a nil value)
stack traceback:
[C]: in function 'getAttackSpeed'
data/stats.lua:720: in function 'getItemAttribute'
data/stats.lua:1089: in function 'addStat'
data/stats.lua:2532: in function 'generateTier'
data/stats.lua:2578: in function 'generateLooted'
data/stats.lua:2638: in function 'generateStats'
data/stats.lua:1369: in function <data/stats.lua:1127>
Thanks in advance!
Post automatically merged:
Should I even try to continue fixing this or should I remove this and implement another system like this.
Attachments
-
stats.lua86.7 KB · Views: 9 · VirusTotal
Last edited: