[Lua] Gossip Script menu

Shout-Out

User Tag List

Results 1 to 10 of 10
  1. #1
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Lua] Gossip Script

    Code:
    function warp_on_gossip_talk (unit, event, player)
    unit:GossipCreateMenu(3543, player)
    unit:GossipMenuAddItem(player, 0, "Home", 1, 0)
    unit:GossipMenuAddItem(player, 0, "Here", 2, 0)
    unit:GossipMenuAddItem(player, 0, "mmowned", 3, 0)
    unit:GossipSendMenu(player)
    end
    
    function warp_on_gossip_select(unit, event, player, id, intid, code)
    
    if(intid == 1) then
    player:Teleport(0, 1, 2, 3)
    end
    
    if(intid == 2) then
    player:Teleport(1, 2, 3, 4)
    end
    
    if(intid == 3) then
    player:Teleport(2, 3, 4, 5)
    end
    
    intid = 0
    end
    
    RegisterGossipEvent(85001, 1, "warp_on_gossip_talk")
    RegisterGossipEvent(85002 , 2, "warp_on_gossip_select")
    Alright I always get

    attempt to call global 'RegisterEvent' <a nil value>

    Help please
    ahhhh

    [Lua] Gossip Script
  2. #2
    Juicyz's Avatar Active Member
    Reputation
    34
    Join Date
    Dec 2006
    Posts
    298
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if(intid == 1) then
    player:Teleport(0, 1, 2, 3)
    end

    if(intid == 2) then
    player:Teleport(1, 2, 3, 4)
    end

    if(intid == 3) then
    player:Teleport(2, 3, 4, 5)
    Im pretty sure U need to clearify the Teleport Numbers.

    DA Gift From Mr. Blain

  3. #3
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Juicyz, not realy... He got that script from me (like a test one). And this worked for me for a week ago, without any problem.

    Could it be that you got a space after the entry ID here?
    RegisterGossipEvent(85002 , 2, "warp_on_gossip_select")Test with removing it =P

  4. #4
    Juicyz's Avatar Active Member
    Reputation
    34
    Join Date
    Dec 2006
    Posts
    298
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ;p; How does the script know what those numbers mean, if you didnt tell ascent what they are.

    DA Gift From Mr. Blain

  5. #5
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I might as well just throw this out here. But.... But do you have LUA++ enabled in your ascent or compile?



  6. #6
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check this and see if it works

    Originally Posted by Juicyz View Post
    U needed some " " around Mob _OnEnterCombat at the very end
    also U need RegisterUnitEvent
    OnEnterCombat(Unit), U need pUnit.
    Everything should be fine now.
    I fixed the script for you.

    Enjoy
    that script is from my mob though so check yours as the model above

  7. #7
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes I have Lua++. Ok so this is really stupid every script that has registergossipevent does not work.

    I have updated Arcemu 5 times.
    I have upadted Lua++ (Can you tell me the SVN so I know I have the right one)
    I have made sure every thing should work....but it wont!
    ahhhh

  8. #8
    Strupantwn's Avatar Contributor
    Reputation
    115
    Join Date
    Apr 2007
    Posts
    1,045
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    okay my script was originally like this
    Code:
    function Mob_Cleave(pUnit)
    pUnit:CastSpell(25231)
    pUnit:SendChatMessage(12, 0, "Disgusting peasants!")
    end
    
    function Mob_OnEnterCombat(unit)
    pUnit:SendChatMessage(12, 0, "How'd you find us!")
    pUnit:RegisterEvent("Mob_Spell1",10000, 0)
    end
    RegisterEvent(444005,1,Mob_OnEnterCombat)
    changed to this
    Code:
    function Mob_Cleave(pUnit)
    pUnit:CastSpell(25231)
    pUnit:SendChatMessage(12, 0, "Disgusting peasants!")
    end
     
    function Mob_OnEnterCombat(pUnit)
    pUnit:SendChatMessage(12, 0, "How'd you find us!")
    pUnit:RegisterEvent("Mob_Spell1",10000, 0)
     
    RegisterUnitEvent(444005,1,"Mob_OnEnterCombat")
    hope it helps


    EDIT: nvm i just saw your script its werid and i have no idea lol, tried =/
    Last edited by Strupantwn; 06-16-2008 at 09:55 PM.

  9. #9
    LJN's Avatar Member
    Reputation
    273
    Join Date
    Jun 2007
    Posts
    731
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope still dident work.
    ahhhh

  10. #10
    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)
    RegisterGossipEvent(85001, 1, "warp_on_gossip_talk")
    RegisterGossipEvent(85002 , 2, "warp_on_gossip_select")
    Change to this:
    RegisterUnitGossipEvent(npcid, 1, "warp_on_gossip_talk")
    RegisterUnitGossipEvent(npcid, 2, "warp_on_gossip_select")
    my Register:

    RegisterUnitGossipEvent(1111111, 1, "OnGossip")
    RegisterUnitGossipEvent(1111111, 2, "Submenus")
    Last edited by kajdzas; 07-20-2008 at 05:07 AM.

Similar Threads

  1. [Lua] Adding a cooldown to your gossip script
    By Dynashock in forum WoW EMU Guides & Tutorials
    Replies: 4
    Last Post: 09-17-2010, 11:15 PM
  2. [Lua Script] Need help with this lua gossip script
    By diviee3 in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-21-2010, 07:52 PM
  3. [share] mini-tut on gossip scripts lua
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-29-2008, 05:11 AM
  4. Gossip scripting guide!
    By Le Froid in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-13-2007, 05:06 PM
  5. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
All times are GMT -5. The time now is 03:50 AM. 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