LUA: Understanding Gossip Menus menu

User Tag List

Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 47
  1. #31
    darkgabou15's Avatar Banned
    Reputation
    54
    Join Date
    Mar 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thank you anyway -.-

    LUA: Understanding Gossip Menus
  2. #32
    darkgabou15's Avatar Banned
    Reputation
    54
    Join Date
    Mar 2007
    Posts
    66
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I get some errors at compiling >.<
    Code:
    ------ Build started: Project: LUAScripting, Configuration: Debug Win32 ------
    Compiling...
    LUAEngine.cpp
    ..\src\luascripting\LUAEngine.cpp(1033) : error C2065: 'QUEST_EVENT_GAMEOBJECT_ACTIVATE' : undeclared identifier
    ..\src\luascripting\LUAEngine.cpp(1034) : error C2065: 'QUEST_EVENT_GAMEOBJECT_ACTIVATE' : undeclared identifier
    ..\src\luascripting\LUAEngine.cpp(1034) : error C2065: 'QUEST_EVENT_GAMEOBJECT_ACTIVATE' : undeclared identifier
    ..\src\luascripting\LUAEngine.cpp(2617) : warning C4244: 'argument' : conversion from 'const uint64' to 'lua_Integer', possible loss of data
    ..\src\luascripting\LUAEngine.cpp(3035) : warning C4244: 'argument' : conversion from 'const uint64' to 'lua_Integer', possible loss of data
    ..\src\luascripting\LUAEngine.cpp(3273) : error C2660: 'Unit::create_guardian' : function does not take 4 arguments
    ..\src\luascripting\LUAEngine.cpp(3283) : error C2039: 'isInArc' : is not a member of 'Unit'
            c:\documents and settings\acer\bureau\ascent sources 2\wow-pwnage\src\ascent-world\Unit.h(650) : see declaration of 'Unit'
    Build log was saved at "file://c:\Documents and Settings\Acer\Bureau\Ascent Sources 2\WoW-Pwnage\src\scripts\projects\2008_int_debug_LUAScripting\BuildLog.htm"
    LUAScripting - 5 error(s), 2 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

  3. #33
    merlinguy21's Avatar Member
    Reputation
    1
    Join Date
    Nov 2007
    Posts
    27
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hdfjkhasdkljgha;fjkg

  4. #34
    kajdzas's Avatar Corporal
    Reputation
    2
    Join Date
    Mar 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it don't work for me sector, can you send me your repack??? pls: [email protected]

  5. #35
    Kiyoshi's Avatar Member
    Reputation
    28
    Join Date
    Jun 2008
    Posts
    192
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would something like this work? (I just copied it from your paste bin and spaced it out, I want to see if "Remove Resurrection Sickness" would work):

    Code:
    function On_Gossip (pUnit, event, player)
    	pUnit:GossipCreateMenu(100, player)
    		pUnit:GossipMenuAddItem(player, 0, "Horde Cities", 1, 0)
    		pUnit:GossipMenuAddItem(player, 0, "Alliance Cities", 2, 0)
    		pUnit:GossipMenuAddItem(player, 0, "Remove Resurrection Sickness, 3, 0)
    	pUnit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus (pUnit, event, player, id, intid, code)
    	if(intid == 1) then
    	pUnit:GossipGossipMenuAddItem(99, player)
    	pUnit:GossipMenuAddItem(player, 5, "Orgrimmar", 10, 0)
    	pUnit:GossipMenuAddItem(player, 5, "Undercity", 11, 0)
    	pUnit:GossipMenuAddItem(player, 5, "Thunder Bluff", 12, 0)
    	pUnit:GossipMenuAddItem(player, 5, "Silvermoon", 13, 0)
    	pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    	pUnit:GossipSendMenu(player)
    end
     end
    
    if(intid == 2) then
    	pUnit:GossipCreateMenu(99, player)
    	pUnit:GossipMenuAddItem(player, 5, "Stormwind", 14, 0)
    	pUnit:GossipMenuAddItem(player, 5, "Ironforge", 15, 0)
    	pUnit:GossipMenuAddItem(player, 5, "Darnassus", 16, 0)
    	pUnit:GossipMenuAddItem(player, 5, "Exodar", 17, 0)
    	pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    	pUnit:MenuSendToPlayer(player)
    end
     end
    
    if(intid == 3) then
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    player:SendChatMessage(11, 0, "Ah FFS stop dying!")
    
    if(intid == 10) then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
     end
    
    if(intid == 11) then
    player:Teleport(0, 2050.203125, 285.650604, 56.994549)
     end
    
    if(intid == 12) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
     end
    
    if(intid == 13) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
     end
    
    if(intid == 14) then
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
     end
    
    if(intid == 15) then
    player:Teleport(0, -5028.265137, -825.976563, 495.301575)
     end
    
    if(intid == 16) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
     end
    
    if(intid == 17) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
     end
    
    RegisterGossipEvent(32000 , 1, "On_Gossip")(32000 , 2,"Gossip_Submenus")

  6. #36
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After your custom code, add an end statement.

  7. #37
    **Sweeny**'s Avatar Member
    Reputation
    33
    Join Date
    Dec 2007
    Posts
    282
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the guide, +Rep if I can O.o but should this be working?
    Code:
    function WarpNPC_On_Gossip (pUnit, event, player) 
    pUnit:GossipCreateMenu(100, player) 
    pUnit:GossipMenuAddItem(player, 0, "Horde Cities", 1, 0)
    pUnit:GossipMenuAddItem(player, 0, "Alliance Cities", 2, 0)
    pUnit:GossipMenuAddItem(player, 0, "Azeroth Instances", 3, 0)
    pUnit:GossipMenuAddItem(player, 0, "Outland Locations", 4, 0)
    pUnit:GossipMenuAddItem(player, 0, "Grubu Arena", 5, 0)
    pUnit:GossipMenuAddItem(player, 0, "Buff mez up", 6, 0)
    pUnit:GossipMenuAddItem(player, 0, "Remove Rez Sickness", 7, 0)
    pUnit::GossipSendMenu(player)
    end
    function WarpNPC_Gossip_Submenus (pUnit, event, player, id, intid, code)
    if(intid == 1) then
    pUnit:GossipGossipMenuAddItem(99, player)
    pUnit:GossipMenuAddItem(player, 5, "Orgrimmar", 10, 0)
    pUnit:GossipMenuAddItem(player, 5, "Undercity", 11, 0)
    pUnit:GossipMenuAddItem(player, 5, "Thunder Bluff", 12, 0)
    pUnit:GossipMenuAddItem(player, 5, "Silvermoon", 13, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    -- Alliance locations
    if(intid == 2) then
    pUnit:GossipCreateMenu(99, player)
    pUnit:GossipMenuAddItem(player, 5, "Stormwind", 14, 0)
    pUnit:GossipMenuAddItem(player, 5, "Ironforge", 15, 0)
    pUnit:GossipMenuAddItem(player, 5, "Darnassus", 16, 0)
    pUnit:GossipMenuAddItem(player, 5, "Exodar", 17, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    pUnit:MenuSendToPlayer(player)
    end
    -- Azeroth Instances
    if(intid == 3) then
    pUnit:GossipCreateMenu(99, player)
    pUnit:GossipMenuAddItem(player, 5, "Shadowfang", 19, 0)
    pUnit:GossipMenuAddItem(player, 5, "Zul'Gurub", 20, 0)
    pUnit:GossipMenuAddItem(player, 5, "Scarlet Monestry", 21, 0)
    pUnit:GossipMenuAddItem(player, 5, "Strat", 22, 0)
    pUnit:GossipMenuAddItem(player, 5, "Scholo", 23, 0)
    pUnit:GossipMenuAddItem(player, 5, "Blackrock", 24, 0)
    pUnit:GossipMenuAddItem(player, 5, "Onyxia's Lair", 25, 0)
    pUnit:GossipMenuAddItem(player, 5, "Molten Core", 26, 0)
    pUnit:GossipMenuAddItem(player, 5, "Kara", 27, 0)
    pUnit:GossipMenuAddItem(player, 5, "Naxx", 28, 0)
    pUnit:GossipMenuAddItem(player, 5, "Caverns Of Time, 29, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    pUnit:MenuSendToPlayer(player)
    end
    -- Outland Locations
    if(intid == 4) then
    pUnit:GossipCreateMenu(99, player)
    pUnit:GossipMenuAddItem(player, 5, "Hellfire", 30, 0
    pUnit:GossipMenuAddItem(player, 5, "Zangermarsh", 31, 0
    pUnit:GossipMenuAddItem(player, 5, "Nagrand", 32, 0
    pUnit:GossipMenuAddItem(player, 5, "Blades Edge", 33, 0
    pUnit:GossipMenuAddItem(player, 5, "Netherstorm", 34, 0
    pUnit:GossipMenuAddItem(player, 5, "terokkar Forest", 35, 0
    pUnit:GossipMenuAddItem(player, 5, "Shadowmoon Valley", 36, 0
    pUnit:GossipMenuAddItem(player, 5, "Shattrath", 37, 0
    pUnit:MenuSendToPlayer(player)
    end
    -- Grubu Arena
    if(intid == 5) then 
    pUnit:GossipCreateMenu(99, player)
    pUnit:GossipMenuAddItem(player, 5, "Grubu Arena", 38, 0)
    pUnit:MenuSendToPlayer(player)
    end
    -- Buff me up!
    if(intid == 6) then
    player:LearnSpell(27062)
    player:UnlearnSpell(27062)
    SendChatMessage(3, 0, "You have been blessed.")
    end
    -- Remove rez sickness
    if(intid == 7) then
    player:LearnSpell(15007)
    player:UnlearnSpell(15007)
    SendChatMessage(3, 0, "Sickness is now gone.")
    end
    -- Orgrimar
    if(intid == 10) then
    player:Teleport(1, 1484, -4417, 25)
    end
    -- Undercity
    if(intid == 11) then
    player:Teleport(0, 1831, 238, 60)
    end
    -- Thunder Bluff
    if(intid == 12) then
    player:Teleport(1, -1277, 118, 131)
    end
    -- Silvermoon
    if(intid == 13) then
    player:Teleport(530, 9413, -7277, 14)
    end
    --Stormwind
    if(intid == 14) then
    player:Teleport(0, -8951, 524, 96)
    end
    
    -- Ironforge
    if(intid == 15) then
    player:Teleport(0, -4981, -881, 501)
    end
    -- Darnasus
    if(intid == 16) then
    player:Teleport(1, 9948, 2413, 1327)
    end
    -- The Exodar
    if(intid == 17) then
    player:Teleport(530, -3826, 11686, -107)
    end
    
    -- Shadowfang
    if(intid == 19) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    -- Zul'Gurub
    if(intid == 20)
    player;Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    -- Scarlet Monestry
    if(intid == 21) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    -- Strat
    if(intid == 22) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
    end
    -- Scholo
    if(intid == 23) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    -- Blackrock
    if(intid == 24) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
    end
    -- Onyxia's Lair
    if(intid == 25) then
    player:Teleport(1, -4708.491699, -3727.672363, 54.535076)
    end
    -- Molton Core
    if(intid == 26) then
    player:Teleport(0, -7515.409668, -1045.369629, 182.301208)
    end
    -- Kara
    if(intid == 27) then
    player:Teleport(0, -11122.913086, -2014.498779, 47.079350)
    end
    -- Naxx
    if(intid == 28) then
    player:Teleport(0, 3132.915283, -3731.012939, 138.658371)
    end
    -- Caverns Of Time
    if(intid == 29) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    /* Outland Locations */
    if(intid == 30) then
    player:Teleport()
    end
    -- Hellfire
    if(intid == 31) then
    player:Teleport(530, -248, 922, 84)
    end
    -- Zangermarsh
    if (intid == 32) then
    player:Teleport(530, -225, 5405, 22)
    end
    -- Nagrand
    if(intid == 33) then
    player:Teleport(530, -468, 8418, 28)
    end
    -- Blades edge
    if(intid == 34) then
    player:Teleport(530, 1471, 6828, 107)
    end
    -- Netherstorm
    if(intid == 35) then
    player:Teleport(530, 3396, 4182, 137)
    end
    -- terokkar
    if(intid == 36) then
    player:Teleport(530, -1202, 5313, 33)
    end
    -- Shadowmoon Valley
    if(intid == 37) then
    player:Teleport(530, -2859, 3182, 10)
    end
    -- Shattrath
    if(intid == 38) then
    player:teleport(530, -1887, 5359, -12)
    end
    /* Grubu Arena */
    if(intid == 39) then 
    player:teleport(0, -13271, 149, 34)
    end
    RegisterGossipEvent(32000 , 1, "WarpNPC_On_Gossip")(32000 , 2,"WarpNPC_Gossip_Submenus")

  8. #38
    Koksy's Avatar Member
    Reputation
    14
    Join Date
    May 2007
    Posts
    171
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    absolutely awesome guide! Thanks a ton! Took some time to crack the numbers, but its really pretty easy when you get it

  9. #39
    miniko's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sector you are god!

    Can you make guide more "detailed" or PM me i have some things to ask

  10. #40
    miniko's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im making this for my friend, so does he have to download anything?

    Can you tell me what he have to download if he haves to ^^

    And: (0, 2050.203125, 285.650604, 56.994549) is that:

    MapID, X,Y,Z


    And shud this work?(will modify teleport location cant just now because server is down)

    function On_Gossip (pUnit, event, player)
    pUnit:GossipCreateMenu(100, player)
    pUnit:GossipMenuAddItem(player, 0, "Horde Locations", 1, 0)
    pUnit:GossipMenuAddItem(player, 0, "Alliance Locations", 2, 0)
    pUnit:GossipSendMenu(player)
    end
    function Gossip_Submenus (pUnit, event, player, id, intid, code)
    if(intid == 1) then
    pUnit:GossipGossipMenuAddItem(99, player)
    pUnit:GossipMenuAddItem(player, 5, "BG Horde-Base", 10, 0)
    pUnit:GossipMenuAddItem(player, 5, "Mall", 11, 0)
    pUnit:GossipMenuAddItem(player, 5, "Shattrat", 12, 0)
    pUnit:GossipMenuAddItem(player, 5, "Event[When we will create one]", 13, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(99, player)
    pUnit:GossipMenuAddItem(player, 5, "BG Alliance-Base", 14, 0)
    pUnit:GossipMenuAddItem(player, 5, "Mall", 15, 0)
    pUnit:GossipMenuAddItem(player, 5, "Shattrat", 16, 0)
    pUnit:GossipMenuAddItem(player, 5, "Event[When we will create one]", 17, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 50, 0)
    pUnit:MenuSendToPlayer(player)
    end
    if(intid == 10) then
    player:Teleport(1, 1371.068970, -4370.801758, 26.052483)
    end
    if(intid == 11) then
    player:Teleport(1, 5257,04, -2167,99, 1259,4)
    end
    if(intid == 12) then
    player:Teleport(1, -1304.569946, 205.285004, 68.681396)
    end
    if(intid == 13) then
    player:Teleport(530, 9400.486328, -7278.376953, 14.206780)
    end
    if(intid == 14) then
    player:Teleport(0, -9100.480469, 406.950745, 92.594185)
    endif
    (intid == 15) then
    player:Teleport(1, 5257,04, -2167,99, 1259,4)
    end
    if(intid == 16) then
    player:Teleport(1, 9985.907227, 1971.155640, 1326.815674)
    end
    if(intid == 17) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    end
    RegisterGossipEvent(32000 , 1, "On_Gossip")(32000 , 2,"Gossip_Submenus")

    Note: Sorry my BAD english
    Last edited by miniko; 07-07-2008 at 05:46 PM.

  11. #41
    AixCrasher's Avatar Member
    Reputation
    2
    Join Date
    Jun 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi body, im spanish, so sorry mi bad english!, i got a problem!, i made this:

    function Anunciador_Player_Enters_Range (pUnit, Event)
    pUnit:SendChatMessage(0, 0, "Hola soy un robot")
    end
    RegisterUnitEvent (120000, 10, "Anunciador_Player_Enters_Range")

    But, when i enter in the game, i spawn the npc number 120000, and appears, but, they didnt come to me when i enter in the player area, and he never speak, and nothing, is just a useles npc standing. Can u please help me?

    Thank u so much!

  12. #42
    Emuchild's Avatar Member
    Reputation
    56
    Join Date
    Oct 2007
    Posts
    311
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome guide!! +REP
    Last edited by Emuchild; 07-11-2008 at 10:10 PM.
    Tired of proxies not working or timing out?
    TEST THEM BEFORE YOU USE THEM!
    https://www.mmowned.com/forums/general-programs/246775-testmyproxies.html :wave:

  13. #43
    miniko's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    21
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is this theard totaly dead?!

  14. #44
    Ezikielth's Avatar Banned
    Reputation
    43
    Join Date
    Aug 2007
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Useful but for some reason people tend to use C++ for this field of work

  15. #45
    Exacute's Avatar Active Member
    Reputation
    67
    Join Date
    Mar 2008
    Posts
    337
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have some problems with using it, any chance for u can send a repack with initalized C++.. mine make errors in it :P
    [/COLOR]

Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. [Lua Script] Lua NPC Gossip Checklist
    By iindigo in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 06-18-2010, 09:04 PM
  2. [Lua Script] LUA item gossip help
    By naturaunglosar in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 05-26-2010, 02:14 AM
  3. [Lua] Gossip Dropdown Menus
    By Dynashock in forum WoW EMU Guides & Tutorials
    Replies: 9
    Last Post: 03-23-2010, 05:09 PM
  4. [ArcEmu 3.3.2][lua] Vendor gossip question and going beyond 80?
    By xyrusazabi in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 03-13-2010, 02:43 PM
  5. Unit Event Lua Question (Gossip Talk)
    By moongo in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-22-2008, 07:49 PM
All times are GMT -5. The time now is 09:49 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