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

DoPlayerInvisible

Shiatsu

New Member
Joined
Aug 13, 2009
Messages
20
Reaction score
0
I probably need a simple Lua functions that gives the player the "Invisible" for some time.

Let it looks like this:

DoPlayerInvisible(cid, time)
 
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_RED)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_INVISIBLE)


function doPlayerInvisible(cid, time)
setConditionParam(condition, CONDITION_PARAM_TICKS, time*1000)
setCombatCondition(combat, condition)
return doCombat(cid, combat, var)
end

i just copied invisible.lua it shouldn't works. Do it yourself.
 
Back
Top