Another script question. menu

User Tag List

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

    Another script question.

    alright after trying multiple things with these two scripts one doesn't seem to be working, not sure why

    the first one, works fine

    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(100, player, 0)
    unit:GossipMenuAddItem(0,"5 Man Dungeon", 0, 0)
    unit:GossipSendMenu(player)
    end

    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 0) then
    unit:GossipCreateMenu(101, player, 0)
    unit:GossipMenuAddItem(0,"Deadmines", 50, 0)
    unit:GossipMenuAddItem(0,"Blackfathom Deeps", 51, 0)
    unit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(0, -11208.829102, 1672.604004, 26.309850)
    end
    if(intid == 51) then
    player:Teleport(1, 4247.980469, 745.171509, -23.071976)
    end
    end

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



    2nd one, does not work

    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(101, player, 0)
    unit:GossipMenuAddItem(2,"Raid Dungeons", 1, 0)
    unit:GossipSendMenu(player)
    end

    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 2) then
    unit:GossipCreateMenu(103, player, 0)
    unit:GossipMenuAddItem(2,"Shadowfang Keep", 52, 1)
    unit:GossipMenuAddItem(2,"Onyxia's Lair", 53, 1)
    unit:GossipSendMenu(player)
    end
    if(intid == 52) then
    player:Teleport(0, -234, 1563, 7
    end
    if(intid == 53) then
    player:Teleport(249, 29, -68, -4)
    end
    end

    RegisterUnitGossipEvent(39, 1, "On_Gossip")
    RegisterUnitGossipEvent(39, 2, "Gossip_Sub



    heres a couple others


    function Sever_OnCombat(Unit, Event)
    Unit:RegisterEvent("Sever_Phase1", 20000, 2)
    end

    function Sever_Phase1(Unit, Event)
    if Unit:GetHealthPct() <= 15 then
    Unit:SetScale(3)
    Unit:CastSpell(56646)
    end
    end

    function Sever_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents()
    end

    function Sever_OnKilledTarget(Unit, Event)
    end

    function Sever_OnDied(Unit, Event)
    Unit:RemoveEvents()
    end


    RegisterUnitEvent(4, 1, "Sever_OnCombat")
    RegisterUnitEvent(4, 2, "Sever_OnLeaveCombat")
    RegisterUnitEvent(4, 3, "Sever_OnKilledTarget")
    RegisterUnitEvent(4, 4, "Sever_OnDied")


    function Commander_OnCombat(Unit, Event)
    Unit:RegisterEvent("Commander_Spell1", 12000, 150)
    end

    function Commander_Spell1(Unit, Event)
    Unit:CastSpellOnTarget(48819, Unit:GetMainTank())
    end

    function Commander_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents()
    end

    function Commander_OnKilledTarget(Unit, Event)
    end

    function Commander_OnDied(Unit, Event)
    Unit:RemoveEvents()
    end

    RegisterUnitEvent(4278, 1, "Commander_OnCombat")
    RegisterUnitEvent(4278, 2, "Commander_OnLeaveCombat")
    RegisterUnitEvent(4278, 3, "Commander_OnKilledTarget")
    RegisterUnitEvent(4278, 4, "Commander_OnDied")

    i have 3 other simpliar scripts which works fine, just copied and paste it and redone it but its not working. Also i was just curious why would one have to put .lua on the file name, 90% of my scripts dont have .lua and they work fine.

    Another script question.

Similar Threads

  1. LUA Script Question
    By abndrew82 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-08-2008, 02:55 PM
  2. Whats the money script question
    By Duplicity in forum World of Warcraft General
    Replies: 3
    Last Post: 09-30-2007, 07:30 PM
  3. Mac Scripting Question
    By Renek in forum World of Warcraft General
    Replies: 0
    Last Post: 06-27-2007, 02:53 PM
  4. another CE question, about process guard
    By mwo in forum World of Warcraft General
    Replies: 0
    Last Post: 01-07-2007, 11:18 PM
  5. quick mac script question
    By lars1414 in forum World of Warcraft General
    Replies: 0
    Last Post: 12-28-2006, 02:37 PM
All times are GMT -5. The time now is 11:46 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