• Vote in May Mapping Competition to select a winner!
  • 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!

Spell for TFS 1.3

Salvus

Well-Known Member
Joined
Feb 7, 2019
Messages
93
Best answers
1
Reaction score
62
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

Excellent OT User
Joined
Oct 3, 2014
Messages
643
Best answers
20
Reaction score
602
Location
Poland
I did it! I made someone update! Yaaay, good job me!
 
OP
Salvus

Salvus

Well-Known Member
Joined
Feb 7, 2019
Messages
93
Best answers
1
Reaction score
62
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

Excellent OT User
Joined
Oct 3, 2014
Messages
643
Best answers
20
Reaction score
602
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

Well-Known Member
Joined
Feb 7, 2019
Messages
93
Best answers
1
Reaction score
62
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
 
OP
Salvus

Salvus

Well-Known Member
Joined
Feb 7, 2019
Messages
93
Best answers
1
Reaction score
62
@oen432 How can i add health to this?
 
Top