roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 201
Hello, im using tfs 1.3, and when i use /ghost, the outfit changes, and i looked into the script /ghost, its not here.
Its in on source, when i can remove it? when use /ghost, i dont need to outfit change!
look talkactions /ghost (its not here the function that change the outfit)
Its in on source, when i can remove it? when use /ghost, i dont need to outfit change!
look talkactions /ghost (its not here the function that change the outfit)
Lua:
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.")
position:sendMagicEffect(3)
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "You are visible again.")
position:sendMagicEffect(11)
end
return false
end