gossip error menu

Shout-Out

User Tag List

Thread: gossip error

Results 1 to 10 of 10
  1. #1
    booster140's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    gossip error

    Hello
    I've made a teleporter before in lua, which works

    this script will be used on npcs that are scattered in my maze, to return lost/giveup players
    although it gives this in arcemu-world:

    '<eof>' expected near 'end'

    Never seen this error.
    script:

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(50, player, 0)
    unit:GossipMenuAddItem(0, "Get me out of here!", 66, 0)
    unit:GossipSendMenu(player)
    unit:SendChatMessage(12, 0, "Are you lost?")
    end
    
    
    if(intid == 66) then --maze starting place
    player:Teleport(169, -3467.147461, -2422.540527, 126.911583)
    end
    end
    
    
    RegisterUnitGossipEvent(100013, 1, "On_Gossip")

    Thank you

    gossip error
  2. #2
    spykid19780123's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well, theres a couple errors! It should look like this

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(50, player, 0)
    unit:GossipMenuAddItem(0, "Get me out of here!", 66, 0)
    unit:GossipSendMenu(player)
    unit:SendChatMessage(12, 0, "Are you lost?")
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 66) then --maze starting place
    player:Teleport(169, -3467.147461, -2422.540527, 126.911583)
    unit:GossipComplete(player)
    end
    end
    
    
    RegisterUnitGossipEvent(100013, 1, "On_Gossip")
    RegisterUnitGossipEvent(100013, 1, "Gossip_Submenus")

  3. #3
    booster140's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I did that, but ingame my teleporter (id55555) runs this script instead of it's warpnpc script
    the gnome (id 100013) does nothing.

  4. #4
    spykid19780123's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by booster140 View Post
    I did that, but ingame my teleporter (id55555) runs this script instead of it's warpnpc script
    the gnome (id 100013) does nothing.
    Well, I'm not exactly sure why that is happening, try and take out your warp npc script, and only use this one, and if that works with the gnome, change the id of the teleporter back. Can you also include your sql lines for the two teleporters and include the second script?

  5. #5
    booster140's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    my gnome npc wasn't flagged for gossip, it is now and it works
    but my warpnpc also uses the gnome lua :s

    the warpnpc was already in my DB

    tried putting the warpnpc lua onto another npc that i created myself, but he also uses the gnome script

    really odd
    Last edited by booster140; 05-19-2010 at 07:10 AM.

  6. #6
    spykid19780123's Avatar Member
    Reputation
    1
    Join Date
    Oct 2007
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by booster140 View Post
    my gnome npc wasn't flagged for gossip, it is now and it works
    but my warpnpc also uses the gnome lua :s

    the warpnpc was already in my DB

    tried putting the warpnpc lua onto another npc that i created myself, but he also uses the gnome script

    really odd
    My Suggestion: Remake the NPC again, and set it to a different id. +Rep if this helped =D

  7. #7
    pantryboy's Avatar Member
    Reputation
    44
    Join Date
    Sep 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spykid19780123 View Post
    My Suggestion: Remake the NPC again, and set it to a different id. +Rep if this helped =D
    Don't ask for rep.

    Furthermore, the second RegisterUnitGossipEvent's second argument should be 2 not 1.


    Code:
    function On_Gossip(unit, event, player)
    	unit:GossipCreateMenu(50, player, 0)
    	unit:GossipMenuAddItem(0, "Get me out of here!", 66, 0)
    	unit:GossipMenuAddItem(0, "Never mind.", 67, 0) -- If we don't do this, it automatically clicks 'Get me out of here!'.
    	unit:GossipSendMenu(player)
    	unit:SendChatMessage(12, 0, "Are you lost?")
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    	if(intid == 66) then --maze starting place
    		player:Teleport(169, -3467.147461, -2422.540527, 126.911583)
    		unit:GossipComplete(player)
    	elseif intid == 67 then
    		unit:GossipComplete();
    	end
    end
    
    
    RegisterUnitGossipEvent(100013, 1, "On_Gossip")
    RegisterUnitGossipEvent(100013, 2, "Gossip_Submenus")

  8. #8
    booster140's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    pantryboy, tried that script, the gnome works but my warpnpc also uses it
    skykid, tried recreating the gnome and putting the warpnpc script onto another npc, didn't work

    for some reason whenever the gnome script works my warpnpc also uses it


    UPDATE: got them both working with this script:

    Code:
    function gnome_On_Gossip(unit, event, player)
    	unit:GossipCreateMenu(50, player, 0)
    	unit:GossipMenuAddItem(0, "Get me out of here!", 66, 0)
    	unit:GossipMenuAddItem(0, "Never mind.", 67, 0)
    	unit:GossipSendMenu(player)
    	unit:SendChatMessage(12, 0, "Are you lost?")
    end
    
    function gnome_Gossip_Submenus(unit, event, player, id, intid, code)
    end
    
    	if(intid == 66) then --maze starting place
    		player:Teleport(169, -3467.147461, -2422.540527, 126.911583)
    		unit:GossipComplete(player)
    	else  if intid == 67 then
    		unit:GossipComplete();
    	end
    end
    
    
    RegisterUnitGossipEvent(100013, 1, "gnome_On_Gossip")
    RegisterUnitGossipEvent(100013, 2, "gnome_Gossip_Submenus")
    +rep both, thanks
    Last edited by booster140; 05-20-2010 at 03:37 AM.

  9. #9
    pantryboy's Avatar Member
    Reputation
    44
    Join Date
    Sep 2008
    Posts
    99
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by booster140 View Post
    pantryboy, tried that script, the gnome works but my warpnpc also uses it
    skykid, tried recreating the gnome and putting the warpnpc script onto another npc, didn't work

    for some reason whenever the gnome script works my warpnpc also uses it


    UPDATE: got them both working with this script:

    Code:
    function gnome_On_Gossip(unit, event, player)
    	unit:GossipCreateMenu(50, player, 0)
    	unit:GossipMenuAddItem(0, "Get me out of here!", 66, 0)
    	unit:GossipMenuAddItem(0, "Never mind.", 67, 0)
    	unit:GossipSendMenu(player)
    	unit:SendChatMessage(12, 0, "Are you lost?")
    end
    
    function gnome_Gossip_Submenus(unit, event, player, id, intid, code)
    end
    
    	if(intid == 66) then --maze starting place
    		player:Teleport(169, -3467.147461, -2422.540527, 126.911583)
    		unit:GossipComplete(player)
    	elseif intid == 67 then
    		unit:GossipComplete();
    	end
    end
    
    
    RegisterUnitGossipEvent(100013, 1, "gnome_On_Gossip")
    RegisterUnitGossipEvent(100013, 2, "gnome_Gossip_Submenus")
    +rep both, thanks
    You're welcome, but remove the 'end' in front of the submenu function, like so...

    Code:
    function gnome_On_Gossip(unit, event, player)
    	unit:GossipCreateMenu(50, player, 0)
    	unit:GossipMenuAddItem(0, "Get me out of here!", 66, 0)
    	unit:GossipMenuAddItem(0, "Never mind.", 67, 0)
    	unit:GossipSendMenu(player)
    	unit:SendChatMessage(12, 0, "Are you lost?")
    end
    
    function gnome_Gossip_Submenus(unit, event, player, id, intid, code)
    	if(intid == 66) then --maze starting place
    		player:Teleport(169, -3467.147461, -2422.540527, 126.911583)
    		unit:GossipComplete(player)
    	else  if intid == 67 then
    		unit:GossipComplete();
    	end
    end
    
    
    RegisterUnitGossipEvent(100013, 1, "gnome_On_Gossip")
    RegisterUnitGossipEvent(100013, 2, "gnome_Gossip_Submenus")

  10. #10
    booster140's Avatar Member
    Reputation
    1
    Join Date
    Apr 2009
    Posts
    8
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    when i use your script it doesn't load in arcemu-world

    'end' expected <to close 'function' at line 10 near <eof>

Similar Threads

  1. [MaNGOS] Gossip Menu Text Errors
    By blukkiee in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 04-02-2010, 04:15 PM
  2. glider error :(
    By Ced in forum World of Warcraft General
    Replies: 2
    Last Post: 07-13-2006, 01:02 PM
  3. WoW Emu error
    By bezike in forum World of Warcraft General
    Replies: 1
    Last Post: 06-28-2006, 03:18 PM
  4. Site Error?
    By Amedis in forum Community Chat
    Replies: 8
    Last Post: 06-21-2006, 08:31 AM
  5. Error in checking WoW.exe CRC code hack?
    By Trichelieu in forum World of Warcraft General
    Replies: 0
    Last Post: 06-11-2006, 02:24 PM
All times are GMT -5. The time now is 12:38 PM. 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