Whats wrong with this? menu

Shout-Out

User Tag List

Results 1 to 12 of 12
  1. #1
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats wrong with this?

    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")


    Whats wrong with this?
  2. #2
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What errors are you getting?


  3. #3
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    faile. (could not load)
    scripts\Buff NPC.lua:94: '<eof>' expected near 'end'


  4. #4
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    RegisterUnitGossipEvent(35000,1, "On_Gossip")
    RegisterUnitGossipEvent(35000 ,2,"Gossip_HealandBuff")
    Try it like that. (your eof)

  5. #5
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope still the same


  6. #6
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'll take a look at it later on, busy now

  7. #7
    AzolexX's Avatar Contributor
    Reputation
    179
    Join Date
    May 2007
    Posts
    587
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    intid = 0
    end
    end
    Delete that and btw use space for clean scripts.

    Find about scripting, programming and music! My blog: https://worldofsmth.wordpress.com!

  8. #8
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ive tried that it was the first thing i did lol still didnt work


  9. #9
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just put the intid = 0 after the "end" lines

  10. #10
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nope lol still dont work


  11. #11
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local npcid = 35000
    
    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
    end
    
    intid = 0
    
    RegisterUnitGossipEvent(35000,1, "On_Gossip")
    RegisterUnitGossipEvent(35000,2, "Gossip_HealandBuff")
    If that doesn't work then you're doing something wrong
    Last edited by Aznex; 10-22-2008 at 04:34 PM.

  12. #12
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WOOO its worked hehe thanks +rep


Similar Threads

  1. Question: Whats wrong with this patch-4.mpq?
    By Creepfold in forum WoW ME Questions and Requests
    Replies: 6
    Last Post: 06-10-2008, 02:53 PM
  2. Whats wrong with this LUA Script?
    By controlsx2 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 05-20-2008, 03:03 PM
  3. [Question] Whats wrong with this?
    By BrantX in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 04-19-2008, 01:28 AM
  4. Whats Wrong with this flying moutn sql??
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 01-16-2008, 10:40 PM
  5. Whats Wrong With This Picture! Eww Its Sick!
    By matswurld in forum Community Chat
    Replies: 2
    Last Post: 08-09-2007, 08:16 AM
All times are GMT -5. The time now is 12:28 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