• 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!

Really weird problem with spr/dat and effects/missiles

sevengym

Member
Joined
Aug 27, 2014
Messages
100
Reaction score
9
Location
Poland
All my spells on server are bricked because of one thing. I'm not sure how to explain it.

setCombatParam(combat, COMBAT_PARAM_EFFECT, 4) <----- I want a spell to show Effect NR.4 but in game on server it shows number 5. Its same for all effects/missiles. Allways +1 from what i want. like the order got f***d or something.

In went into Object Builder and I saw that effect number 4 is what I want but it shows 5. Then I want effect number 6 and it shows 7 in game etc....

How do I fix it? Please help ive been trying for hours
 
setCombatParam(combat, COMBAT_PARAM_EFFECT, 4) <----- I want a spell to show Effect NR.4 but in game on server it shows number 5. Its same for all effects/missiles. Allways +1 from what i want. like the order got f***d or something.

In went into Object Builder and I saw that effect number 4 is what I want but it shows 5. Then I want effect number 6 and it shows 7 in game etc....

How do I fix it? Please help ive been trying for hours
Apparently, your Object Builder numbers those effects from 1, while the server numbers them from 0. You want to use the fourth effect which in Object Builder is labeled as nr 4 (after 1, 2, 3) but on the server's side nr 4 stands for the fifth effect (after 0, 1, 2, 3).
You don't need to fix it, just take that into account. But if you want to make it consistent, you'd need to change the way OB labels the effects (you could do that for the server instead, but then you're going to mess up all the scripts etc.).
 
Solution is what kay said above ^ "You don't need to fix it, just take that into account" that thing was completly normal, i was just not aware of how it works and was adding spells the other way and that caused problems. The guy explained it perfectly and now I know how to manage spells with Object Builder and in server.
 
Back
Top