Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Made by DeniDov
- ]]--
- --[[Configs]]--
- local StarterBook = 1234
- local ServerName = Server
- local ServerType = Fun
- local StarterToken = 2345
- local Emu = Arcemu
- local Rev = 3890
- local Owner = Denidov
- local Co-Owner = Denidov
- local Admins = Denidov, Denidov, Denidov
- local Devs = Denidov, Denidov, Denidov
- local GMS = Denidov, Denidov, Denidov
- local Website = www.test.com
- local Email = test@live.com
- local itemid = 12345
- function OnEnterWorld(event, player, unit)
- if (player:GetPlayerLevel(1) == true) then
- player:SendBroadcastMessage("Welcome to "..ServerName.." We are a "..ServerType.." Server. We Hope you Enjoy Your Stay")
- player:AddItem(StarterBook, 1)
- player:SendBroadcastMessage("Here is Your Starter Book for "..ServerName.."")
- player:AddItem(StarterToken, 5)
- player:SendBroadcastMessage("These are your Tokens, You can Sell Them for Some Starting Money!")
- end
- end
- function Item_OnGossip(event, player, unit)
- if (player:IsInCombat() == true) then
- player:SendBroadcastMessage("Get out of Combat!")
- else
- unit:GossipCreateMenu(3543, player, 0)
- unit:GossipMenuAddItem(0, "Server Info", 1, 0)
- unit:GossipMenuAddItem(0, "Server Staff", 2, 0)
- unit:GossipMenuAddItem(0, "Other Notes", 3, 0)
- end
- end
- function Item_Select(event, player, unit)
- if (intid == 1) then
- player:SendBroadcastMessage("This is a "..ServerType.." server, We run on "..Emu.." core at Rev "..Rev.."")
- end
- if (intid == 2) then
- player:SendBroadcastMessage("The Server Owner is "..Owner..", The Co-Owner is "..Co-Owner..", Our Admin Team Consists of "..Admins..", Our Developer Team is "..Devs..", And Our Support Team is "..GMS.."")
- end
- if (intid == 3) then
- player:SendBroadcastMessage("If you need any help please contact us on "..Website.." or you can e-mail us at "..Email.."")
- end
- end
- end
- RegisterServerHook(4, "OnEnterWorld")
- RegisterUnitGossipEvent(itemid, 1, "Item_OnGossip")
- RegisterUnitGossipEvent(itemid, 2, "Item_Select")
Advertisement
Add Comment
Please, Sign In to add comment