Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 10 of 10
  1. #1
    Sergeant
    Mario's Avatar
    Join Date
    Feb 2009
    Location
    Under your Bed!
    Posts
    77
    Post Thanks / Like
    Rep Power
    16
    Reputation
    65

    [Request]Help with LUA script


    Register to remove this ad
    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(0, "Horde cities", 1, 0)
    unit:GossipMenuAddItem(0, "Alliance cities", 2, 0)
    unit:GossipMenuAddItem(0, "Azeroth Instances", 5, 0)
    unit:GossipMenuAddItem(0, "Outland Instances", 6, 0)
    unit:GossipMenuAddItem(5, "Shattrath", 51, 0)
    unit:GossipMenuAddItem(0, "Outland Location", 7, 0)
    unit:GossipMenuAddItem(0, "Azeroth Location", 10, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 1) then
    unit:GossipCreateMenu(101, player, 0)
    unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
    unit:GossipMenuAddItem(5, "Orgrimmar", 9, 0)
    unit:GossipMenuAddItem(5, "Undercity", 10, 0)
    unit:GossipMenuAddItem(5, "Thunder Bluff", 11, 0)
    unit:GossipMenuAddItem(5, "Silvermoon", 12, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 2) then
    unit:GossipCreateMenu(102, player, 0)
    unit:GossipMenuAddItem(5, "GMIsland", 99, 0)
    unit:GossipMenuAddItem(5, "Stormwind", 14, 0)
    unit:GossipMenuAddItem(5, "Ironforge", 15, 0)
    unit:GossipMenuAddItem(5, "Darnassus", 16, 0)
    unit:GossipMenuAddItem(5, "Exodar", 17, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 5) then
    unit:GossipCreateMenu(103, player, 0)
    unit:GossipMenuAddItem(5, "Azeroth Raids", 3, 0)
    unit:GossipMenuAddItem(5, "Shadowfang Keep", 19, 0)
    unit:GossipMenuAddItem(5, "Scarlet Monastery", 20, 0)
    unit:GossipMenuAddItem(5, "Zul'Farrak", 21, 0)
    unit:GossipMenuAddItem(5, "Stratholme", 22, 0)
    unit:GossipMenuAddItem(5, "Scholomance", 23, 0)
    unit:GossipMenuAddItem(5, "Ragefire", 110, 0)
    unit:GossipMenuAddItem(5, "Deathmines", 170, 0)
    unit:GossipMenuAddItem(5, "Those caverns in barrens xX", 111, 0)
    unit:GossipMenuAddItem(5, "Blackfathom deepths", 112, 0)
    unit:GossipMenuAddItem(5, "This instance in Stormwind biggrin.gif", 113, 0)
    unit:GossipMenuAddItem(5, "Gnomeregan", 114, 0)
    unit:GossipMenuAddItem(5, "Razorfen thing number 1", 115, 0)
    unit:GossipMenuAddItem(5, "Razorfen hills", 116, 0)
    unit:GossipMenuAddItem(5, "Uldaman", 117, 0)
    unit:GossipMenuAddItem(5, "Maraudon", 118, 0)
    unit:GossipMenuAddItem(5, "Sunken temple", 119, 0)
    unit:GossipMenuAddItem(5, "Lower Blackrock", 120, 0)
    unit:GossipMenuAddItem(5, "Dire Maul", 121, 0)
    unit:GossipMenuAddItem(5, "Upper Blackrock", 122, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 6) then
    unit:GossipCreateMenu(104, player, 0)
    unit:GossipMenuAddItem(5, "Outland Raids", 4, 0)
    unit:GossipMenuAddItem(5, "Hellfire Ramparts", 25, 0)
    unit:GossipMenuAddItem(5, "Blood furnace", 26, 0)
    unit:GossipMenuAddItem(5, "Shattered Halls", 27, 0)
    unit:GossipMenuAddItem(5, "Underbog", 28, 0)
    unit:GossipMenuAddItem(5, "Slave pens", 29, 0)
    unit:GossipMenuAddItem(5, "Steam whatever tongue.gif", 30, 0)
    unit:GossipMenuAddItem(5, "Mana tombs", 31, 0)
    unit:GossipMenuAddItem(5, "Auchenai crypts", 32, 0)
    unit:GossipMenuAddItem(5, "Sethekk halls", 33, 0)
    unit:GossipMenuAddItem(5, "Shadow lab", 34, 0)
    unit:GossipMenuAddItem(5, "Mechanar", 35, 0)
    unit:GossipMenuAddItem(5, "Bota whatever Oo", 36, 0)
    unit:GossipMenuAddItem(5, "Arcatraz", 37, 0)
    unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 3) then
    unit:GossipCreateMenu(105, player, 0)
    unit:GossipMenuAddItem(5, "Onyxias Lair", 39, 0)
    unit:GossipMenuAddItem(5, "Molten Core", 40, 0)
    unit:GossipMenuAddItem(5, "Blackwing Lair", 123, 0)
    unit:GossipMenuAddItem(5, "Zul'Gurub", 41, 0)
    unit:GossipMenuAddItem(5, "Karazhan", 42, 0)
    unit:GossipMenuAddItem(5, "Ruins of Ahn'Qiraj", 43, 0)
    unit:GossipMenuAddItem(5, "Temple of Ahn'Qiraj", 44, 0)
    unit:GossipMenuAddItem(5, "Naxxramas", 45, 0)
    unit:GossipMenuAddItem(5, "Zul'Aman", 124, 0)
    unit:GossipMenuAddItem(5, "Caverns of Time", 52, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 4) then
    unit:GossipCreateMenu(106, player, 0)
    unit:GossipMenuAddItem(5, "Black Temple", 50, 0)
    unit:GossipMenuAddItem(5, "Tempest Keep", 49, 0)
    unit:GossipMenuAddItem(5, "Gruuls Lair", 48, 0)
    unit:GossipMenuAddItem(5, "Serpentshrine caverns", 47, 0)
    unit:GossipMenuAddItem(5, "Maghteridons Lair", 46, 0)
    unit:GossipMenuAdditem(5, "The EYE", 180, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 7) then
    unit:GossipCreateMenu(107, player, 0)
    unit:GossipMenuAddItem(5, "Hellfire Halfisland", 200, 0)
    unit:GossipMenuAddItem(5, "Zangermarsh", 201, 0)
    unit:GossipMenuAddItem(5, "Nagrand", 202, 0)
    unit:GossipMenuAddItem(5, "Blades Edge Mountains", 203, 0)
    unit:GossipMenuAddItem(5, "Netherstorm", 204, 0)
    unit:GossipMenuAddItem(5, "Terokkar Forest", 205, 0)
    unit:GossipMenuAddItem(5, "Shadowmoon Valley", 206, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 8) then
    unit:GossipCreateMenu(108, player, 0)
    unit:GossipMenuAddItem(5, "Eastern Kingdoms", 182, 0)
    unit:GossipMenuAddItem(5, "Kalimidor", 184, 0)
    unit:GossipMenuAddItem(5, "Gurubashi Arena", 181, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 182) then
    unit:GossipCreateMenu(109, player, 0)
    unit:GossipMenuAddItem(5, "Eastern Plaguelands", 300, 0)
    unit:GossipMenuAddItem(5, "Western Plaguelands", 301, 0)
    unit:GossipMenuAddItem(5, "Tristfal Glades", 302, 0)
    unit:GossipMenuAddItem(5, "Alterac Mountains", 303, 0)
    unit:GossipMenuAddItem(5, "Silverpine Forest", 304, 0)
    unit:GossipMenuAddItem(5, "Hillsbrad Foothills", 305, 0)
    unit:GossipMenuAddItem(5, "The Hinterlands", 306, 0)
    unit:GossipMenuAddItem(5, "Arathi Highlands", 307, 0)
    unit:GossipMenuAddItem(5, "Wetlands", 308, 0)
    unit:GossipMenuAddItem(5, "Dun Morogh", 309, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 183) then
    unit:GossipCreateMenu(110, player, 0)
    unit:GossipMenuAddItem(5, "Loch Modan", 310, 0)
    unit:GossipMenuAddItem(5, "Badlands", 311, 0)
    unit:GossipMenuAddItem(5, "Blackrock Mountain", 312, 0)
    unit:GossipMenuAddItem(5, "Redridge Mountain", 313, 0)
    unit:GossipMenuAddItem(5, "Elwynn Forest", 314, 0)
    unit:GossipMenuAddItem(5, "Duskwood", 315, 0)
    unit:GossipMenuAddItem(5, "Westfall", 316, 0)
    unit:GossipMenuAddItem(5, "Swamp of Sorrows", 317, 0)
    unit:GossipMenuAddItem(5, "The Blasted Lands", 318, 0)
    unit:GossipMenuAddItem(5, "Deadwind Pass", 319, 0)
    unit:GossipMenuAddItem(5, "Stranglethorn Vale", 320, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 184) then
    unit:GossipCreateMenu(111, player, 0)
    unit:GossipMenuAdditem(5, "Moonglade", 330, 0)
    unit:GossipMenuAdditem(5, "Winterspring", 331, 0)
    unit:GossipMenuAdditem(5, "Felwood", 332, 0)
    unit:GossipMenuAdditem(5, "Darkshore", 333, 0)
    unit:GossipMenuAdditem(5, "Azshara", 334, 0)
    unit:GossipMenuAdditem(5, "Ashenvale", 335, 0)
    unit:GossipMenuAdditem(5, "Stonetalon Mountains", 336, 0)
    unit:GossipMenuAdditem(5, "The Barrens", 337, 0)
    unit:GossipMenuAdditem(5, "Durotar", 338, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 185) then
    unit:GossipCreateMenu(112, player, 0)
    unit:GossipMenuAdditem(5, "Mulgore", 339, 0)
    unit:GossipMenuAdditem(5, "Desolace", 340, 0)
    unit:GossipMenuAdditem(5, "Dustwallow Marsh", 341, 0)
    unit:GossipMenuAdditem(5, "Feralas", 342, 0)
    unit:GossipMenuAdditem(5, "Thousand Needles", 343, 0)
    unit:GossipMenuAdditem(5, "Tanaris Desert", 344, 0)
    unit:GossipMenuAdditem(5, "Un'Goro Crater", 345, 0)
    unit:GossipMenuAdditem(5, "Silithus", 346, 0)
    unit:GossipSendMenu(player)
    end
    
    if(intid == 12) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    
    if(intid == 9) then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    
    if(intid == 11) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    
    if(intid == 10) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
    end 
    
    RegisterUnitGossipEvent(989898, 1, "On_Gossip")
    RegisterUnitGossipEvent(989898, 2, "Gossip_Submenus")
    anyone know whats wrong with my porter?




    › See More: [Request]Help with LUA script
    If i helped you somehow use that magic button!



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Sergeant
    Mario's Avatar
    Join Date
    Feb 2009
    Location
    Under your Bed!
    Posts
    77
    Post Thanks / Like
    Rep Power
    16
    Reputation
    65
    can anyone change whats wrong and post right code.
    If i helped you somehow use that magic button!

  4. #3
    Contributor
    QQrofl's Avatar
    Join Date
    Jan 2009
    Posts
    153
    Post Thanks / Like
    Rep Power
    17
    Reputation
    132
    What is it doing? Not loading or?
    Trinity C++ Event Scriptor, ArcEmu C++ Event Scriptor. I have done countless projects to entertain people, so many nostalgic moments, but the best has soon to come.

  5. #4
    Sergeant
    Mario's Avatar
    Join Date
    Feb 2009
    Location
    Under your Bed!
    Posts
    77
    Post Thanks / Like
    Rep Power
    16
    Reputation
    65
    I load script but when i want to summon it it says invalid enter id.
    OMG now i get version mismatch error on my world.exe
    Last edited by Mario; 12-02-09 at 02:30 AM.
    If i helped you somehow use that magic button!

  6. #5
    Contributor
    QQrofl's Avatar
    Join Date
    Jan 2009
    Posts
    153
    Post Thanks / Like
    Rep Power
    17
    Reputation
    132
    Version mismatch is when you don't have the right Scripts_bin with the right core. Seems like you updated your core, but not your Scripts_bin folder. It has nothing do to with the LUA script. What revision are you at?
    Trinity C++ Event Scriptor, ArcEmu C++ Event Scriptor. I have done countless projects to entertain people, so many nostalgic moments, but the best has soon to come.

  7. #6
    Sergeant
    Mario's Avatar
    Join Date
    Feb 2009
    Location
    Under your Bed!
    Posts
    77
    Post Thanks / Like
    Rep Power
    16
    Reputation
    65
    i was updating to ArcEmu_rev2170.rar - 8.5 Mb
    should i update it to new rev?
    If i helped you somehow use that magic button!

  8. #7
    Sergeant
    Mario's Avatar
    Join Date
    Feb 2009
    Location
    Under your Bed!
    Posts
    77
    Post Thanks / Like
    Rep Power
    16
    Reputation
    65
    i updated it to newest rev and still got mismatch.What with this script?
    If i helped you somehow use that magic button!

  9. #8
    Contributor
    QQrofl's Avatar
    Join Date
    Jan 2009
    Posts
    153
    Post Thanks / Like
    Rep Power
    17
    Reputation
    132
    I could get ya the new one. It's not the script, Lol. It's your script_bin (c++) files not being with the right revision.
    Trinity C++ Event Scriptor, ArcEmu C++ Event Scriptor. I have done countless projects to entertain people, so many nostalgic moments, but the best has soon to come.

  10. #9
    Sergeant
    Mario's Avatar
    Join Date
    Feb 2009
    Location
    Under your Bed!
    Posts
    77
    Post Thanks / Like
    Rep Power
    16
    Reputation
    65
    yea get me the new one pls
    If i helped you somehow use that magic button!

  11. #10
    Contributor
    shadowslayer133's Avatar
    Join Date
    Jan 2009
    Posts
    53
    Post Thanks / Like
    Rep Power
    17
    Reputation
    92

    Register to remove this ad
    unit:GossipCreateMenu(50, player, 0)
    Try that

 

 

Visitors found this page by searching for:

Nobody landed on this page from a search engine, yet!
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 09:06 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org