MoogLeaks

d

Apr 21st, 2019
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.13 KB | None | 0 0
  1. const EGClient = require('epicgames-client').Client;
  2. const Fortnite = require('epicgames-fortnite-client');
  3.  
  4. let eg = new EGClient({
  5. email: 'd',
  6. password: 'd'
  7. });
  8.  
  9. eg.init().then(async (success) => {
  10.  
  11. if(!success)
  12. throw new Error('Cannot initialize EpicGames launcher.');
  13.  
  14. if(!await eg.login())
  15. throw new Error('Cannot login on EpicGames account.');
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. const fortnite = await eg.runGame(Fortnite);
  42.  
  43. fortnite.communicator.on('friend:request', async data => {
  44. data.accept();
  45. });
  46.  
  47. fortnite.communicator.on('party:invitation', async data => {
  48. data.party.me.setBRCharacter('/Game/Athena/Items/Cosmetics/Characters/CID_029_Athena_Commando_F_Halloween.CID_029_Athena_Commando_F_Halloween');
  49. await data.accept();
  50. data.party.me.setEmote('/Game/Athena/Items/Cosmetics/Dances/EID_KPopDance01.EID_KPopDance01');
  51. });
  52.  
  53. fortnite.communicator.on('party:member:joined', async data => {
  54. console.log(data);
  55. });
  56.  
  57. fortnite.communicator.on('friend:message', async data => {
  58. let author = await eg.getProfile(data.friend.id);
  59. let emotemessage;
  60. let skinmessage;
  61. let backmessage;
  62. let id = data.friend.id;
  63. console.log(author.displayName + ': ' + data.message);
  64.  
  65. // Message reader^
  66. let args = data.message.split(" ");
  67. let command = args[0];
  68. let cosmeticid = args[1];
  69. let passLevel = args[1];
  70. if(command == "MOOG>playemote"){
  71. activeparty.members.forEach(async member => {
  72. emotemessage = cosmeticid;
  73. member.setEmote("/Game/Athena/Items/Cosmetics/Dances/" + "EID_" + emotemessage + "." + "EID_" + emotemessage, member.jid);
  74. })
  75. }
  76. else if (command == "MOOG>setskin"){
  77. activeparty.members.forEach(async member => {
  78. skinmessage = cosmeticid;
  79. member.setBRCharacter("/Game/Athena/Items/Cosmetics/Characters/" + skinmessage + "." + skinmessage, member.jid);
  80. })
  81. }
  82. else if (command == "MOOG>stopemote"){
  83. activeparty.members.forEach(async member => {
  84. member.clearEmote(member.jid)
  85. })
  86. }
  87. else if (command == "MOOG>setlevel"){
  88. activeparty.members.forEach(async member => {
  89. passmessage = passLevel;
  90. member.setBattlePass(true, passmessage, passmessage, passmessage, member.jid)
  91. console.log("set level to" + " " + passmessage)
  92. })}
  93. else if (command == "MOOG>backbling"){
  94. activeparty.members.forEach(async member => {
  95. backmessage = cosmeticid;
  96. member.setBackpack("/Game/Athena/Items/Cosmetics/Characters/" + backmessage + "./Game/Athena/Items/Cosmetics/Characters/" + backmessage, member.jid);
  97. })
  98. }
  99. else{
  100. fortnite.communicator.sendMessage(id, "Insert an emote or skin please");}
  101. });
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111. /*
  112. let parties = {};
  113. let party_members;
  114.  
  115. fortnite.communicator.on('party:joinacknowledged:response', async data => {
  116. party_members = parties[data.partyId].members;
  117. party_members.forEach(async member => {
  118. member.setBRCharacter("/Game/Athena/Items/Cosmetics/Characters/CID_022_Athena_Commando_F.CID_022_Athena_Commando_F", member.jid)
  119. member.setEmote("/Game/Athena/Items/Cosmetics/Dances/EID_HiLowWave.EID_HiLowWave", member.jid)
  120. });
  121. });
  122.  
  123. /*fortnite.communicator.on("party:joinacknowledged:response", async data => {
  124. let party_member;
  125. let parties = {};
  126. party_member = parties[data.partyId].members;
  127. party_member.forEach(async member => {
  128. member.SetBRCharacter("/Game/Athena/Items/Cosmetics/Characters/cid_070_athena_commando_m_cupid.cid_070_athena_commando_m_cupid", member.jid);
  129. });
  130. });
  131. /*
  132.  
  133. fortnite.communicator.on("party:joinacknowledged:response", async data => {
  134. console.log('Joined Party!');
  135. member = await eg.PartyMember(data.PartyMember);
  136. console.log(data);
  137. member.forEach(async data => {
  138. member.SetBRCharacter("cid_070_athena_commando_m_cupid ", member.jid); */
  139.  
  140. fortnite.communicator.updateStatus("Follow https://twitter.com/LeaksMoog for more information on the bot.")
  141.  
  142. });
Add Comment
Please, Sign In to add comment