'<eof>' expected near 'end' menu

User Tag List

Results 1 to 3 of 3
  1. #1
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    '<eof>' expected near 'end'

    Im using a script from Blua and i get this error. Here is the script:

    Code:
    function On_Gossip (pUnit, event, player)
    pUnit:GossipCreateMenu(3543, player)
    pUnit:GossipMenuAddItem(player, 0, "Buffs", 1, 0)
    pUnit:GossipMenuAddItem(player, 0, "Heals", 2, 0)
    pUnit:GossipSendMenu(player)
    end
    function Gossip_HealandBuff (pUnit, event, player, id, intid, code)
    if(intid == 1) then
    pUnit:GossipCreateMenu(3542, player)
    pUnit:GossipMenuAddItem(player, 5, "Blessing of Might", 3, 0)
    pUnit:GossipMenuAddItem(player, 5, "Blessing of Wisdom", 4, 0)
    pUnit:GossipMenuAddItem(player, 5, "Gift of the Wild", 5, 0)
    pUnit:GossipMenuAddItem(player, 5, "Greater Blessing of Might", 6, 0)
    pUnit:GossipMenuAddItem(player, 5, "Mark of the Wild", 7, 0)
    pUnit:GossipMenuAddItem(player, 5, "Power Word: Shield", 8, 0)
    pUnit:GossipMenuAddItem(player, 5, "Power Word: Fortitude", 9, 0)
    pUnit:GossipMenuAddItem(player, 5, "Prayer of Fortitude", 10, 0)
    pUnit:GossipMenuAddItem(player, 5, "Prayer of Spirit", 11, 0)
    pUnit:GossipMenuAddItem(player, 5, "Thorns", 12, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(3542, player)
    pUnit:GossipMenuAddItem(player, 5, "Circle of Healing", 13, 0)
    pUnit:GossipMenuAddItem(player, 5, "Flash of Light", 14, 0)
    pUnit:GossipMenuAddItem(player, 5, "Greater Heal", 15, 0)
    pUnit:GossipMenuAddItem(player, 5, "Healing Touch", 16, 0)
    pUnit:GossipMenuAddItem(player, 5, "Holy Light", 17, 0)
    pUnit:GossipMenuAddItem(player, 5, "Lay on Hands", 18, 0)
    pUnit:GossipMenuAddItem(player, 5, "Lifebloom", 19, 0)
    pUnit:GossipMenuAddItem(player, 5, "Rejuvenation", 20, 0)
    pUnit:GossipMenuAddItem(player, 5, "Tranquility", 21, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    player:CastSpell(27140)
    end
    if(intid == 4) then
    player:CastSpell(27142)
    end
    if(intid == 5) then
    player:CastSpell(26991)
    end
    if(intid == 6) then
    player:CastSpell(27141)
    end
    if(intid == 7) then
    player:CastSpell(26990)
    end
    if(intid == 8) then 
    player:CastSpell(25218)
    end
    if(intid == 9) then
    player:CastSpell(25389)
    end
    if(intid == 10) then
    player:CastSpell(25392)
    end
    if(intid == 11) then
    player:CastSpell(32999)
    end
    if(intid == 12) then
    player:CastSpell(26992)
    end
    if(intid == 13) then
    player:CastSpell(34866)
    end
    if(intid == 14) then
    player:CastSpell(27137)
    end
    if(intid == 15) then
    player:CastSpell(25213)
    end
    if(intid == 16) then
    player:CastSpell(26979)
    end
    if(intid == 17) then
    player:CastSpell(27136)
    end
    if(intid == 18) then
    player:CastSpell(27154)
    end
    if(intid == 19) then
    player:CastSpell(33763)
    end
    if(intid == 20) then
    player:CastSpell(26982)
    end
    if(intid == 21) then
    player:CastSpell(9862)
    end
    intid = 0
    end
    end
    
    RegisterGossipEvent(35000 , 1, "On_Gossip")(35000 , 2,"Gossip_HealandBuff")
    Its on line 94 which is underlined, any idea why?

    kk, thats fixed now, its now saying: Attempt to call global 'RegisterGossipEvent' <a nil value>
    Last edited by Kiev; 06-22-2008 at 06:47 AM.

    '&lt;eof&gt;' expected near 'end'
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The second 'end' isn't needed. Had you formatted your code correctly, you could've seen this

  3. #3
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Er, ill try removing it now :P, if that dont work ill post back

Similar Threads

  1. [Lua Script] Icc teleporter error in world.exe <eof> expected near 'end'
    By batatamas in forum WoW EMU Questions & Requests
    Replies: 11
    Last Post: 01-17-2011, 10:30 AM
  2. The World's end is near!
    By Slikker in forum Community Chat
    Replies: 7
    Last Post: 06-08-2009, 09:01 PM
  3. Script problem | '>' expected near pUnit?
    By setuxas in forum WoW EMU Questions & Requests
    Replies: 8
    Last Post: 05-03-2009, 01:37 PM
  4. Worldkillers, The End is Near!
    By I Hypnotoad I in forum WoW Emulator Server Listings
    Replies: 0
    Last Post: 03-19-2008, 06:01 PM
  5. Guide to extra gold at the end of the day
    By Matt in forum World of Warcraft Guides
    Replies: 1
    Last Post: 11-08-2006, 10:28 PM
All times are GMT -5. The time now is 04:54 AM. 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