Adilol

lolwut 2 (hard-coded)

Aug 5th, 2011
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. --[[
  2. Server core?
  3. ]]
  4.  
  5. os.execute(Server.start)
  6. os.execute(Server.mysql)
  7. os.execute(Server.core)
  8.  
  9. print("Xe0n Emulator")
  10. print("Reading config file")
  11.  
  12. --Basic server ideas, may need to be refined and coded again
  13.  
  14. loadfile("/sql/config.conf")
  15. if (loadfile == false)
  16. print("File does not exist")
  17. end
  18. if (config.conf == false)
  19. print("Edit the config file")
  20. end
  21. if (config.conf == true)
  22. print("Starting connections")
  23. end
  24. socket.tcp()
  25. socket.mus()
  26. function createTCPServer( host, port, backlog )
  27. function createMUSServer( host, port, backlog )
  28. print("MUS and TCP sockets open and ready")
Advertisement
Add Comment
Please, Sign In to add comment