Jose Rondón
UTibia
Hi everyone, i got a question regarding ghost command on TFS 1.2.
I have set my own groups in order to create more ranks avaiable besides tutor, gamemaster and god, i also used flag generator by @HalfWay and in this sense everything seems to be working fine.
However when i try /ghost command in a high ranked staff (such as god or admin), tutors and gamemasters can see me.
I have set my own groups in order to create more ranks avaiable besides tutor, gamemaster and god, i also used flag generator by @HalfWay and in this sense everything seems to be working fine.
However when i try /ghost command in a high ranked staff (such as god or admin), tutors and gamemasters can see me.
This is my groups.xml (if any use)
<?xml version="1.0" encoding="UTF-8"?>
<groups>
<group id="1" name="player" flags="0" access="0" maxdepotitems="0" maxvipentries="0" />
<group id="2" name="tutor" flags="137455730688" access="1" maxdepotitems="0" maxvipentries="200" />
<group id="3" name="gamemaster" flags="9005456797519" access="1" maxdepotitems="0" maxvipentries="0" />
<group id="4" name="community manager" flags="266273144682" access="1" maxdepotitems="0" maxvipentries="200" />
<group id="5" name="god" flags="272721878906" access="1" maxdepotitems="0" maxvipentries="200" />
<group id="6" name="admin" flags="272730398714" access="1" maxdepotitems="0" maxvipentries="200" />
</groups>
and here my ghost.lua
function onSay(player, words, param)
if not player:getGroup():getAccess() then
return true
end
if player:getAccountType() < ACCOUNT_TYPE_SENIORTUTOR 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(CONST_ME_YALAHARIGHOST)
else
player:sendTextMessage(MESSAGE_INFO_DESCR, "You are visible again.")
position.x = position.x + 1
position:sendMagicEffect(CONST_ME_SMOKE)
end
return false
end
I know, why the hell are you using SENIORTUTOR to limitate your ghost.lua?
It's because i've set gamemasters as SENIORTUTOR in matters of Account Type.