Likes: 0
Results 1 to 5 of 5
Thread: [Lua] GM Buffer/GM Item Giver
-
16-03-10, 08:58 PM #1
[Lua] GM Buffer/GM Item Giver
Register to remove this adWell its a quite Simplet .lua Script. You click the npc you set it to and you can click GM Gear, or GM spells, and there is retail GM gear. And a few Retail GM spells. Hope you guys like it
I have not tested it yet.
Code:function On_Gossip(pUnit, event, player) pUnit:GossipCreateMenu(3544, player, 0) pUnit:GossipMenuAddItem(0, "Game Master Gear", 1, 0) pUnit:GossipMenuAddItem(0, "Game Master Buff Menu", 3, 0) end function Gossip_Submenus(pUnit, event, player, id, intid, code) if (intid == 3) then pUnit:GossipCreateMenu(3543, player, 0) pUnit:GossipMenuAddItem(0, "Uber Heal", 5, 0) pUnit:GossipMenuAddItem(0, "Divine Shield", 6, 0) pUnit:GossipMenuAddItem(0, "Thorns", 7, 0) pUnit:GossipMenuAddItem(0, "Haste Aura", 8, 0) end if(intid == 5) then unit:GossipCreateMenu(71, player, 0) unit:FullCastSpellOnTarget(1908, player) unit:GossipSendMenu(player) end if(intid == 6) then unit:GossipCreateMenu(71, player, 0) unit:FullCastSpellOnTarget(40733, player) unit:GossipSendMenu(player) end if(intid == 7) then unit:GossipCreateMenu(71, player, 0) unit:FullCastSpellOnTarget(62931, player) unit:GossipSendMenu(player) end if(intid == 8) then unit:GossipCreateMenu(71, player, 0) unit:FullCastSpellOnTarget(13589, player) unit:GossipSendMenu(player) end function Gossip_Submenus(pUnit, event, player, id, intid, code) if (intid == 1) then pUnit:GossipCreateMenu(3543, player, 0) pUnit:GossipMenuAddItem(0, "Retail Game Master Gear", 2, 0) end if (intid == 2) then player:AddItem(2586, 1) player:AddItem(12064, 1) player:AddItem(11508, 1) player:AddItem(192, 1) RegisterUnitGossipEvent(Your NPC ID HERE!, 1, "On_Gossip") RegisterUnitGossipEvent(YOUR NPC ID HERE!, 2, "Gossip_Submenus")
› See More: [Lua] GM Buffer/GM Item GiverLast edited by MikExV™; 16-03-10 at 09:00 PM.
-
16-03-10, 09:54 PM #2
A bit simple for an Lua script, but it may provide as a template for someone in need of one.
-
16-03-10, 11:09 PM #3
-
17-03-10, 12:14 AM #4
-
17-03-10, 01:32 PM #5
Register to remove this adNp Msouls, and yes I know WigSplitta I will be editing the script its my first one I have ever made.