Icc teleporter error in world.exe <eof> expected near 'end' menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    batatamas's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Icc teleporter error in world.exe <eof> expected near 'end'

    I dont know what to do,pls help

    local npcid = 99285

    function Teleport_main_menu(pUnit, player)
    end

    pUnit:GossipCreateMenu(3544, player, 0)
    pUnit:GossipMenuAddItem(2, "Teleport Up", 1, 0)

    pUnit:GossipSendMenu(player)
    end

    function Teleport_on_gossip_talk(pUnit, event, player)
    Teleport_main_menu(pUnit, player)
    end

    function Teleport_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)

    if(intid == 1) then
    player:Teleport(631, -624.118225, 2210.623291, 199.970474) --Icecrown Citadel
    end

    end

    RegisterUnitGossipEvent(99285, 1, "Teleport_on_gossip_talk")
    RegisterUnitGossipEvent(99285, 2, "Teleport_on_gossip_select")

    Icc teleporter error in world.exe &lt;eof&gt; expected near 'end'
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Please use
    Code:
    code
    boxes in future.

    The error is telling you the ends are done wrong, in this case you put a end straight after the function but when you don't want to end it. Here is the fixed code:

    Code:
    local npcid = 99285
     
    function Teleport_main_menu(pUnit, player)
    pUnit:GossipCreateMenu(3544, player, 0)
        pUnit:GossipMenuAddItem(2, "Teleport Up", 1, 0)
        pUnit:GossipSendMenu(player)
    end
     
    function Teleport_on_gossip_talk(pUnit, event, player)
    Teleport_main_menu(pUnit, player)
    end
    
    function Teleport_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
          player:Teleport(631, -624.118225, 2210.623291, 199.970474) --Icecrown Citadel
    end
    end
     
    RegisterUnitGossipEvent(99285, 1, "Teleport_on_gossip_talk") 
    RegisterUnitGossipEvent(99285, 2, "Teleport_on_gossip_select")

  3. #3
    batatamas's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ty alot...^^

  4. #4
    batatamas's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by stoneharry View Post
    Please use
    Code:
    code
    boxes in future.

    The error is telling you the ends are done wrong, in this case you put a end straight after the function but when you don't want to end it. Here is the fixed code:

    Code:
    local npcid = 99285
     
    function Teleport_main_menu(pUnit, player)
    pUnit:GossipCreateMenu(3544, player, 0)
        pUnit:GossipMenuAddItem(2, "Teleport Up", 1, 0)
        pUnit:GossipSendMenu(player)
    end
     
    function Teleport_on_gossip_talk(pUnit, event, player)
    Teleport_main_menu(pUnit, player)
    end
    
    function Teleport_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
          player:Teleport(631, -624.118225, 2210.623291, 199.970474) --Icecrown Citadel
    end
    end
     
    RegisterUnitGossipEvent(99285, 1, "Teleport_on_gossip_talk") 
    RegisterUnitGossipEvent(99285, 2, "Teleport_on_gossip_select")
    i dont know why but i become to see my world teleporter items not that teleport up

  5. #5
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The main menu function hasn't been registered.

    Didn't read it properly, my mistake
    Last edited by Facerolling; 01-16-2011 at 06:08 PM.
    hey ervyone whats up gamboys

  6. #6
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Minisword View Post
    The main menu function hasn't been registered.
    It has.

    Try this:

    Code:
    local npcid = 99285
     
    function Teleport_main_menu(pUnit, player)
    pUnit:GossipCreateMenu(3544, player, 0)
        pUnit:GossipMenuAddItem(2, "Teleport Up", 1, 0)
        pUnit:GossipMenuAddItem(2,"Nevermind",2,0)
        pUnit:GossipSendMenu(player)
    end
     
    function Teleport_on_gossip_talk(pUnit, event, player)
    Teleport_main_menu(pUnit, player)
    end
    
    function Teleport_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
          player:Teleport(631, -624.118225, 2210.623291, 199.970474) --Icecrown Citadel
    end
    if intid == 2 then
    end
    end
     
    RegisterUnitGossipEvent(99285, 1, "Teleport_on_gossip_talk") 
    RegisterUnitGossipEvent(99285, 2, "Teleport_on_gossip_select")

  7. #7
    batatamas's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The same ,world teleporter item (shoppingmall,leveling road etc.)and nothing teleport Up or Nevermind.What is with gossipcreate menu(3544), must the numbers not change? IDK
    Last edited by batatamas; 01-16-2011 at 05:59 PM.

  8. #8
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure the GossipCreateMenu(3544,) isn't used by a different script. Change the number and see if that works.

  9. #9
    batatamas's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have changed but the same

  10. #10
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this.

    Code:
    function Teleport_main_menu(pUnit, player)
    pUnit:GossipCreateMenu(3544, player, 0)
        pUnit:GossipMenuAddItem(2, "Teleport Up", 1, 0)
        pUnit:GossipMenuAddItem(2,"Nevermind",2,0)
        pUnit:GossipSendMenu(player)
    end
     
    function Teleport_on_gossip_select(pUnit, event, player, id, intid, code, pMisc)
    if (intid == 1) then
          player:Teleport(631, -624.118225, 2210.623291, 199.970474) --Icecrown Citadel
    end
    if (intid == 2) then
    player:GossipComplete()
    end
    end
     
    RegisterUnitGossipEvent(99285, 1, "Teleport_main_menu") 
    RegisterUnitGossipEvent(99285, 2, "Teleport_on_gossip_select")

  11. #11
    Namor's Avatar Active Member
    Reputation
    27
    Join Date
    Jul 2008
    Posts
    311
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's with the Windows '98 theme?

    Editable signature, at last!

  12. #12
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Namor View Post
    What's with the Windows '98 theme?
    It's a vps or a dedi, and almost all of them use 98 theme because it's less stress on the computer and for the person connecting remotely.

Similar Threads

  1. Error with World.exe
    By jay77 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 08-04-2009, 03:35 PM
  2. Got error with world.exe
    By Abstraction in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 05-25-2009, 11:13 AM
  3. '<eof>' expected near 'end'
    By Kiev in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 06-22-2008, 06:45 AM
  4. ascent-world.exe error that keeps repeating while server runs plz help
    By BillyBob31 in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 03-02-2008, 06:59 PM
All times are GMT -5. The time now is 03:38 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