Welcome to the MMOtop - Arcemu, Mangos, Trinity.
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Status : killerwow is offline
    Join Date : Jun 2010
    Location : Sweden
    Posts : 19
    Thanks: 2
    Thanked 2 Times in 2 Posts
    Rep Power : 2
    Reputation:30killerwow is on a distinguished road

    Default Make NPC only visible to those with a special item!

    I found this great tutorial and I want to share it to MMOpro!


    Ever wanted to make an item that reveals hidden NPCs when equipped?
    I managed to do it and now wish to share this information with everyone...




    1.)
    First things first, make your NPCs! You can do this on WoW-V ([Only registered and activated users can see links. ]) or by hand in your SQL DB.
    Make sure to set the appropriate flags for vendors or trainers, whatever you're making.
    (Note: If you plan on using an NPC that is already spawned, you may have to delete & respawn them.)

    2.)
    Second, it's time to make them invisible! Now what we're going to do is make the NPCs cast [Only registered and activated users can see links. ] on themselves at spawn. We're going to do this two ways to make double sure that they cast it!

    Go into your World DB tables with whatever you use (Navicat, Heidi, etc..) Open the table 'creatures_proto'.
    Sort by Entry column, find the Entry # you used for your NPC. In that row, you should see columns called
    spell1, spell2, spell3 & spell4. Change the value of all of those columns to 44801. Now after those columns
    there is a column called spell_flags. Put a 2 in there. That makes them cast it while out of combat.

    And now we're going to script the cast on Spawn. Copy the code below, and paste it into notepad or whatever
    simple text editor your OS uses. Change "YOUR-NPC'S-ENTRY-ID" in the script to, you guessed it, your NPC's
    entry ID #. Save as any filename, just change extension to .lua & put it into your scripts folder.


    Code:
    function NPC_OnSpawn(Unit, Event)
    Unit:CastSpell(44801)
    end
    
    RegisterUnitEvent(YOUR-NPC'S-ENTRY-ID, 18, "NPC_OnSpawn")
    Thanks to Kaidos for helping me sort the OnSpawn Event Number!

    Restart your server.
    Your NPC should now be invisible!:hsdance::hugglez::woot2:

    3.)
    But wait! Now you can't see them either! Well, make you an item (you can do this with WoW-V, just
    click the switch mode on 'ITEM BONUSES' section) and put spell 44801 as an equip bonus.
    This spell will not show anything in the tooltip for the item in-game, but the equip bonus is there.
    Run the SQL from WoW-V on your world DB, go ingame, type .ser reload items, then add the item to your
    character, and when equipped, you will see these NPCs. Take it off, they're gone!

    I made a pre-made item you can use if you'e lazy, but if you use it please vote it up so it won't get deleted:
    [Only registered and activated users can see links. ]


    A FEW NOTES: Sometimes GMs can see the NPCs without the item on. I think it's just GMs that have
    equipped the item before, so it might just be a cache issue, but normal players who have not had spell 44801
    cast on them & don't have an item with that spell on it to equip, will not see these NPCs.

    So if you log-in and don't have the item equipped, but still see the NPCs, don't freak out! Normal Players
    won't see them
    .
    You can equip & unequip the item to get them to disappear from your vision again.

  2. The Following User Says Thank You to killerwow For This Useful Post:

    raver (01-03-2011)

  3. #2
    Truster's Avatar
    Status : Truster is offline
    Join Date : Apr 2010
    Location : Norway
    Posts : 3,340
    Thanks: 46
    Thanked 87 Times in 83 Posts
    Rep Power : 10
    Reputation:2014Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute Truster has a reputation beyond repute

    Default

    interesting nice :P could use it for my fun server :P

  4. #3
    Status : killerwow is offline
    Join Date : Jun 2010
    Location : Sweden
    Posts : 19
    Thanks: 2
    Thanked 2 Times in 2 Posts
    Rep Power : 2
    Reputation:30killerwow is on a distinguished road

    Default

    Hehe :P

  5. #4
    Status : raver is offline
    Join Date : Nov 2010
    Posts : 7
    Thanks: 9
    Thanked 0 Times in 0 Posts
    Rep Power : 0
    Reputation:10raver is on a distinguished road

    Default

    thanks for the share, this is really useful xD

  6. #5
    Status : Sweefox is offline
    Join Date : Jan 2011
    Location : Hamilton, OH
    Posts : 6
    Thanks: 0
    Thanked 0 Times in 0 Posts
    Rep Power : 0
    Reputation:10Sweefox is on a distinguished road

    Default

    i like that :) Nice, i like how he's "Invisablie" lol

  7. #6
    Lucian's Avatar
    Status : Lucian is offline
    Join Date : Dec 2009
    Location : US
    Posts : 1,275
    Thanks: 4
    Thanked 57 Times in 36 Posts
    Rep Power : 4
    Reputation:36Lucian is on a distinguished road

    Default

    Nice I always wondered how to do that, good job mate!
    John 3:16
    For God so loved the world that he gave his one and only Son, that whoever believes in him shall not perish but have eternal life.

  8. #7
    mattyboi's Avatar
    Status : mattyboi is offline
    Join Date : Nov 2010
    Location : Kyogle NSW, Australia
    Posts : 77
    Thanks: 8
    Thanked 0 Times in 0 Posts
    Rep Power : 2
    Reputation:10mattyboi is on a distinguished road

    Default

    nice share very useful =D

  9. #8
    Status : zdroid9770 is offline
    Join Date : May 2011
    Location : Astralwow.info
    Posts : 14
    Thanks: 1
    Thanked 2 Times in 1 Post
    Rep Power : 0
    Reputation:10zdroid9770 is on a distinguished road

    Default

    Nice


 

Visitors found this page by searching for:

1

npc cast spell trinity

trinity invisible npc

trinity создание НПЦ

set npc invisible trinity

create npc on trinity

create npc trinity wow

creare trainer npc wow trinity

How to make hidden npcs

trinitycore Invisible npc

npc visible only gm wow

how to make an npc equip

invisible npc mangos

wow npc modify

mangos invisible npc

how create sql npctrinity world item spanenhow to create a vendor trinitytrinity npc item addvendor for trinity visible only for gmarcemu how to item epuip bonusarcemu npc create guidewow trinity npc sittrinity wow building only shows to GMstrinity unsichtbare npc
SEO Blog

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts