Lua Help (Trial of the Crusader script) menu

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)

    Lua Help (Trial of the Crusader script)

    ok i was browsing google looking for a way to get Trial of the Crusader to work. as i was browsing i came across this post that a guy had made a Lua script but couldn't get it to work. I give him full credit for creating this and im asking if anyone could help me get this working because id like to get it working on my 3.2a realms

    Code:
    function ACMaster_OnGossipTalk(pUnit, event, player, pMisc)
    	if (player:IsInCombat() == true) then
    		player:SendAreaTriggerMessage("You are in combat!")
    	else
    		pUnit:GossipCreateMenu(3544, player, 0)
    		pUnit:GossipMenuAddItem(0, "We are ready to start the Trial of the Crusader!", 1, 0)
    		pUnit:GossipMenuAddItem(0, "We are ready to start the Trial of the Grand Crusader!", 2, 0)
    		pUnit:GossipMenuAddItem(0, "I would like to leave the Argent Coliseum.", 3, 0)
    		pUnit:GossipSendMenu(player)
    	end
    end
    
    function ACMaster_OnGossipSelect1(pUnit, event, player, id, intid, code)
    	if (intid == 1) then
    		pUnit:GossipSendMenu(player)
    		pUnit:SendChatMessage(12, 0, "Those brave champions have chosen to do the Trial of the Crusader!")
    		pUnit:RegisterEvent("ACMaster_Talk2", 5000, 1)
    	elseif (intid == 2) then
    		pUnit:GossipSendMenu(player)
    		pUnit:SendChatMessage(12, 0, "Those brave crusaders have chosen to do the Trial of the Grand Crusader!")
    		pUnit:RegisterEvent("ACMaster_TalkG2", 5000, 1)
    	elseif (intid == 3) then
    		pUnit:GossipSendMenu(player)
    		player:Teleport(571, 8515.63, 725.667, 558.247, 4.272)
    end
    end
    
    function ACMaster_Talk2(pUnit, event, player, id, intid, code)
    	pUnit:SendChatMessage(12, 0, "Your first battle awaits - let me introduce, Gormok the Impaler!")
    	pUnit:SpawnCreature(34796, 564.897, 176.751, 394.136, 4.673127, 16, 0)
    	pUnit:Despawn(1, 0)
    end
    
    function ACMaster_TalkG2(pUnit, event, player, id, intid, code)
    	pUnit:SendChatMessage(12, 0, "Your first battle awaits - let me introduce, Gormok the Impaler!")
    	pUnit:SpawnCreature(34797, 564.897, 176.751, 394.136, 4.673127, 16, 0)
    	pUnit:Despawn(1, 0)
    end
    
    RegisterUnitGossipEvent(34816, 1, "ACMaster_OnGossipTalk")
    RegisterUnitGossipEvent(34816, 2, "ACMaster_OnGossipSelect1")
    Code:
    function SnoboldVassal_OnCombat(pUnit, event)
    pUnit:RegisterEvent("SnoboldVassal_Batter", 5000, 0)
    pUnit:RegisterEvent("SnoboldVassal_FireBomb", 12000, 0)
    pUnit:RegisterEvent("SnoboldVassal_HeadCrack", 4500, 0)
    end
    
    function SnoboldVassal_Batter(pUnit, Event)
    	MainTank = pUnit:GetMainTank()
    	if (MainTank) ~= nil then
    		pUnit:CastSpellOnTarget(66408, pUnit:GetMainTank()) 
    		else
    	end
    end
    
    function SnoboldVassal_FireBomb(pUnit, event)
    	pUnit:FullCastSpellOnTarget(66313, pUnit:GetRandomPlayer(0))
    end
    
    function SnoboldVassal_HeadCrack(pUnit, event)
    	MainTank = pUnit:GetMainTank()
    	if (MainTank) ~= nil then
    		pUnit:CastSpellOnTarget(66407, pUnit:GetMainTank())
    		else
    	end
    end
    
    function SnoboldVassal_OnDied(pUnit, event)
    	pUnit:RemoveEvents()
    	pUnit:Despawn(1, 0)
    end
    
    function SnoboldVassal_OnLeaveCombat(pUnit, event)
    	pUnit:RemoveEvents()
    	pUnit:Despawn(1, 0)
    end
    
    RegisterUnitEvent(34800, 1, "SnoboldVassal_OnCombat")
    RegisterUnitEvent(34800, 2, "SnoboldVassal_OnLeaveCombat")
    RegisterUnitEvent(34800, 4, "SnoboldVassal_OnDied")

    Lua Help (Trial of the Crusader script)
  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)
    I'm guessing it is because on the gossip menu you have:

    Code:
    pUnit:RegisterEvent("ACMaster_TalkG2", 5000, 1)


    You have to register a event 1 always in gossip for it to work I find, 5000 is to long. Register a event for in 1 to start another event that registers the other event for in 5000. Also do you have any errors in console?
    Also sorry for not looking at this in the past, I just saw another Lua script and to be honest couldn't be bothered to look at it.

  3. #3
    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)
    Well im just going from what the guy said. im testing console errors later and working from there

    but thanks for helping

    BTW do you know anywhere i can find a working hallows end script for 3.2.2a arcemu 2921?

Similar Threads

  1. [Puntable Marmot] Trial of The Crusader Exploration
    By Shunt1900 in forum World of Warcraft Exploration
    Replies: 2
    Last Post: 10-22-2012, 12:58 AM
  2. [Trinity] Trial of the crusader
    By gabilavi in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 04-07-2011, 06:30 AM
  3. Need Trial of the Crusader
    By kyssame in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 02-07-2010, 05:33 PM
  4. [How to] 25 Trial of the crusader
    By Brian Peppers in forum World of Warcraft Guides
    Replies: 14
    Last Post: 08-09-2009, 01:30 PM
All times are GMT -5. The time now is 12:54 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