Dran Ryszard
Active Member
Hio, i added sarah upgrade system, and i have two problems.
First, when i use upgrade item only few bonues work, i mean only attack, def, armor and wand dmg.. When i tried add any other like hp bonus or something, i was saw in console this:
and second problem, is a problem with wand DMG bonus, couse when i add a onManaChange, now when player with utamovita is get DMG + bonus, so its good, but when player not have mana shield, then he lost 200-300 hp only, when with magic shield he lost 1k (1k it normal).
oh and i use a TFS 1.5 with modal windows - that sources - [8.6] TFS 1.5 Baiak, Mount and Modal widow. (https://otland.net/threads/8-6-tfs-1-5-baiak-mount-and-modal-widow.288104/)
First, when i use upgrade item only few bonues work, i mean only attack, def, armor and wand dmg.. When i tried add any other like hp bonus or something, i was saw in console this:
Code:
Lua Script Error: [Scripts Interface]
C:\Users\knowa\Desktop\otsssssss\data\scripts\upgrading_system.lua:callback
...ktop\otsssssss\data\scripts\upgrading_system.lua:451: attempt to perform arithmetic on local 'upgradeValue' (a nil value)
stack traceback:
[C]: in function '__mul'
...ktop\otsssssss\data\scripts\upgrading_system.lua:451: in function 'setAttribute'
...ktop\otsssssss\data\scripts\upgrading_system.lua:473: in function 'doUpgradeItem'
...ktop\otsssssss\data\scripts\upgrading_system.lua:630: in function <...ktop\otsssssss\data\scripts\upgrading_system.lua:570>
and second problem, is a problem with wand DMG bonus, couse when i add a onManaChange, now when player with utamovita is get DMG + bonus, so its good, but when player not have mana shield, then he lost 200-300 hp only, when with magic shield he lost 1k (1k it normal).
oh and i use a TFS 1.5 with modal windows - that sources - [8.6] TFS 1.5 Baiak, Mount and Modal widow. (https://otland.net/threads/8-6-tfs-1-5-baiak-mount-and-modal-widow.288104/)
Attachments
-
upgrading_system.lua24.2 KB · Views: 1 · VirusTotal