natanal99
New Member
- Joined
- May 31, 2011
- Messages
- 67
- Reaction score
- 3
i wrote this spell:
And i though i would make me invisible for other players but it's not doing.
I think it's impossible without source edit in TFS 0.3.6
Can anyone help me?
Code:
function dismiss(cid)
if (getPlayerStorageValue(cid, 27012) > 0) then
doCreatureExecuteTalkAction(cid, "/ghost", true)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_RED)
local pOut = getCreatureOutfit(cid)
doCreatureChangeOutfit(cid, {lookTypeEx=pOut.lookTypeEx, lookType=getPlayerStorageValue(cid, 27012), lookHead=pOut.lookHead, lookBody=pOut.lookBody, lookLegs=pOut.lookLegs, lookFeet=pOut.lookFeet})
setPlayerStorageValue(cid, 27012, 0)
end
end
function onCastSpell(cid, var)
if exhaustion.check(cid, 27002) == FALSE then
if (getPlayerStorageValue(cid, 27012) > 0) then
doPlayerSendCancel(cid, "Voce ja esta invisivel")
return false
end
doCreatureExecuteTalkAction(cid, "/ghost", true)
setPlayerStorageValue(cid, 27012, getCreatureOutfit(cid).lookType)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
exhaustion.set(cid, 27002, 8)
local pOut = getCreatureOutfit(cid)
doCreatureChangeOutfit(cid, {lookTypeEx=pOut.lookTypeEx, lookType=48, lookHead=pOut.lookHead, lookBody=pOut.lookBody, lookLegs=pOut.lookLegs, lookFeet=pOut.lookFeet})
addEvent(dismiss, 7500, cid)
else
doPlayerSendCancel(cid, "Cooldown[" ..exhaustion.get(cid, 27002).."]")
end
return true
end
And i though i would make me invisible for other players but it's not doing.
I think it's impossible without source edit in TFS 0.3.6
Can anyone help me?