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

invisibility condition effect

vyctor17

Member
Joined
Oct 17, 2010
Messages
79
Reaction score
13
how can I remove the magical effect of the condition of invisibility, and even keep the player with invisible normal outfit like a ghostmode without effects.

config.lua
"ghostModeInvisibleEffect = false"
 
I think that issues to do this is in the sources, but I will post my script.

local condition = createConditionObject(CONDITION_INVISIBLE)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)

function onSay(cid, words, param, channel)
if getPlayerStorageValue(cid, 37327) == 1 then
return doPlayerSendCancel(cid, "You can not squat on you runs.")
end

if getCreatureCondition(cid, CONDITION_INVISIBLE) or getPlayerStorageValue(cid, 37328) == 1 then
doRemoveCondition(cid, CONDITION_INVISIBLE)
doChangeSpeed(cid, (30/100*getCreatureBaseSpeed(cid)))
setPlayerStorageValue(cid, 37328, 0)
setPlayerStorageValue(cid, 66875, os.time())
doSendAnimatedText(getCreaturePosition(cid), "raising!!!", 180)
else
local time = 10
if (os.time()-getPlayerStorageValue(cid, 66875)+1) <= time then
local minutes, seconds = getTime(time-(os.time()-getPlayerStorageValue(cid, 66875)))
return doPlayerSendCancel(cid, "Wait ".. seconds .." secs to squat again.")
end
doAddCondition(cid, condition)
doChangeSpeed(cid, -(30/100*getCreatureBaseSpeed(cid)))
doSendAnimatedText(getCreaturePosition(cid), "crouch!!!", 180)
setPlayerStorageValue(cid, 37328, 1)
end
return true
end
 
CONDITION_INVISIBLE sets player's outfit ID to 0.
If that player have gamemaster flags then that player is invisible to everyone (without effect). And in the other way, if that player haven't GM flags, he is visible to anyother player as a blue stars effect.

You have to:
Make a group with specified flags, what makes normal players avaible to use ghost mode only.
Make a spell what changes players group and enabling ghostmode for them.

There is no other way to solve this. Except to source edit and/or sprite/data edit.

Google.com:
Code:
ghostmode spell inurl:otland.net
http://otland.net/threads/true-ghost-spell.137611/
 
CONDITION_INVISIBLE sets player's outfit ID to 0.
If that player have gamemaster flags then that player is invisible to everyone (without effect). And in the other way, if that player haven't GM flags, he is visible to anyother player as a blue stars effect.

You have to:
Make a group with specified flags, what makes normal players avaible to use ghost mode only.
Make a spell what changes players group and enabling ghostmode for them.

There is no other way to solve this. Except to source edit and/or sprite/data edit.

Google.com:
Code:
ghostmode spell inurl:otland.net
http://otland.net/threads/true-ghost-spell.137611/
I do not want to let the invisible player equal to the true ghost mode, I want to actually keep the player with the outfit but with the status of invisibility


SOLVED
 
Last edited:
Im actually looking for that to, I simply want the invisible spell to work as normal but without shimmer.

Kind Regards,
Eldin.
 
Back
Top