Spell for TFS 1.3

Salvus

Member
Joined
Feb 7, 2019
Messages
77
Best answers
1
Reaction score
44
How can i make this work on TFS 1.3?

Trying to change my server from 0.4 to tfs 1.3 because of @oen432 scripts. xD

I need this spell to work on TFS 1.3

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
 
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_SUBID, 4)
setConditionParam(condition, CONDITION_PARAM_BUFF, true)
setConditionParam(condition, CONDITION_PARAM_STAT_MAXMANAPERCENT, 123)
setConditionParam(condition, CONDITION_PARAM_TICKS, 5 * 60 * 1000)
 
function onCastSpell(cid, var)
    return doCombat(cid, combat, var)
end
 

oen432

Intermediate OT User
Joined
Oct 3, 2014
Messages
393
Best answers
7
Reaction score
361
Location
Poland
I did it! I made someone update! Yaaay, good job me!
 
OP
Salvus

Salvus

Member
Joined
Feb 7, 2019
Messages
77
Best answers
1
Reaction score
44
I did it! I made someone update! Yaaay, good job me!
I don't think I'm the only one who's changed TFS to 1.3 because of your scripts.
Thanks for all good scripts and sources. BIG LOVE
 

oen432

Intermediate OT User
Joined
Oct 3, 2014
Messages
393
Best answers
7
Reaction score
361
Location
Poland
Btw, here is your TFS 1.3 spell.
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_SUBID, 4)
condition:setParameter(CONDITION_PARAM_BUFF, true)
condition:setParameter(CONDITION_PARAM_STAT_MAXMANAPERCENT, 123)
condition:setParameter(CONDITION_PARAM_TICKS, 5 * 60 * 1000)
combat:addCondition(condition)

function onCastSpell(creature, variant)
    return combat:execute(creature, variant)
end
 
OP
Salvus

Salvus

Member
Joined
Feb 7, 2019
Messages
77
Best answers
1
Reaction score
44
Btw, here is your TFS 1.3 spell.
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)

local condition = Condition(CONDITION_ATTRIBUTES)
condition:setParameter(CONDITION_PARAM_SUBID, 4)
condition:setParameter(CONDITION_PARAM_BUFF, true)
condition:setParameter(CONDITION_PARAM_STAT_MAXMANAPERCENT, 123)
condition:setParameter(CONDITION_PARAM_TICKS, 5 * 60 * 1000)
combat:addCondition(condition)

function onCastSpell(creature, variant)
    return combat:execute(creature, variant)
end
I don't get 123% more mana with this spell, :S
 
Top