Advertisement
PerryExtra

Direct Dial Test

Apr 23rd, 2024 (edited)
689
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.55 KB | Gaming | 0 0
  1. INTERFACE_TYPES = {
  2.     "basic_interface",
  3.     "crystal_interface",
  4.     "advanced_crystal_interface"
  5. };
  6. STARGATE_TYPES = {
  7.     "sgjourney:classic_stargate",
  8.     "sgjourney:milky_way_stargate",
  9.     "sgjourney:pegasus_stargate",
  10.     "sgjourney:universe_stargate",
  11.     "sgjourney:tollan_stargate"
  12. };
  13.  
  14. --Find the proper interface & get stargate type--
  15. INTERFACE_TYPE = INTERFACE_TYPES[1];
  16. INTERFACE = peripheral.find(INTERFACE_TYPE);
  17. if INTERFACE == null then
  18.     print("\"" .. INTERFACE_TYPES[1] .. "\" was not found attempting to find another");
  19.     INTERFACE_TYPE = INTERFACE_TYPES[2];
  20.     INTERFACE = peripheral.find(INTERFACE_TYPE);
  21. elseif INTERFACE == null then
  22.     print("\"" .. INTERFACE_TYPES[2] .. "\" was not found attempting to find another");
  23.     INTERFACE_TYPE = INTERFACE_TYPES[3];
  24.     INTERFACE = peripheral.find(INTERFACE_TYPE);
  25. elseif INTERFACE == null then
  26.     print("\"" .. INTERFACE_TYPES[3] .. "\" was not found no other to be found");
  27.     error("No interfaces were found", 0);
  28. end
  29. STARGATE_TYPE = INTERFACE.getStargateType();
  30.  
  31. print("Interface Type : " .. INTERFACE_TYPE);
  32. print("Stargate Type : " .. STARGATE_TYPE);
  33. print("\n");
  34.  
  35. if INTERFACE.isStargateConnected() then
  36.     INTERFACE.disconnectStargate();
  37. end
  38.  
  39. os.sleep(1);
  40.  
  41. INTERFACE.engageSymbol(26);
  42. os.sleep(0.25);
  43. INTERFACE.engageSymbol(6);
  44. os.sleep(0.25);
  45. INTERFACE.engageSymbol(14);
  46. os.sleep(0.25);
  47. INTERFACE.engageSymbol(31);
  48. os.sleep(0.25);
  49. INTERFACE.engageSymbol(11);
  50. os.sleep(0.25);
  51. INTERFACE.engageSymbol(29);
  52. os.sleep(0.25);
  53. INTERFACE.engageSymbol(0);
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement