Guest User

Denidov

a guest
Apr 11th, 2010
389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.96 KB | None | 0 0
  1. --[[
  2. Made by DeniDov
  3. ]]--
  4.  
  5. --[[Configs]]--
  6. local StarterBook = 1234
  7. local ServerName = Server
  8. local ServerType = Fun
  9. local StarterToken = 2345
  10. local Emu = Arcemu
  11. local Rev = 3890
  12. local Owner = Denidov
  13. local Co-Owner = Denidov
  14. local Admins = Denidov, Denidov, Denidov
  15. local Devs = Denidov, Denidov, Denidov
  16. local GMS = Denidov, Denidov, Denidov
  17. local Website = www.test.com
  18. local Email = test@live.com
  19. local itemid = 12345
  20.  
  21. function OnEnterWorld(event, player, unit)
  22.     if (player:GetPlayerLevel(1) == true) then
  23.         player:SendBroadcastMessage("Welcome to "..ServerName.." We are a "..ServerType.." Server. We Hope you Enjoy Your Stay")
  24.             player:AddItem(StarterBook, 1)
  25.                 player:SendBroadcastMessage("Here is Your Starter Book for "..ServerName.."")
  26.             player:AddItem(StarterToken, 5)
  27.                 player:SendBroadcastMessage("These are your Tokens, You can Sell Them for Some Starting Money!")
  28. end
  29. end
  30.  
  31. function Item_OnGossip(event, player, unit)
  32.         if (player:IsInCombat() == true) then
  33.     player:SendBroadcastMessage("Get out of Combat!")
  34.         else
  35.             unit:GossipCreateMenu(3543, player, 0)
  36.             unit:GossipMenuAddItem(0, "Server Info", 1, 0)
  37.             unit:GossipMenuAddItem(0, "Server Staff", 2, 0)
  38.             unit:GossipMenuAddItem(0, "Other Notes", 3, 0)
  39. end
  40. end
  41.  
  42. function Item_Select(event, player, unit)
  43.     if (intid == 1) then
  44.         player:SendBroadcastMessage("This is a "..ServerType.." server, We run on "..Emu.." core at Rev "..Rev.."")
  45. end
  46.  
  47.     if (intid == 2) then
  48.         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.."")
  49. end
  50.     if (intid == 3) then
  51.         player:SendBroadcastMessage("If you need any help please contact us on "..Website.." or you can e-mail us at "..Email.."") 
  52. end
  53. end
  54. end
  55. RegisterServerHook(4, "OnEnterWorld")
  56. RegisterUnitGossipEvent(itemid, 1, "Item_OnGossip")
  57. RegisterUnitGossipEvent(itemid, 2, "Item_Select")
Advertisement
Add Comment
Please, Sign In to add comment