[Service] Doing LUA requests menu

User Tag List

Page 4 of 11 FirstFirst 12345678 ... LastLast
Results 46 to 60 of 154
  1. #46
    kaothic's Avatar Member
    Reputation
    7
    Join Date
    Oct 2007
    Posts
    167
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx Snailz, and performer what is the link of the svn? Is compatible with 834+ arcemu rev?

    Only simple things make me feel alive...

    [Service] Doing LUA requests
  2. #47
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A teleporter NPC that is an actual teleporter NPC.

    Not some teleporter npc that will teleport you to cities and thats it. What i'm talking about is a teleporter NPC with all Kalimdor, Eastern Kingdoms and Outland locations organized into 3 menus.

  3. #48
    Wheeze201's Avatar Active Member
    Reputation
    51
    Join Date
    Apr 2007
    Posts
    660
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And uhmm.. LUA++ isn't exactly dead. I got it working on the latest rev.

    Somebody made sun++ compilable files that had lua++ intergated. Tried it and LUA scripts who claim to be lua++ worked perfectly.

  4. #49
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't double post!
    Use the "edit" button!

  5. #50
    yowler's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Performer View Post
    Ill do that Teleporter for you if you like.
    I fixed a teleporter script. you would need LUA ++ patch though

    Not trying to steal your work or anything

    If your going to rep. rep babbaa

    Code:
    /*TeleporterNPC Script Fixed By Performer Of MMOwned.com.
    May not be re-released or used in other releases without asking Performer.
    Credits to Sabens for the original script. Credits to SectorSeven for the guide.*/
    
    function warp_on_gossip_talk(pUnit, event, player)
    pUnit:GossipCreateMenu(3543, player)
    pUnit:GossipMenuAddItem(player, 0, "Horde cities", 1, 0)
    pUnit:GossipMenuAddItem(player, 0, "Alliance cities", 2, 0)
    pUnit:GossipMenuAddItem(player, 0, "Azeroth Instances", 5, 0)
    pUnit:GossipMenuAddItem(player, 0, "Outland Instances", 6, 0)
    pUnit:GossipMenuAddItem(player, 5, "Alliance Mall", 180, 0)
    pUnit:GossipMenuAddItem(player, 5, "Horde Mall", 181, 0)
    pUnit:GossipMenuAddItem(player, 5, "Shattrath", 51, 0)
    pUnit:GossipSendMenu(player)
    end
    function warp_on_gossip_select(pUnit, event, player, id, intid, code)
    if(intid == 1) then
    pUnit:GossipCreateMenu(3542, player)
    pUnit:GossipMenuAddItem(player, 5, "Orgrimmar", 9, 0)
    pUnit:GossipMenuAddItem(player, 5, "Undercity", 10, 0)
    pUnit:GossipMenuAddItem(player, 5, "Thunder Bluff", 11, 0)
    pUnit:GossipMenuAddItem(player, 5, "Silvermoon City", 12, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(3542, 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, "The Exodar", 17, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 5) then
    pUnit:GossipCreateMenu(3542, player)
    pUnit:GossipMenuAddItem(player, 0, "Azeroth Raids", 3, 0)
    pUnit:GossipMenuAddItem(player, 5, "Shadowfang Keep", 19, 0)
    pUnit:GossipMenuAddItem(player, 5, "Scarlet Monastery", 20, 0)
    pUnit:GossipMenuAddItem(player, 5, "Zul'Farrak", 21, 0)
    pUnit:GossipMenuAddItem(player, 5, "Stratholme", 22, 0)
    pUnit:GossipMenuAddItem(player, 5, "Scholomance", 23, 0)
    pUnit:GossipMenuAddItem(player, 5, "Ragefire", 110, 0)
    pUnit:GossipMenuAddItem(player, 5, "Deathmines", 170, 0)
    pUnit:GossipMenuAddItem(player, 5, "Wailing Caverns", 111,0)
    pUnit:GossipMenuAddItem(player, 5, "Blackfathom Depths", 112, 0)
    pUnit:GossipMenuAddItem(player, 5, "The Stockades", 113,0)
    pUnit:GossipMenuAddItem(player, 5, "Gnomeregan", 114, 0)
    pUnit:GossipMenuAddItem(player, 5, "Razorfen Kraul", 115, 0)
    pUnit:GossipMenuAddItem(player, 5, "Razorfen Downs", 116, 0)
    pUnit:GossipMenuAddItem(player, 5, "Uldaman", 117, 0)
    pUnit:GossipMenuAddItem(player, 5, "Maraudon", 118, 0)
    pUnit:GossipMenuAddItem(player, 5, "Sunken temple", 119, 0)
    pUnit:GossipMenuAddItem(player, 5, "Lower Blackrock", 120, 0)
    pUnit:GossipMenuAddItem(player, 5, "Dire Maul", 121, 0)
    pUnit:GossipMenuAddItem(player, 5, "Upper Blackrock", 122, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 100, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    pUnit:GossipCreateMenu(3542, player)
    pUnit:GossipMenuAddItem(player, 5, "Onyxias Lair", 39, 0)
    pUnit:GossipMenuAddItem(player, 5, "Molten Core", 40, 0)
    pUnit:GossipMenuAddItem(player, 5, "Blackwing Lair", 123, 0)
    pUnit:GossipMenuAddItem(player, 5, "Zul'Gurub", 41, 0)
    pUnit:GossipMenuAddItem(player, 5, "Karazhan", 42, 0)
    pUnit:GossipMenuAddItem(player, 5, "Ruins of Ahn'Qiraj", 43, 0)
    pUnit:GossipMenuAddItem(player, 5, "Temple of Ahn'Qiraj", 44, 0)
    pUnit:GossipMenuAddItem(player, 5, "Naxxramas", 45, 0)
    pUnit:GossipMenuAddItem(player, 5, "Zul'Aman", 124, 0)
    pUnit:GossipMenuAddItem(player, 5, "[Back]", 100, 0)
    pUnit: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
    if(intid == 17) then
    player:Teleport(530, -4072.202393, -12014.337891, -1.277277)
    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 == 51) then
    player:Teleport(530, -1887.510010, 5359.379883, -12.427300)
    end
    if(intid == 19) then
    player:Teleport(0, -234.495087, 1561.946411, 76.892143)
    end
    if(intid == 20) then
    player:Teleport(0, 2870.442627, -819.985229, 160.331085)
    end
    if(intid == 21) then
    player:Teleport(1, -6797.278809, -2903.917969, 9.953360)
    end
    if(intid == 41) then
    player:Teleport(0, -11919.073242, -1202.459374, 92.298744)
    end
    if(intid == 43) then
    player:Teleport(1, -8394.730469, 1485.658447, 21.038563)
    end
    if(intid == 44) then
    player:Teleport(1, -8247.316406, 1970.156860, 129.071472)
    end
    if(intid == 40) then
    player:Teleport(409, 1089.6, -470.19, -106.41)
    end
    if(intid == 39) then
    player:Teleport(1, -4746, -3749, -4.0)
    end
    if(intid == 45) then
    player:Teleport(533, 3006.06, -3436.72, 293.891)
    end
    if(intid == 23) then
    player:Teleport(0, 1267.468628, -2556.651367, 94.127983)
    end
    if(intid == 24) then
    player:Teleport(0, 3359.111572, -3380.8444238, 144.781860)
    end
    if(intid == 38) then
    player:Teleport(0, -7527.129883, -1224.997437, 285.733002)
    end
    if(intid == 42) then
    player:Teleport(532, -11087.3, -1977.47, 49.6135)
    end
    if(intid == 52) then
    player:Teleport(1, -8519.718750, -4297.542480, -208.441376)
    end
    if(intid == 25) then
    player:Teleport(530, -360.670990, 3071.899902, -15.097700)
    end
    if(intid == 26) then
    player:Teleport(530, -303.506012, 3164.820068, 31.742500)
    end
    if(intid == 27) then
    player:Teleport(530, -311.083527, 3083.291748, -3.745923)
    end
    if(intid == 28) then
    player:Teleport(530, 777.088989, 6763.450195, -72.062561)
    end
    if(intid == 29) then
    player:Teleport(530, 719.507996, 6999.339844, -73.074303)
    end
    if(intid == 30) then
    player:Teleport(530, 816.590027, 6934.669922, -80.544601)
    end
    if(intid == 31) then
    player:Teleport(530, -3079.810059, 4943.040039, -101.046997)
    end
    if(intid == 32) then
    player:Teleport(530, -3361.959961, 5225.770020, -101.047997)
    end
    if(intid == 33) then
    player:Teleport(530, -3362.219971, 4660.410156, -101.049004)
    end
    if(intid == 34) then
    player:Teleport(530, -3645.060059, 4943.620117, -101.047997)
    end
    if(intid == 35) then
    player:Teleport(530, 2862.409912, 1546.089966, 252.158691)
    end
    if(intid == 36) then
    player:Teleport(530, 3413.649902, 1483.319946, 182.837997)
    end
    if(intid == 37) then
    player:Teleport(530, 3311.598145, 1332.745117, 505.557251)
    end
    if(intid == 46) then
    player:Teleport(530, -313.678986, 3088.350098, -116.501999)
    end
    if(intid == 47) then
    player:Teleport(530, 830.542908, 6865.445801, -63.785503)
    end
    if(intid == 48) then
    player:Teleport(530, 3549.424072, 5179.854004, -4.430779)
    end
    if(intid == 49) then
    player:Teleport(530, 3087.310059, 1373.790039, 184.643005)
    end
    if(intid == 50) then
    player:Teleport(530, -3609.739990, 328.252014, 37.307701)
    end
    if(intid == 124) then
    player:Teleport(530, 6850, -7950, 170)
    end
    if(intid == 136) then
    player:Teleport(0, -13152.9, 342.729, 53.1328)
    end
    if(intid == 110) then
    player:Teleport(389, 1.7849, -14.3685, -16.5533)
    end
    if(intid == 111) then
    player:Teleport(1, -746.207, -2213.18, 15.8909)
    end
    if(intid == 112) then
    player:Teleport(48, -152.984, 106.33, -39.0953)
    end
    if(intid == 113) then
    player:Teleport(0, -8776.78, 836.753, 93.1946)
    end
    if(intid == 114) then
    player:Teleport(0, -5189.22, 524.796, 389.107)
    end
    if(intid == 115) then
    player:Teleport(1, -4464.92, -1666.24, 91)
    end
    if(intid == 116) then
    player:Teleport(129, 2591.99, 1101.25, 52.8593)
    end
    if(intid == 117) then
    player:Teleport(70, -228.193, 46.1602, -45.0186)
    end
    if(intid == 118) then
    player:Teleport(349, 419.84, 11.3365, -131.079)
    end
    if(intid == 119) then
    player:Teleport(0, -10349.1, -3849.67, -24.6078)
    end
    if(intid == 120) then
    player:Teleport(230, 596.432, -188.498, -49)
    end
    if(intid == 121) then
    player:Teleport(429, 254.588, -24.7395, -1.56062)
    end
    if(intid == 122) then
    player:Teleport(229, 73.5083, -215.044, 53.3869)
    end
    if(intid == 123) then
    player:Teleport(469, -7665.55, -1102.49, 400.679)
    end
    if(intid == 170) then
    player:Teleport(0, -11079.8, 1506.98, 42.9594)
    end
    if(intid == 180) then
    player:Teleport(0, -8288.58, 1166.03, 164.839)
    end
    if(intid == 181) then
    player:Teleport(1, -1183.64, -1364.91, 394.604)
    end
    intid = 0
    end
    
    RegisterUnitGossipEvent(ENTRYID , 1, "warp_on_gossip_talk")
    RegisterUnitGossipEvent(ENTRYID , 2, "warp_on_gossip_select")

    Hey,
    I'm trying to make this script to work, but I keep getting this error:

    scripts/gossip2.lua:6: bad argument #2 to 'GossipCreateMenu' (number expected, got no value)

    Might this be an issue to lua++? i'm not sure if my lua is an actual lua++, i'm running the latest version of arcemu, and this what returns lua -v:

    Lua 5.1.3 Copyright (C) 1994-2008 Lua.org, PUC-Rio

    Forgive me if i'm missing anything, I also tried to follow the guide in luaplusplus.org on upgrading to lua++ but its way too outdated.

    thanks

  6. #51
    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)
    pUnit:GossipMenuAddItem(player, 0, "Outland Instances", 6, 0)
    The error is, that there arent a menu for outland instances with the number 6^^.. i think


    --------------------------------------------------------------------------------------------------

    Babaa are u soon done with my request? XD
    Last edited by Exacute; 08-30-2008 at 09:04 AM.
    [/COLOR]

  7. #52
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    pUnit:GossipCreateMenu(3543, player, 0)
    Put in a 0. I think it will work

  8. #53
    AndreasG7's Avatar Member
    Reputation
    10
    Join Date
    Dec 2007
    Posts
    143
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Name: Kill you

    Idea: You talk to this npc and he makes you fly in the air and die. ( this is a good idea because im gonna name the npc FREE GOLD AND ITEMS so noobs will click him and die :P )

    Functions: Spell casting

  9. #54
    computerwiz656's Avatar Member
    Reputation
    14
    Join Date
    Mar 2008
    Posts
    39
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    GMIsland

    Kicks gm lvl 0 players from gmisland bringing them to there home city, putting a stun debuff and muting there account.

    function a trigger either the invisible lighthouse or the mailbox if they get within range of it which is on the island the counter will start will also report on staff channel of the event

    Thanks a bunch
    ^_^
    Last edited by computerwiz656; 09-01-2008 at 03:20 AM. Reason: spelling

  10. #55
    yowler's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sounddead View Post
    Code:
    pUnit:GossipCreateMenu(3543, player, 0)
    Put in a 0. I think it will work
    That fixed it, thanks a bunch, but now I get this error:
    scripts/gossip2.lua:7: calling 'GossipMenuAddItem' on bad self (number expected, got userdata)

    If possible can someone create a very small & basic gossip npc? As it seems there's a lot of changes and the values are incorrect.

    thanks

  11. #56
    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)
    Originally Posted by Exacute View Post
    The error is, that there arent a menu for outland instances with the number 6^^.. i think


    --------------------------------------------------------------------------------------------------

    Babaa are u soon done with my request? XD
    i repeat myself^^
    [/COLOR]

  12. #57
    Bloodrazer1876's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    23
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    from what i can gather .LUA files are for adding functions, mob scrypts (mobs use their intended skills and spells) and various other things....

    My question is..... is there a list of .LUA's I can copy and use to fix things like Kael'thas encounter, illidan Encounter, or just any boss fight.
    maby a web site or database with .LUA's for every mob and every boss to fix their behaviors to be like a retail server.

    Or possable alter them to change the boss fights?

    ??????????

    my first priority is to fix boss fights to be (Blizlike)
    Last edited by Bloodrazer1876; 09-02-2008 at 04:38 AM.

  13. #58
    yowler's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Exacute View Post
    i repeat myself^^
    thats not the error, I alredy commented the whole line for Outland instance, but anyway its comming from a line before outland instances, meaning there's an error on the syntax.

  14. #59
    yowler's Avatar Member
    Reputation
    1
    Join Date
    Apr 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edit posts wont work , dunno why..
    So, I fixed my issue above, I had to remove on every GossipMenuAddItem the 'player'.In case someone has the same issue, this might help.

  15. #60
    whee's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello, I'm looking for something similar to Emiloz request.

    Name: Level NPC

    Idea: Gives you to level X

    Functions: Gives you level 19, 29, 39, 49, 59, 60, 70

    I found a LUA script posted by darune94 but I don't understand LUA that well to configure it.

    Code:
    local npcid = 123456---change to the npcs ids
    
    function NPC_main_menu(pUnit, player)
       pUnit:GossipCreateMenu(3543, player, 0)
       pUnit:GossipMenuAddItem(0, "Make me level 70", 1, 0)           
       pUnit:GossipSendMenu(player)
    end
    function NPC_on_gossip_talk(pUnit, event, player)
       NPC_main_menu(pUnit, player)
    end
     function NPC_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
     if(intid == 1) then 
     pUnit:SendChatMessage(12, 0, "Happy raiding")
     player:SetPlayerLevel(70) ----can change to whatever level 
     player:GossipComplete()
     end
    end
    RegisterUnitGossipEvent(npcid, 1, "NPC_on_gossip_talk") 
    RegisterUnitGossipEvent(npcid, 2, "NPC_on_gossip_select")
    Thanks in advance!

Page 4 of 11 FirstFirst 12345678 ... LastLast

Similar Threads

  1. [Selling] Level and Gearing Service. Also doing other requests.
    By ali0ne in forum World of Warcraft Buy Sell Trade
    Replies: 1
    Last Post: 09-06-2014, 02:03 PM
  2. [Service] Doing Dailies for free!
    By Job For a Cowboy in forum Members Only Gold And Powerleveling Buy Sell
    Replies: 6
    Last Post: 06-27-2008, 02:22 AM
  3. [Service] Avatar/Sig requests
    By Sixen in forum Art & Graphic Design
    Replies: 0
    Last Post: 05-08-2008, 08:28 PM
  4. [Service] Bapes LUA Scripting Shop
    By Bapes in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 04-22-2008, 09:06 PM
  5. Doing (simple) requests!
    By warsheep in forum Programming
    Replies: 2
    Last Post: 03-09-2008, 05:57 PM
All times are GMT -5. The time now is 02:24 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