View Single Post
06-26-08, 06:05 PM   #1
iocontrol
A Fallenroot Satyr
Join Date: Jun 2007
Posts: 29
Avenger's Shield & Mazzle_Layouts.lua

I've been trying to get Avenger's Shield to be placed during the button layout process, but I can't seem to get it to pop up. Please note, I've downloaded the BC Spells optional files, however, from searching it would appear that support for the BC Spells is rather limited (or won't be forthcoming until WotLK).

I've followed the pattern as laid forth in the Mazzle_Layouts.lua file - it seems simple enough and I have been successful in rebinding certain spells to different buttons that suit my taste so they don't break on the next Mazzification process. I've even successfully added a bit of logic for the Turn Undead / Turn Evil abilities just following the examples laid forth - not that it's any great feat. The code is there for the Avenger's Shield - as well as other spec specific abilities, however, that particular button seems stubbornly shy and doesn't want to jump onto the main stage.

Is there something that I'm missing? Perhaps I've bumped into the 120 button limitation so this won't show up? Or maybe there's an issue with that particular button not being assigned an ID (a customization thing that Mazzlefizz added to bongos). Since I don't mind learning & tinkering, it'd be great if I could get a gentle nudge as to what else I should be looking at in the code.

In file Mazzifier/Mazzle_Layouts.lua this is the code for (what I assume to be) Bar 2 in the MazzlePaladin_16 section where it appears Avenger's Shield should show up.

Code:
		[2] = {
			["contents"] = {
				["page_1"] = {
					[5] = {
						["binding"] = "7",
					},
					[1] = {
						["binding"] = "3",
						["action"] = "Cleanse",
					},
					[2] = {
						["binding"] = "4",
						["action"] = "Purify",
					},
					[3] = {
						["binding"] = "5",
						["action"] = "Lay on Hands",
					},
					[4] = {
						["binding"] = "6",
						["action"] = "Divine Intervention",
					},
					[6] = {
						["binding"] = "8",
					},
				},
				["page_2"] = {
					[5] = {
						["action"] = "Holy Wrath",
					},
					[1] = {
						["action"] = "Hammer of Wrath",
					},
					[2] = {
						["action"] = {
							[2] = "Holy Shock",
							[1] = "Consecration",
							[3] = "Repentance",
						},
					},
					[3] = {
						["action"] = {
							[1] = "Repentance",
							[2] = "Holy Shock",
                                                        [3] = "Avenger's Shield",
						},
					},
					[4] = {
						["action"] = "Exorcism",
					},
					[6] = {
						["action"] = {
                                                        [2] = "Turn Undead",
                                                        [1] = "Turn Evil",
                                                }
					},
				},
			},
			["buttonSize"] = 35,
			["rows"] = 1,
			["hideEmpty"] = 1,
			["name"] = "BActionBar2",
			["anchor"] = {
				["y"] = 0,
				["x"] = 13,
				["point"] = "LEFT",
				["frame"] = "BActionBar1",
				["to"] = "RIGHT",
			},
			["allowDuplicates"] = true,
			["numButtons"] = 6,
			["pages"] = 2,
		},
At face value, I would assume that it should work. However, not being intimately familiar with scripting in general - let alone lua & wow scripting - I could be terribly wrong.

I have thought about maybe moving the code to any of the empty buttons/bindings listed there BUT that wouldn't seem to address the issue of that original button not showing up. Meaning, if I can't get the orignal button to appear, why would the new placements appear if I move the code ...

Any ideas or suggestions would be greatly appreciated. I'm not looking for work arounds (like putting Avenger's Shield on the context menu or binding through Spellbinder as I've already done these things) ... I'm looking to preserve continuity of code.
  Reply With Quote