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

Solved COMBAT_PARAM_EFFECT, 53 -- - list of effect --

tuduras

Well-Known Member
Joined
Jun 4, 2017
Messages
351
Solutions
2
Reaction score
59
Hello ; )

I lost thread on forum. Is somewhere list of COMBAT_PARAM_EFFECT to spell to tfs 1.5 . I convered spell from 0.4 to tfs 1.5 and looks like different. I care about
LUA:
setCombatParam(combat1, COMBAT_PARAM_EFFECT, 255)
setCombatParam(combat1, COMBAT_PARAM_DISTANCEEFFECT, 34)
it should has (COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SHIVERARROW)
best Regards


PS: I will test all effect. I found this command for GOD . /x 1 or /x 2 etc.


PS2: solved this effect = 35
 
Last edited:
Yeah, the syntax changed from 0.x to 1.x. It's pretty straightforward once you get it.

In 0.x you had:
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, 255)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 34)
In 1.x it becomes:
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, 255)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, 34)
Like you mentioned, check data/lib/compat/compat.lua - that file has all the mappings and constants defined. It's really helpful when converting old spells.


About the effect IDs - they depend on your client version. If you're using 8.60, the compat.lua from nekiro's downgrade already has everything set up. You can use the numeric IDs directly (like 255, 34) or use the constant names (CONST_ME_, CONST_ANI_) which is better for readability.

Hope this helps!
 
Thanks

Mateus Robeerto for reply.​


it was enough to use command for GOD ---> /x 1 or higher number to find the effect you need
Remember that TFS 1.5 (Nekiro) has a magic effect standard that can reach up to 255 maximum because of uint8. If you want to go up to 65k you would need to change uint8 to uint16 in the source code.

And in the script there's a limit - you can ask the AI to break this limit and be able to go beyond 256+.
 
Back
Top