• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

sarah upgrade system problem

Dran Ryszard

Active Member
Joined
Apr 25, 2023
Messages
136
Reaction score
30
Location
Poland
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:
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

Back
Top