Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local NPCID = xxx
- local function MountVendor_OnGossip(pUnit, event, player)
- if(not player:IsGm()) then
- ---- would be nice if it had a timer before activates so you get time to read the private message ---
- player:SendBroadcastMessage("You have been caught being in a unauthorized zone for players within the Affliction WoW Staff Team. You will be punished for your acts within 3 seconds!")
- player:SetPlayerLock(1)
- ---- Public Message Section ---------
- local race = player:GetPlayerRace()
- if race==1 or race==3 or race==4 or race==7 or race==11 then
- player:SendAreaTriggerMessage(player:GetName().." of the Alliance have been caught being on GM Island, character lock activated")
- else
- player:SendAreaTriggerMessage(player:GetName().." of the Horde have been caught being on GM Island, character lock activated")
- end
- else
- -------If player is GM then----------
- player:SendBroadCastMessage("Have a nice day sir.")
- pUnit:GossipCreateMenu(500, player, 0)
- --[[
- This wont work properly. Use GossipMenuAddItem. See how it is used.
- pUnit:VendorAddItem(2586, 1, 0) --- Gamemaster's Robe ---
- pUnit:VendorAddItem(11508, 1, 0) --- Gamemaster's Slippers ---
- pUnit:VendorAddItem(12064, 1, 0) --- Gamemaster's Hood ---
- ]]
- pUnit:GossipSendMenu(player)
- end
- end
- -- register the hook
- RegisterUnitGossipEvent(NPCID, 1, MountVendor_OnGossip)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement