Hey, I have a ghost script here
It works very well.
I want to know if there is a way that
if Vocation 1 goes ghost, people who are also vocation 1 can see the ghost still?
So example;
VocationID 1 goes ghost, VocationID 2 cannot see him, however Vocation 1 can still see the ghost guy?
kind of doing a vocation vs vocation thing to test out
It works very well.
I want to know if there is a way that
if Vocation 1 goes ghost, people who are also vocation 1 can see the ghost still?
So example;
VocationID 1 goes ghost, VocationID 2 cannot see him, however Vocation 1 can still see the ghost guy?
kind of doing a vocation vs vocation thing to test out
Lua:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_EFFECT, 63)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
local condition = Condition(CONDITION_INVISIBLE)
condition:setParameter(CONDITION_PARAM_TICKS, 5000)
combat:setCondition(condition)
function onCastSpell(creature, variant, isHotkey)
local player = Player(creature)
local function OMG()
player:setGhostMode(isGhost)
return true
end
addEvent(OMG, 5 * 1000)
local position = player:getPosition()
local isGhost = not player:isInGhostMode()
player:setGhostMode(isGhost)
return combat:execute(creature, variant)
end