[Guide] Making Arcemu Portals Easy! menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    922
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] Making Arcemu Portals and Teleporter NPC's EASY!

    This guide is the easiest way to make portals for your realm!

    STEP 1

    Open up a notepad and copy this into it:

    function Base_H (pUnit, Event, pMisc)
    pMisc:Teleport (MapId,X,Y,Z)
    end
    RegisterGameObjectEvent (EntryID,2,"Base_H")

    If 2 does not work use 4

    Open up the folder where your server is located and look for Scripts file and save it as

    Teleport1.LUA (or what you want it to be)

    MAKE sure you put .LUA!

    Start your server and Go in game to where you want your portal to teleport to and type the command .gps

    In:

    Code:
    function Base_H (pUnit, Event, pMisc)
    pMisc:Teleport (MapID,X,Y,Z)
    end
    RegisterGameObjectEvent (EntryID,2,"Base_H")
    Change the red Letters to what the .gps came up as it's pretty easy.

    Make sure the Bold letters are the same or it won't work. For each portal the name must be different

    STEP 2 Spawning a Portal

    Open up MySQL or whatever your using and open

    gameobject_names

    Open a New column and put these inputs in:

    Code:
    Entry: LUA entryID
    Type: 22
    Name: The name you want
    DisplayID: What the portal looks like (a list below)
    Leave the rest as 0
    DISPLAYID

    This is the display / model of the gameobject. You can take your pick from here:
    4393 = Darnassus
    4396 = Stormwind
    4394 = Ironforge
    4398 = Undercity
    4395 = Orgrimmar
    4397 = Thunder Bluff
    6956 = Silvermoon
    6955 = Exodar

    Now start up your realm and go to the area you want to spawn it

    Type .go spawn (entryID) 1 (keep the 1 on the end or when you realm restart they despawn)

    If your having troubles post what you have done.


    This part of the guide is for a Teleporter NPC used in many custom servers!

    First off if you don't know how to save LUA files i'll be putting download links at bottom!

    Step 1: The NPC

    Your going to need a NPC for your Teleporter either you can make two to dislike a faction or have one neutral NPC (which i use).

    Here is the NPC

    Code:
    insert into `creature_names` (`entry`, `name`, `subname`, `info_str`, `Flags1`, `type`, `family`, `rank`, `unk4`, `spelldataid`, `male_displayid`, `female_displayid`, `male_displayid2`, `female_displayid2`, `unknown_float1`, `unknown_float2`, `civilian`, `leader`) 
    values ('76666', "Taxi", "Teleporter NPC", '', '0', '7', '0', '3', '0', '0', '27545', '0', '0', '0', '1', '1', '1', '0');
    
    insert into `creature_proto` (`entry`, `minlevel`, `maxlevel`, `faction`, `minhealth`, `maxhealth`, `mana`, `scale`, `npcflags`, `attacktime`, `attacktype`, `mindamage`, `maxdamage`, `can_ranged`, `rangedattacktime`, `rangedmindamage`, `rangedmaxdamage`, `respawntime`, `armor`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `combat_reach`, `bounding_radius`, `auras`, `boss`, `money`, `invisibility_type`, `death_state`, `walk_speed`, `run_speed`, `fly_speed`, `extra_a9_flags`, `spell1`, `spell2`, `spell3`, `spell4`, `spell_flags`, `modImmunities`) 
    values ('76666', '80', '80', '7', '9000000', '9000000', '100000', '1', '1', '1000', '0', '99999', '99999', '0', '0', '0', '0', '3600', '20000', '9999', '9999', '9999', '9999', '9999', '9999', '0', '0', "0", '1', '0', '0', '0', '2.50', '8.00', '14.00', '0', '0', '0', '0', '0', '0', '0');
    If this NPC doesn't work for your server just go into your database (Navicat or what your using) and enter the values into CreatureProto and CreatureName!

    Here is the SQL file download : DOWNLOAD NOW!

    Copy that into a file and save as an SQL file!

    Open Navicat or what program you use and execute it into your database

    ID: 76666

    To spawn in game .npc spawn 76666

    Step 2: The Teleporter LUA

    This LUA consists of cities only, you talk to the NPC and he will teleport you to the main cities including Dalaran

    Here is the Already made LUA Teleporter : DOWNLOAD HERE!

    Put it into your Scripts folder and not your Scripts bin folder!

    Here is the Template:

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Cities", 2, 0)
    unit:GossipMenuAddItem(2, "Horde Cities", 3, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Dalaran", 300, 0)
    unit:GossipMenuAddItem(1, "Shattrath", 309, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Stormwind", 301, 0)
    unit:GossipMenuAddItem(1, "Ironforge", 302, 0)
    unit:GossipMenuAddItem(1, "Darnassus", 303, 0)
    unit:GossipMenuAddItem(1, "Exodar", 304, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)
    unit:GossipMenuAddItem(1, "Undercity", 306, 0)
    unit:GossipMenuAddItem(1, "Thunder Bluff", 307, 0)
    unit:GossipMenuAddItem(1, "Silvermoon", 308, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 300) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 301) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 302) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 303) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 304) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 305) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 306) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 307) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 308) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    
    if(intid == 309) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end
    end
    
    RegisterUnitGossipEvent(EntryID, 1, "On_Gossip")
    RegisterUnitGossipEvent(EntryID, 2, "Gossip_Submenus")

    Ok here we go:

    For: unit:GossipMenuAddItem(2, "Neutral Cities", 1, 0)

    This lets you add menus for when you talk to your NPC

    Each Time you Add a Menu make sure you change the Red
    so it orders in
    2
    3
    4 ect..

    scroll right to the bottom and for there

    RegisterUnitGossipEvent(EntryID, 1, "On_Gossip")
    RegisterUnitGossipEvent(EntryID, 2, "Gossip_Submenus")

    change the red to the ID which in this case is 76666 or whatever you made yours as

    For the Name you name it to where you want to go!

    Next part!

    For: unit:GossipMenuAddItem(1, "Orgrimmar", 305, 0)

    it is basically the Submenu and when you click it you will teleport there.

    for the RED make sure EACH one is different! or it won't work!

    It Must also match this:

    if(intid == 305) then
    player:Teleport(MapID, X, Y, Z)
    unit:GossipComplete(player)
    end

    Then you go ingame and type .gps and fill out the Green with what comes up!

    That pretty much covers the basics, if you practice and read through it you will be fine. Post if you need help
    Last edited by Jackie Moon; 05-10-2010 at 02:17 AM.
    Check out my YouTube: SkeetzGaming

    [Guide] Making Arcemu Portals Easy!
  2. #2
    P1raten's Avatar Banned
    Reputation
    500
    Join Date
    Mar 2008
    Posts
    1,323
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good work. +rep x5.

  3. #3
    bendaferi's Avatar Active Member
    Reputation
    34
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you Jackie Moon for another useful guid! I made a test custom portal and it worked. However I have a question. I don't have portals at many instances entrance on 3.3.2 ArcEmu with the latest WhyDB. Is it possible to make an instance entrance portal ( that pink thing ) by doing the same? Should I just find the display ID of the entrance and spawn it?

    Thank you,
    bendaferi

  4. #4
    WeedSter's Avatar Member
    Reputation
    2
    Join Date
    Nov 2007
    Posts
    42
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe there is an SQL batch flying around that updates the WhyDB database to include those, as I used it. However, I don't have the link anymore so I can't really send it to ya, but I know it's there, good luck finding it =)

  5. #5
    bendaferi's Avatar Active Member
    Reputation
    34
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well I have a little problem. Everything worked fine until this morning. I get:
    scripts/portal.lua:2: attempt to index local 'pMisc' <a nil value>
    The script:
    function arena_tele(pUnit, Event, pMisc)
    pMisc:Teleport(1, 2177.557129, -4764.952148, 55.137749)
    end
    RegisterGameObjectEvent(2000000, 2, "arena_tele")


    Please help

  6. #6
    naomai's Avatar Private
    Reputation
    1
    Join Date
    May 2010
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, this is a definite +rep, this is amazing, but im having just 1 problem: whenever i save it as a lua file, it just puts .lua at the back of my file, while its still a text document. any help?

  7. #7
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    922
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by naomai View Post
    Okay, this is a definite +rep, this is amazing, but im having just 1 problem: whenever i save it as a lua file, it just puts .lua at the back of my file, while its still a text document. any help? \
    Your going to have to turn the file flags (or paths) on, so all files show there flags eg: .mp3, .txt - Google how too do it, i'm not sure what computer your using.
    Last edited by Jackie Moon; 05-10-2010 at 02:19 AM.
    Check out my YouTube: SkeetzGaming

  8. #8
    cokacola's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome, Just Awesome.
    I bookmarked this post.
    EDIT:
    Failed...
    scripts/teleporter1.lua:2: attempt to index local 'pMisc' <a nil value>
    Here is the script:
    function Base_H (pUnit, Event, pMisc)
    pMisc:Teleport(451,16335.509766,16314.496094,69.44519
    end
    RegisterGameObjectEvent (133701,2,"Base_H")
    The EntryID is the same in the database, and it all looks good.
    Here is the database entry info:
    ID: 133701
    Type: 22
    DisplayID: 4396
    Name: ProgrammerIslandPortal1
    I just left the rest 0 like you said.
    I just do not know what its problem is.
    Should mention, I spawned it like this:
    .go spawn 133701 1
    I tried restating(portal is still there)
    but it still won't let me through.
    Last edited by cokacola; 05-10-2010 at 01:03 AM.

  9. #9
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    922
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers all for the Feedback!
    Check out my YouTube: SkeetzGaming

  10. #10
    cokacola's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I failed, just read the edited post above yours :P
    don't know what to say.

  11. #11
    cokacola's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function Base_H (pUnit, Event, Misc)
    Misc:Teleport(451,16335.509766,16314.496094,69.44519
    end
    RegisterGameObjectEvent (133701,2,"Base_H")
    Still doesn't work.
    Same error, but the error changed "pMisc" to "Misc" as well...
    I will try looking up the RegisterGameObjectEvent on the ArcEmu wiki.
    BTW, my copy of arcemu is like barely 2 weeks old.
    EDIT:
    I got it working.
    For all those wondering, change this:
    RegisterGameObjectEvent (133701,2,"Base_H")
    to this:
    RegisterGameObjectEvent (133701,4,"Base_H")
    As far as the wiki goes, the '2' is for onSpawn, not onUse.

    EDIT2:
    In case anyone cares, this is my current code.
    It only allows admins through the portal:
    function Base_H (pUnit, Event, Misc)
    if(Misc:IsGm()) then
    Misc:Teleport(451,16335.509766,16314.496094,69.44519
    else

    end
    end
    RegisterGameObjectEvent (133701,4,"Base_H")
    Last edited by cokacola; 05-10-2010 at 02:01 AM.

  12. #12
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    922
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright cheers, 2 works for me so i'll edit the post so it will tell people to put either 2 or 4
    Check out my YouTube: SkeetzGaming

  13. #13
    cokacola's Avatar Member
    Reputation
    1
    Join Date
    Jul 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jackie Moon View Post
    Alright cheers, 2 works for me so i'll edit the post so it will tell people to put either 2 or 4
    Okay, I saw that you did, thanks.
    Maybe its just much newer arcemu versions or something.

  14. #14
    dustin1214's Avatar Member
    Reputation
    2
    Join Date
    Apr 2008
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any way to edit it so that only donors can use it?

  15. #15
    Jackie Moon's Avatar Elite User
    Reputation
    407
    Join Date
    May 2008
    Posts
    922
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by dustin1214 View Post
    Any way to edit it so that only donors can use it?
    Not too sure just make donors have an item to teleport them too donor only town with all this inside it
    Check out my YouTube: SkeetzGaming

Page 1 of 2 12 LastLast

Similar Threads

  1. [Guide] Make your own WOTLK 3.0.3 server using ArcEmu!!! (easy)
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 114
    Last Post: 01-26-2009, 05:28 PM
  2. [Guide] Making Portals to anywhere and spawn them! easy for beginners!
    By Jackie Moon in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 07-12-2008, 10:11 AM
  3. [Guide] Make a Portal in C++
    By mager1794 in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 07-06-2008, 10:40 PM
  4. [Guide] How to make LUA portals easy and noobie too!
    By Ellenor in forum WoW EMU Guides & Tutorials
    Replies: 15
    Last Post: 03-05-2008, 09:10 PM
All times are GMT -5. The time now is 05:59 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search