Skip to content

Commit

Permalink
Merge pull request #15 from pmagixc/patch-2
Browse files Browse the repository at this point in the history
several updates
  • Loading branch information
Kei-Luna authored May 23, 2024
2 parents a8cf9aa + 1417ced commit 4a365f6
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 14 deletions.
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ However, if you need a more detailed guide and help with the server please refer
- Build the server (refer to "Compile the actual server" in this guide.)
- Get the version.dll file from the Rsa_Patch folder and put it into the game root directory.
- Download the older version of [mihoyonet.dll](https://autopatchhk.yuanshen.com/client_app/download/pc_zip/20231030132335_iOEfPMcbrXpiA8Ca/ScatteredFiles/GenshinImpact_Data/Plugins/mihoyonet.dll) (4.2.0) and replace `GenshinImpact_Data/Plugins/mihoyonet.dll`
- Download the [Resources](https://github.com/Kei-Luna/LunaGC_Resources_4.6.0) and place it in `/Resources`
- Set useEncryption and Questing to false (it should be false by default, if not then change it)
- Download the [Resources](https://github.com/Kei-Luna/LunaGC_Resources_4.6.0), make a new folder called `resources` in the downloaded LunaGC folder and then extract the resources in that new folder.
- Set useEncryption, Questing and useInRouting to false (it should be false by default, if not then change it)
- Start the server and the game, make sure to also create an account in the LunaGC console!
- Have fun
=======
Expand Down Expand Up @@ -95,10 +95,18 @@ chmod +x gradlew
- Change AR: /prop player_level <number between 1 and 60>
- Change the game speed: /gamespeed <0.1|0.2|0.5|0.75|1.0|1.5|2.0|3.0>
### How to get all of the stuff maxed out: /g all lv90 r5 c6 c6 sl10 | Then do a separate one for the materials: /g mats x9999
### How to TP around the map:
- 0.5: Unlock the map (optional, if you do so then the waypoints and the others will disappear): /prop um 1
- 1. Open the map
- 2. Place a fishing rod marker (the last one) where you want to teleport and mark it.
### Ways to TP around the map:

Method 1:

- 1: Unlock the map: /prop um 1
- 2: Open the map
- 3: Use the waypoints

Method 2:

- 1: Open the map
- 2: Place a fishing rod marker (the last one) where you want to teleport and mark it.
### How to get avatar/entity/material etc. IDs?
- Go to [ambr.top](https://ambr.top)
- Search up the material/avatar/enemy and then the ID of it should be in the URL of the site, for example I searched for the pyro hilichurl archer; the link for it is ambr.top/en/archive/monster/21010501/pyro-hilichurl-shooter so the ID for it will be 21010501.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public void execute(final Player sender, final Player targetPlayer, final List<S

String path = "GameSpeed/speed" + args.get(0);
targetPlayer.sendPacket(new PacketWindy(path));
CommandHandler.sendMessage(sender, "GameSpeed Change!");
CommandHandler.sendMessage(sender, "GameSpeed changed to " + args.get(0) + " successfully!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public void execute(final Player sender, final Player targetPlayer, final List<S

String path = "HideUI";
targetPlayer.sendPacket(new PacketWindy(path));
CommandHandler.sendMessage(sender, "HideUI");
CommandHandler.sendMessage(sender, "UI hidden successfully.");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ public void execute(Player sender, Player targetPlayer, List<String> args) {
var fastRequire = config.server.fastRequire;

CommandHandler.sendMessage(sender, """
Modified by Kei-Luna and the contributors
Created by Meledy
- currently maintained by KingRainbow44
- formerly maintained by Birdulon
Expand All @@ -54,15 +55,15 @@ public void execute(Player sender, Player targetPlayer, List<String> args) {
Operating System: %s
Resource Information: %s
discord.gg/T5vZU6UyeG"""
discord.gg/2AxayFampP"""
.formatted(
build, playerCount, questingEnabled, scriptsEnabled, fastRequire,
System.getProperty("os.name"), resourceInfo.toString()
)
);
} else {
CommandHandler.sendMessage(sender, """
Grasscutter Discord: discord.gg/T5vZU6UyeG""");
Grasscutter Discord: discord.gg/2AxayFampP""");
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public void execute(final Player sender, final Player targetPlayer, final List<S

String path = "fog";
targetPlayer.sendPacket(new PacketWindy(path));
CommandHandler.sendMessage(sender, "NoFog");
CommandHandler.sendMessage(sender, "Successfully executed No Fog script.");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public void execute(final Player sender, final Player targetPlayer, final List<S

String path = "RemoveCensorship";
targetPlayer.sendPacket(new PacketWindy(path));
CommandHandler.sendMessage(sender, "RemoveCensorship");
CommandHandler.sendMessage(sender, "Censhorship removed successfully.");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ public void execute(final Player sender, final Player targetPlayer, final List<S

String path = "C:/Windy/" + args.get(0) + ".luac";
targetPlayer.sendPacket(new PacketWindSeedClientNotify(path));
CommandHandler.sendMessage(sender, "Windy!");
CommandHandler.sendMessage(sender, "Successfully executed the " + args.get(0) + " Lua script!");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ public void execute(Player sender, Player targetPlayer, List<String> args) {
entity.getWorld().broadcastPacket(new PacketAvatarLifeStateChangeNotify(entity.getAvatar()));
}
});
CommandHandler.sendMessage(sender, "元素エネルギーを回復しました。");
CommandHandler.sendMessage(sender, "Restored elemental energy successfully.");
}
}

0 comments on commit 4a365f6

Please sign in to comment.