Hey hier der AllInOne
Zitat
local NPCID = NPCID
function NPC_onGossipTalk(Unit, Event, Player)
Unit:GossipCreateMenu(100, Player, 0)
Unit:GossipMenuAddItem(1, "Bankfach", 1, 0)
Unit:GossipMenuAddItem(1, "Auctioneer", 2, 0)
Unit:GossipMenuAddItem(1, "Gasthaus", 3, 0)
Unit:GossipMenuAddItem(1, "Rüstung Reparieren", 4, 0)
Unit:GossipSendMenu(player)
end
if(intid == 1)then
Player:SendBankWindow(unit)
end
if(intid ==2)then
Player:SendAuctionWindow(unit)
end
if(intid ==3)then
Player:SendInnkeeperWindow(unit)
end
if(intid ==4)then
Player:RepairAllItems(unit)
end
RegisterUnitGossipEvent(NPCID, 1, "NPC_onGossipTalk")
RegisterUnitGossipEvent(NPCID, 2, "NPC_onGossipSelect")
Er bietet
+ Bankfenster
+ Auctionsfenster
+ Gasthausfenster
+ Items Reparieren
MFG
CroWn