[Command] [FSOD] Vanish Command
PLEASE ADD THIS INSTEAD OF STEP 11'S CODE
@Daemonmann or @Luis please change step 11's code to the code above as the code in step 11 causes pet errors
Code:
private IEnumerable<int> GetRemovedEntities()
{
foreach (Entity i in clientEntities.Where(i => i is Player))
{
if ((i as Player).isNotVisible && i != this && !PvP)
{
yield return i.Id;
}
if (i is Player && i.Owner != null) continue;
if (MathsUtils.DistSqr(i.X, i.Y, X, Y) > SIGHTRADIUS * SIGHTRADIUS &&
!(i is StaticObject && (i as StaticObject).Static) &&
i != Quest)
{
if (i is Pet) continue;
yield return i.Id;
}
else if (i.Owner == null)
yield return i.Id;
if ((i as Player).isNotVisible && i != this && !PvP)
yield return i.Id;
}
}
@Daemonmann or @Luis
Change exchange the command /vanish with this since its gives invincibility and invisibility when the command is used
Change exchange the command /vanish with this since its gives invincibility and invisibility when the command is used
Code:
internal class VanishCommand : Command
{
public VanishCommand()
: base("vanish", 1)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
if (!player.isNotVisible)
{
player.isNotVisible = true;
player.Owner.PlayersCollision.Remove(player);
if (player.Pet != null)
player.Owner.LeaveWorld(player.Pet);
player.ApplyConditionEffect(new ConditionEffect
{
Effect = ConditionEffectIndex.Invincible,
DurationMS = -1
});
player.ApplyConditionEffect(new ConditionEffect
{
Effect = ConditionEffectIndex.Invisible,
DurationMS = -1
});
player.SendInfo("You're now hidden from all players!");
return true;
}
player.isNotVisible = false;
player.ApplyConditionEffect(new ConditionEffect
{
Effect = ConditionEffectIndex.Invincible,
DurationMS = 0
});
player.ApplyConditionEffect(new ConditionEffect
{
Effect = ConditionEffectIndex.Invisible,
DurationMS = 0
});
player.SendInfo("You're now visible to all players!");
return true;
}
}
Could you add god mode and have it make you invisible? I tried myself but i cant get the 2nd part of the code (vanish) working
Done.
/10chars.
/10chars.
I am having this happen only after the code in, I am guessing it is the GetRemovedEntities
Basically whenever an enemy is killed, it is still there. When you are vanished, sometimes it comes back un-killable
If you leave and come back it is gone.

It is killed but they stay there until you leave and re enter
They also stay on the minimap so if you saw entities from across the world, they stay on your minimap
@Daemonmann
Might be something with GetRemovedEntities
SCREENSHOT1
Basically whenever an enemy is killed, it is still there. When you are vanished, sometimes it comes back un-killable
If you leave and come back it is gone.
SCREENSHOT2

It is killed but they stay there until you leave and re enter
They also stay on the minimap so if you saw entities from across the world, they stay on your minimap
@Daemonmann
Might be something with GetRemovedEntities
idk for what i have no problems with it :/
my computer got virus when using this code
well can someone fix the command??? the minimap doesnt update when i kill something and it says that the quest is there still after i kill it someone gotta fix it plz xD
Similar Threads
Realm of the Mad God Private Servers HelpVanish commandRA 15 Visual Basic ProgrammingVoice Command Example (Voice Command Webbrowser) 12 CrossFire Help💡 HOTKEYS!! I want to launch a command in CMD(command prompt) while in crossfire
3 Adventure Quest Worlds (AQW) Selling / Trading / Buying[WTB] Account with Icy Naval Commander / Platinum Naval Commander 3 Gunz HacksDemon of some commandsHO 12

