• 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!

Invisible Spell

KikiRook

₆⁶₆NOS Titan₆⁶₆
Joined
May 29, 2016
Messages
378
Reaction score
98
Location
Japan
Atm i've got a spell thats supposed to make my players able to use /ghost for 3 Seconds but when they use it I can still see blue sparkles and their name.. Any way to fix this? I'll PM script if need be.
 
change 2 functions in player.cpp
found
void Player::sendCreatureChangeVisible(const Creature* creature, Visible_t visible)
and change to
Code:
void Player::sendCreatureChangeVisible(const Creature* creature, Visible_t visible)
{
if(!client)
return;
const Player* player = creature->getPlayer();
if(player == this || (player && (visible < VISIBLE_GHOST_APPEAR || (getAccess() > 2 && getGhostAccess() >= player->getGhostAccess())))
|| (!player && canSeeInvisibility()))
sendCreatureChangeOutfit(creature, creature->getCurrentOutfit());
else if(visible == VISIBLE_DISAPPEAR || visible == VISIBLE_GHOST_DISAPPEAR)
sendCreatureDisappear(creature, creature->getTile()->getClientIndexOfThing(this, creature));
else
sendCreatureAppear(creature);
}
and found
bool Player::canSeeCreature(const Creature* creature) const
and change too

Code:
bool Player::canSeeCreature(const Creature* creature) const
{
if(creature == this)
return true;
if(const Player* player = creature->getPlayer())
return !player->isGhost() || (getAccess() > 2 && getGhostAccess() >= player->getGhostAccess());
return !creature->isInvisible() || canSeeInvisibility();
}
 
Last edited:
Back
Top