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

Convert spells from 0.4 to 1.2

BugaS

Donżuan
Joined
Mar 12, 2009
Messages
1,219
Reaction score
9
Location
NYC
Hi guys!

I just want to know, that is it hard to convert spells from tfs 0.4 to 1.2 for the newbie?
 
it isn't once you learn how the scripting works for 1.2
using objects instead of numbers all the time

something like createCombatObject() would be Combat() instead
local combat = Combat()

then setting parameter:
combat:setParameter(parameter, value)
etc
these are the combat functions
Lua:
    Combat()  
    combat:execute(creature, variant)
    combat:setArea(area)
    combat:setCallback(key, function)
    combat:setCondition(condition)
    combat:setFormula(type, mina, minb, maxa, maxb)
    combat:setOrigin(origin)
    combat:setParameter(key, value)
you may also need conditions
Lua:
    Condition(conditionType[, conditionId = CONDITIONID_COMBAT])  
    condition:addDamage(rounds, time, value)
    condition:clone()
    condition:delete()
    condition:getEndTime()
    condition:getIcons()
    condition:getId()
    condition:getSubId()
    condition:getTicks()
    condition:getType()
    condition:setFormula(mina, minb, maxa, maxb)
    condition:setOutfit(lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet[, lookAddons[, lookMount]])
    condition:setOutfit(outfit)
    condition:setParameter(key, value)
    condition:setTicks(ticks)
 
Back
Top