How Do I Make A Custom Intstance 'Portal' menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    Jackhamme's Avatar Sergeant
    Reputation
    1
    Join Date
    Jun 2010
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How Do I Make A Custom Intstance 'Portal'

    Does ANYONE know how to make a custom instance portal. just like a portal on any instance, you walk through it and it loads it up, or comes up with a screen, I have tried everything on worldmap.info and areatrigger on my DB.

    I've looked up every TuT I know to add a custom instance in. I have already made the all the instance's mobs and loot, just need it to become a proper instance on a normal map in STV

    Instance Entrance point co-ords: Map = 0
    X= -13555.8
    Y= -174.028
    Z= 38.9217

    Instance Exit point co-ords: Map = 0
    X= -13469.4
    Y= 43.7858
    Z= 30.247

    Can anyone please help me out? If I can create this instance entrance and exit then this will prevent mob ninjas and the loot stealer. Thank you

    How Do I Make A Custom Intstance 'Portal'
  2. #2
    Reflection's Avatar Legendary
    Reputation
    783
    Join Date
    Mar 2008
    Posts
    3,377
    Thanks G/R
    1/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Your best bet would be to make an invisible npc check for nearby players via Lua and if they move close enough to the npc they teleport, then just spawn the appropriate portal. There was a post where GZ and harry explained it a while ago.

    Freelance Digital Artist
    https://reflectionartwork.deviantart.com
    You did not desert me
    My brothers in arms


  3. #3
    Jackhamme's Avatar Sergeant
    Reputation
    1
    Join Date
    Jun 2010
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmm, yeah good idea, but i still need to try to make it an instance, like its secure and only people in your party/raid can join it. Might try that idea though.

  4. #4
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    All parts of zones/maps have areatriggers, and you can make it so that when you enter a areatrigger you get teleported (which is how Blizzard's portals work) but unfortunately you can not create your own areatrigger without a model edit.

    You can, however, spawn a gameobject that shows the portal visual, and then have a invisible npc underneath it that checks for players and whether there in a group.

    Code:
    -- The ID's of the two invisible npc's (use  displayid 11686 for invisible, scale 0.01 (optional) and in game target  him and do .mod flags -10 to make him untargetable)
    local npcid = 50000
    local npcidtwo = 50001
    
    -- Enterance
    
    function InvisPortal_OnSpawn(pUnit, event)
        pUnit:RegisterEvent("Check_for_players_invis_portal", 2000, 0) --  1000 (1 second) is more effective but uses up more server resources
    end
    
    function Check_for_players_invis_portal(pUnit, event)
        for a, plrs in pairs(pUnit:GetInRangePlayers()) do
            if plrs ~= nil then
                if pUnit:GetDistanceYards(plrs) < 5 then
                    if plrs:IsInGroup() then
                    plrs:Teleport(0, -13555.8, -174.028, 38.9217)
                    else
                    plrs:SendAreaTriggerMessage("|CFFff0000You must be in a  group!|R")
                    end
                end
            end
        end
    end
    
    RegisterUnitEvent(npcid, 18, "InvisPortal_OnSpawn")
    
    -- Exit
    
    function zInvisPortal_OnSpawn(pUnit, event)
        pUnit:RegisterEvent("zCheck_for_players_invis_portal", 2000, 0) --  1000 (1 second) is more effective but uses up more server resources
    end
    
    function zCheck_for_players_invis_portal(pUnit, event)
        for a, aaaplrz in pairs(pUnit:GetInRangePlayers()) do
            if aaaplrz ~= nil then
                if pUnit:GetDistanceYards(aaaplrz) < 5 then
                    if aaaplrz:IsInGroup() then
                    aaaplrz:Teleport(0, -13469.4, 43.7858, 30.247)
                     else
                    aaaplrz:SendAreaTriggerMessage("|CFFff0000You must be in  a group!|R")
                    end
                end
            end
        end
    end
    
    RegisterUnitEvent(npcidtwo, 18, "zInvisPortal_OnSpawn")
    Last edited by LeecherJoe; 07-09-2010 at 09:33 AM.

  5. #5
    sgtmas2006's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    103
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    All parts of zones/maps have areatriggers, and you can make it so that when you enter a areatrigger you get teleported (which is how Blizzard's portals work) but unfortunately you can not create your own areatrigger without a model edit.

    You can, however, spawn a gameobject that shows the portal visual, and then have a invisible npc underneath it that checks for players and whether there in a group.

    Code:
    -- The ID's of the two invisible npc's (use  displayid 11686 for invisible, scale 0.01 (optional) and in game target  him and do .mod flags -10 to make him untargetable)
    local npcid = 50000
    local npcidtwo = 50001
    
    -- Enterance
    
    function InvisPortal_OnSpawn(pUnit, event)
        pUnit:RegisterEvent("Check_for_players_invis_portal", 2000, 0) --  1000 (1 second) is more effective but uses up more server resources
    end
    
    function Check_for_players_invis_portal(pUnit, event)
        for a, plrs in pairs(pUnit:GetInRangePlayers()) do
            if plrs ~= nil then
                if pUnit:GetDistanceYards(plrs) < 5 then
                    if plrs:IsInGroup() then
                    plrs:Teleport(0, -13555.8, -174.028, 38.9217)
                    else
                    plrs:SendAreaTriggerMessage("|CFFff0000You must be in a  group!|R")
                    end
                end
            end
        end
    end
    
    RegisterUnitEvent(npcid, 18, "InvisPortal_OnSpawn")
    
    -- Exit
    
    function zInvisPortal_OnSpawn(pUnit, event)
        pUnit:RegisterEvent("zCheck_for_players_invis_portal", 2000, 0) --  1000 (1 second) is more effective but uses up more server resources
    end
    
    function zCheck_for_players_invis_portal(pUnit, event)
        for a, aaaplrz in pairs(pUnit:GetInRangePlayers()) do
            if aaaplrz ~= nil then
                if pUnit:GetDistanceYards(aaaplrz) < 5 then
                    if aaaplrz:IsInGroup() then
                    aaaplrz:Teleport(0, -13469.4, 43.7858, 30.247)
                     else
                    aaaplrz:SendAreaTriggerMessage("|CFFff0000You must be in  a group!|R")
                    end
                end
            end
        end
    end
    
    RegisterUnitEvent(npcidtwo, 18, "zInvisPortal_OnSpawn")
    Thats actually pretty cool way of doing this and BTW hai harry ^-^
    Last edited by sgtmas2006; 07-09-2010 at 12:52 PM. Reason: FailWhaled.

  6. #6
    Jackhamme's Avatar Sergeant
    Reputation
    1
    Join Date
    Jun 2010
    Posts
    37
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh my... words do not explain, LOL thank you so much dude, this will help me more then ever!

Similar Threads

  1. Does anyone know how to make a custom instance portal
    By blink359 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-15-2009, 02:42 PM
  2. [Question] How Do i make a custom mount?
    By juntje in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 07-08-2008, 02:32 PM
  3. How do I make a Custom Trainer?
    By Xcynic in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 01-08-2008, 11:59 AM
  4. How do you make a custom NPC? - Mangos
    By regnar in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-01-2007, 11:17 AM
  5. How do i make a custom weapons/riding skill trainer?
    By oliver1993 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 09-30-2007, 08:48 AM
All times are GMT -5. The time now is 06:06 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search