MoogLeaks

asd

Apr 21st, 2019
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. const EGClient = require('epicgames-client').Client;
  2. const Fortnite = require('epicgames-fortnite-client');
  3. const EInputType = require('epicgames-client').EInputType;
  4.  
  5. var = require('lodash');
  6.  
  7. accountid = 'your bot accountID';
  8. status = 'status you want';
  9.  
  10. let eg = new EGClient({
  11. email: 'email',
  12. password: 'password',
  13. debug: console.log
  14. });
  15.  
  16. (async => {
  17.  
  18. if(!await eg.init() || !await eg.login())
  19. throw 'Cannot connect to Epic Games servers...';
  20.  
  21. let communicator = eg.communicator;
  22. let fortnite = await eg.runGame(Fortnite);
  23.  
  24. communicator.updateStatus(status);
  25.  
  26. communicator.on('friend:request', async data => {
  27. if(data.friend.id != accountid){
  28. eg.acceptFriendRequest(data.friend.id).then(async (ac_result) => {
  29. /adding friend ops was seccessful/
  30. });
  31. }
  32. });
  33.  
  34. fortnite.communicator.on('party:invitation', async invitation => {
  35.  
  36. invitation.party.me.setBRCharacter('/Game/Athena/Items/Cosmetics/Characters/CID_029_Athena_Commando_F_Halloween.CID_029_Athena_Commando_F_Halloween');
  37.  
  38. await invitation.accept();
  39.  
  40. invitation.party.me.setBattlePass(true, level, xp,otherxp);
  41.  
  42. });
  43.  
  44. fortnite.communicator.on('friend:message', async data => {
  45.  
  46. if(data.message == 'ping'){
  47. communicator.sendMessage(data.friend.id, 'pong');
  48. }
  49.  
  50. });
  51.  
  52. fortnite.communicator.on("party:member:data", async data => {
  53. //console.log(data);
  54. //member.setBrBanner(, )
  55.  
  56. eg.communicator.on('friend:message', async data => {
  57. let author = await eg.getProfile(data.friend.id);
  58. let emotemessage;
  59. let skinmessage;
  60. let backmessage;
  61. let id = data.friend.id;
  62. console.log(author.displayName + ': ' + data.message);
  63.  
  64. // Message reader^
  65. let args = data.message.split(" ");
  66. let command = args[0];
  67. let cosmeticid = args[1];
  68. let passLevel = args[1];
  69. if(command == "!play"){
  70. activeparty.members.forEach(async member => {
  71. emotemessage = cosmeticid;
  72. member.setEmote("/Game/Athena/Items/Cosmetics/Dances/" + "EID_" + emotemessage + "." + "EID_" + emotemessage, member.jid);
  73. })
  74. }
  75. else if (command == "!skin"){
  76. activeparty.members.forEach(async member => {
  77. skinmessage = cosmeticid;
  78. member.setBRCharacter("/Game/Athena/Items/Cosmetics/Characters/" + skinmessage + "." + skinmessage, member.jid);
  79. })
  80. }
  81. else if (command == "!stop"){
  82. activeparty.members.forEach(async member => {
  83. member.clearEmote(member.jid)
  84. })
  85. }
  86. else if (command == "!level"){
  87. activeparty.members.forEach(async member => {
  88. passmessage = passLevel;
  89. member.setBattlePass(true, passmessage, passmessage, passmessage, member.jid)
  90. console.log("set level to" + " " + passmessage)
  91. })}
  92.  
  93. else if (command == "!back"){
  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.  
  100. else{
  101. fortnite.communicator.sendMessage(id, "Insert an emote or skin please");
  102. }})
  103. });
  104.  
  105. })();
Add Comment
Please, Sign In to add comment