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

Lua Effect on outfit

Haaan

New Member
Joined
Oct 24, 2009
Messages
56
Reaction score
0
I want to add permanently some effect(like healing stars) for X looktype.

Is possible?
 
I don't think so without adding your own sprite.

I'm not sure, do you want it like all the time? Perhaps a spell which puts it there until you don't want it anymore, like utana vid.

I'm not sure.
 
I have my own sprites and i want to make kind of aura on dragon ball otserver's

photo:
x3.png


is good example my noobob script

say 'aura start'
if level = x
if vocation = x
then put effect and refreshing on player
bonus speed = 200
protection light = 20
protection dark = 20
protection fire = -20
add mana per sec = -5(taking away 5 mana per sec)

say 'aura stop'
then remove this effect and all bonuses
 

Attachments

Last edited:
i do this but how to make this effect refreshing on me??

- - - Updated - - -

edit

why this spell dont add me 1 mlvl?


Code:
local condition = createConditionObject(CONDITION_ATTRIBUTES)
local conditionHaste = createConditionObject(CONDITION_HASTE)

setConditionParam(condition, CONDITION_PARAM_TICKS,  2 * 60 * 1000)
setConditionParam(condition, CONDITION_PARAM_STAT_MAGICLEVEL, 1)
setConditionParam(conditionHaste, CONDITION_PARAM_TICKS, 2 * 60 * 1000)
setConditionFormula(conditionHaste, 1.4, -84, 1.4, -84)

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ENERGYAREA)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatCondition(combat, condition)
setCombatCondition(combat, conditionHaste)

function onCastSpell(cid, var)
	if(doCombat(cid, combat, var) == LUA_NO_ERROR) then
		return LUA_NO_ERROR
	end
	return LUA_ERROR
end
 
Back
Top