Need some help with LUA script menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    SupernovaHH's Avatar Member
    Reputation
    12
    Join Date
    May 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need some help with LUA script

    My problem is that the spirit healers wont revive, i have made this LUA script to fix that but i need a spell that works with spirit healers and NPC's that will res you. Priest res does not work

    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Resurrect Now?", 1, 0)
    unit:GossipSendMenu(player)
    end

    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Resurrect Now?", 1, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 1) then
    unit:FullCastSpellOnTarget(*Need a working spell ID*, player)
    end
    end

    RegisterUnitGossipEvent(6491, 1, "On_Gossip")
    RegisterUnitGossipEvent(6491, 2, "Gossip_Submenus")

    Need some help with LUA script
  2. #2
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure if this will work, but instead of the spell try,

    player:SetHealthPct(100)

    Not sure if it will work, but its worth a shot.

  3. #3
    stoneharry's Avatar Moderator Harry


    Reputation
    1615
    Join Date
    Sep 2007
    Posts
    4,558
    Thanks G/R
    151/147
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Resurrect Now?", 1, 0)
    unit:GossipMenuAddItem(2, "Nevermind", 2, 0)
    unit:GossipSendMenu(player)
    end
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Resurrect Now?", 1, 0)
    unit:GossipSendMenu(player)
    end
    if(intid == 2) then
    player:GossipComplete()
    if(intid == 1) then
    unit:RessurectPlayer() -- if this doesn't work do player: instead of unit:
    player:GossipComplete()
    end
    end
    
    RegisterUnitGossipEvent(6491, 1, "On_Gossip")
    RegisterUnitGossipEvent(6491, 2, "Gossip_Submenus")

Similar Threads

  1. [trinitu] I need some help with 1 scripts
    By Sinisteru in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 07-19-2011, 11:14 AM
  2. [Lua Script] Need some help with my lua script
    By riizu in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 07-13-2010, 01:40 AM
  3. Need some Help with a script of mine! not working and i dont know why.
    By Flesh0209 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-08-2009, 08:10 PM
  4. Need some help with Lua
    By Kiev in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-23-2008, 05:26 AM
  5. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
All times are GMT -5. The time now is 10:01 PM. 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