Hello i was cleaning my computer when i found my first lua script ever :) Wolferine teached me how to make this :) enjoy.
Code:--|||||SCRIPTED BY LUIGI||||||-- --||IF YOU STEAL I KIEL||-- --||CREDITS TO ME||-- local NPC_ID = 111111 -- change to your id function BG_OnGossipTalk(pUnit, Event, player) pUnit:GossipCreateMenu(1, player, 0) pUnit:GossipMenuAddItem(1, "Warsong Gulch", 1, 0) pUnit:GossipMenuAddItem(1, "Arathi Basin", 2, 0) pUnit:GossipMenuAddItem(1, "Eye of the Storm", 3, 0) pUnit:GossipMenuAddItem(1, "Strand of the Acients", 4, 0) pUnit:GossipMenuAddItem(1, "Alterac Valley", 5, 0) pUnit:GossipMenuAddItem(1, "Never mind", 6, 0) pUnit:GossipSendMenu(player) end function BG_OnGossipSelect(pUnit, Event, player, id, intid, code, pMisc) if(intid == 1) then player:SendBattlegroundWindow(2) player:GossipComplete() end if(intid == 2) then player:SendBattlegroundWindow(3) player:GossipComplete() end if(intid == 3) then player:SendBattlegroundWindow(7) player:GossipComplete() end if(intid == 4) then player:SendBattlegroundWindow(9) player:GossipComplete() end if(intid == 5) then player:SendBattlegroundWindow(1) player:GossipComplete() end if(intid == 6) then player:GossipComplete() end end RegisterUnitGossipEvent(NPC_ID, 1, "BG_OnGossipTalk") RegisterUnitGossipEvent(NPC_ID, 2, "BG_OnGossipSelect")



LinkBack URL
About LinkBacks


Reply With Quote






Bookmarks