• Vote in May Mapping Competition to select a winner!
  • 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!

TFS 1.X+ Ghost mode

leeebux

Awsome
Joined
May 18, 2009
Messages
92
Best answers
0
Reaction score
3
Location
Sweden
Change so /Ghost isent sparkeling. No effect at all
 

BulawOw

Member
Joined
Sep 15, 2014
Messages
111
Best answers
1
Reaction score
18
post ur ghost code here without this no one gonna help
 
OP
leeebux

leeebux

Awsome
Joined
May 18, 2009
Messages
92
Best answers
0
Reaction score
3
Location
Sweden
The sparkeling effect isent in the ghost code, but here
Code:
function onSay(player, words, param)
    if not player:getGroup():getAccess() then
        return true
    end

    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end

    local position = player:getPosition()
    local isGhost = not player:isInGhostMode()

    player:setGhostMode(isGhost)
    if isGhost then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You are now invisible.")
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You are visible again.")
        position.x = position.x + 1
    end
    return false
end
 

Yaboihunna

New Member
Joined
Mar 27, 2019
Messages
131
Best answers
0
Reaction score
3
Check in your config.lua
Ctrl f search ghost there might be a option to turn it off
 
OP
leeebux

leeebux

Awsome
Joined
May 18, 2009
Messages
92
Best answers
0
Reaction score
3
Location
Sweden
Nothing about it in the Config :/
 

BulawOw

Member
Joined
Sep 15, 2014
Messages
111
Best answers
1
Reaction score
18
Add this line below player:sendTextMessage

Code:
position:sendMagicEffect(CONST_ME_MAGIC_BLUE)
 
OP
leeebux

leeebux

Awsome
Joined
May 18, 2009
Messages
92
Best answers
0
Reaction score
3
Location
Sweden
Nope, that just added the effect
 

TheGahl

Learning in Progress
Joined
Jul 28, 2018
Messages
200
Best answers
3
Reaction score
122
The sparkeling effect isent in the ghost code, but here
Code:
function onSay(player, words, param)
    if not player:getGroup():getAccess() then
        return true
    end

    if player:getAccountType() < ACCOUNT_TYPE_GOD then
        return false
    end

    local position = player:getPosition()
    local isGhost = not player:isInGhostMode()

    player:setGhostMode(isGhost)
    if isGhost then
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You are now invisible.")
    else
        player:sendTextMessage(MESSAGE_INFO_DESCR, "You are visible again.")
        position.x = position.x + 1
    end
    return false
end
If you turn invisible so people can't see you, but you don't go "utana vid", it's C++ related.
If you don't turn invisible, still C++ related, because it would mean setGhost() isn't functional as intended xD
 
OP
leeebux

leeebux

Awsome
Joined
May 18, 2009
Messages
92
Best answers
0
Reaction score
3
Location
Sweden
The ghost turns me invisible, but with the a sparkeling effect that i dont want.
Hmm, i guess the stalker effect on a tile
 
Top