1. Welcome to the Brawl website! Feel free to look around our forums. Join our growing community by typing /register in-game!

Invisible npcs

Discussion in 'Off Topic' started by StealthSpy007, Dec 31, 2015.

Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...
  1. StealthSpy007

    StealthSpy007 Well-Known Member

    Joined:
    May 18, 2015
    Messages:
    297
    Ratings:
    +24
    ok brawl, how do you make your npcs (brawlbot) invisible? Cause I tried and I can only do it to mobs for 6 minutes while u do it permanently. How do I make them invisible permenently? I'm doing stuff on my server.
     
  2. MattM1PVP

    MattM1PVP Ex-HG Staff Member

    Joined:
    May 22, 2015
    Messages:
    2,148
    Ratings:
    +705
    u shld code for brawl. get paid
     
  3. StealthSpy007

    StealthSpy007 Well-Known Member

    Joined:
    May 18, 2015
    Messages:
    297
    Ratings:
    +24
    Stay on topic
     
  4. pAggYDaRP

    pAggYDaRP Well-Known Member

    Joined:
    Jan 2, 2015
    Messages:
    1,333
    Ratings:
    +376
    Why do you think this was posted in the "off-topic" section .-.
     
  5. MattM1PVP

    MattM1PVP Ex-HG Staff Member

    Joined:
    May 22, 2015
    Messages:
    2,148
    Ratings:
    +705
  6. Totom3

    Totom3 Tactical reboot, incoming!

    Joined:
    Dec 15, 2013
    Messages:
    187
    Ratings:
    +330
    A few ways:

    - Give it the invisibility effect --
    pretty straight forward, make the duration a very high value and use the longest constructor of PotionEffect so you can make it display no particles. It can last for up to around 3.4 years.

    - Send a
    PacketPlayOutEntityDestroy -- clients will no longer "be aware" of the existence of the NPC. Then you send a PacketPlayOutNamedEntitySpawn to respawn it.

    - Don't even spawn it --
    for "BrawlBot" to be seen in the tab list, the server only needs to send a PacketPlayOutPlayerInfo. Once this is done, the client adds BrawlBot to the tab list, even though it is not actually spawned.

    - Teleport it to locations players can't access nor see --
    this is only if they are confined to a certain area.
     
  7. StealthSpy007

    StealthSpy007 Well-Known Member

    Joined:
    May 18, 2015
    Messages:
    297
    Ratings:
    +24
    hmmmm, is there any other simple way other than these? A server restart seems to undo them for me.
     
Loading...
Similar Threads Forum Date
Invisible Ninja glitch Capture the Flag Jul 22, 2017
invisible nades lol Battle Royale [Closed] Jul 13, 2017
Warping to a warp and The Mobs are invisible Raid Dec 27, 2016
Fixed Invisible Shapeshifter Glitch Hardcore Games Jul 30, 2016
Other Slither - Invisible Snakes Other Jun 9, 2016
Thread Status:
Please be aware that this thread is more than 30 days old. Do not post unless the topic can still be discussed. Read more...