public
Description: WoW Addon - Food/water macro generator
Homepage: http://www.tekkub.net
Clone URL: git://github.com/tekkub/buffet.git
Click here to lend your support to: buffet and make a donation at www.pledgie.com !
Add /castsequence for stone then pot if player has both
tekkub (author)
Sat Mar 08 16:51:49 -0800 2008
commit  3e3424905bf5fc80b49413cc4533d3ba1b29a5ff
tree    11c35e58793c06d7ec44bfcbf3ede5edf47693fa
parent  5a2d23abb9d00e1bc5c3168e2a33b6c174dc24cf
...
26
27
28
29
 
30
31
32
33
 
34
35
36
 
 
 
 
37
38
39
...
60
61
62
63
64
 
 
65
66
67
...
26
27
28
 
29
30
31
32
 
33
34
 
 
35
36
37
38
39
40
41
...
62
63
64
 
 
65
66
67
68
69
0
@@ -26,14 +26,16 @@ end
0
 for i,v in pairs(items) do bests[i], items[i] = {}, TableStuffer(string.split(" ,", v)) end
0
 
0
 
0
-local function edit(name, ooc, ic, shift)
0
+local function edit(name, food, pot, stone, shift)
0
   local macroid = GetMacroIndexByName(name)
0
   if not macroid then return end
0
 
0
- local body = "#showtooltip\n\n/use "
0
+ local body = "#showtooltip\n/use "
0
   if shift then body = body .. "[modifier:shift] item:"..shift.."; " end
0
- if ic then body = body .. "[combat] item:"..ic.."; " end
0
- body = body .. "item:"..(ooc or "6948")
0
+ if (pot and not stone) or (stone and not pot) then body = body .. "[combat] item:"..(pot or stone).."; " end
0
+ body = body .. (pot and stone and "[nocombat] " or "").."item:"..(food or "6948")
0
+
0
+ if pot and stone then body = body .. "\n/castsequence [combat] item:"..stone..", item:"..pot end
0
 
0
   EditMacro(macroid, name, 1, body, 1)
0
 end
0
@@ -60,8 +62,8 @@ local function scan()
0
     end
0
   end
0
 
0
- edit("AutoHP", bests.conjfood.id or bests.percfood.id or bests.food.id or bests.hstone.id or bests.hppot.id, bests.hstone.id or bests.hppot.id, bests.bandage.id)
0
- edit("AutoMP", bests.conjwater.id or bests.percwater.id or bests.water.id or bests.mstone.id or bests.mppot.id, bests.mstone.id or bests.mppot.id)
0
+ edit("AutoHP", bests.conjfood.id or bests.percfood.id or bests.food.id or bests.hstone.id or bests.hppot.id, bests.hppot.id, bests.hstone.id, bests.bandage.id)
0
+ edit("AutoMP", bests.conjwater.id or bests.percwater.id or bests.water.id or bests.mstone.id or bests.mppot.id, bests.mppot.id, bests.mstone.id)
0
   dirty = false
0
 end
0
 

Comments

    No one has commented yet.