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

' utamo vita' with effect until finishing the time.

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Somebody could create one ' spell' or one ' talkaction' that the player says ' utamo vita' he is with the brightness of its sides until finishing the time of ' spell'? ' spell' ' is equal; utamo vita' only dumb exactly the effect that wounds shining until finishing the time.

I forgive me, translating use…
 
Let me see if i get this clear:
1st utamo vita - active mana shield
2nd utamo vita - removes mana shield

and so on... ? Its probaly possible, but you need to say diffrent words i tihkn :p

What we got energy ring for? :/
 
Somebody could create one ' spell' or one ' talkaction' that the player says ' utamo vita' he is with the brightness of its sides until finishing the time of ' spell'? ' spell' ' is equal; utamo vita' only dumb exactly the effect that wounds shining until finishing the time.

I forgive me, translating use…

You want that, if the player uses utamo vita it will set hes light level (let's say he will shine in blue) + the utamo vita effect (mana shield) ?
 
Code:
doSetCreatureLight(cid, lightLevel, lightColor, time)

add that, fitting the lightLevel, lightColor and time(same as spell time) and add it in your data/spells/support(?)/magic/manashield.lua in the function called onCastSpell, there where it says doCombat or something similiar :P

@... :
Code:
function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
   --here :p
end
take a look at "TICKS" in that file, to see whats the spells time.
 
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_MANASHIELD)
setConditionParam(condition, CONDITION_PARAM_TICKS, [b]200000[/b])
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
        doSetCreatureLight(cid, [b]lightLevel[/b], [b]lightColor[/b], [b]200000[/b])
	return doCombat(cid, combat, var)
end
 
Back
Top