-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Resources
import System;
import System.Windows.Forms;
import Fiddler;
import System.Text.RegularExpressions;
var list = [
"https://api-os-takumi.mihoyo.com/",
"https://hk4e-api-os-static.mihoyo.com/",
"https://hk4e-sdk-os.mihoyo.com/",
"https://dispatchosglobal.yuanshen.com/",
"https://osusadispatch.yuanshen.com/",
"https://account.mihoyo.com/",
"https://log-upload-os.mihoyo.com/",
"https://dispatchcntest.yuanshen.com/",
"https://devlog-upload.mihoyo.com/",
"https://webstatic.mihoyo.com/",
"https://log-upload.mihoyo.com/",
"https://hk4e-sdk.mihoyo.com/",
"https://api-beta-sdk.mihoyo.com/",
"https://api-beta-sdk-os.mihoyo.com/",
"https://cnbeta01dispatch.yuanshen.com/",
"https://dispatchcnglobal.yuanshen.com/",
"https://cnbeta02dispatch.yuanshen.com/",
"https://sdk-os-static.mihoyo.com/",
"https://webstatic-sea.mihoyo.com/",
"https://webstatic-sea.hoyoverse.com/",
"https://hk4e-sdk-os-static.hoyoverse.com/",
"https://sdk-os-static.hoyoverse.com/",
"https://api-account-os.hoyoverse.com/",
"https://hk4e-sdk-os.hoyoverse.com/" // Line 24
];
class Handlers
{
static function OnBeforeRequest(oS: Session) {
var active = true;
if(active) {
if(oS.uriContains("http://overseauspider.yuanshen.com:8888/log")){
oS.oRequest.FailSession(404, "Blocked", "yourmom");
}
for(var i = 0; i < 24 ;i++) {
if(oS.uriContains(list[i])) {
oS.host = "localhost"; // This can also be replaced with another IP address.
break;
}
}
}
}
};127.0.0.1 api-os-takumi.mihoyo.com
127.0.0.1 hk4e-api-os-static.mihoyo.com
127.0.0.1 hk4e-sdk-os.mihoyo.com
127.0.0.1 dispatchosglobal.yuanshen.com
127.0.0.1 osusadispatch.yuanshen.com
127.0.0.1 account.mihoyo.com
127.0.0.1 log-upload-os.mihoyo.com
127.0.0.1 dispatchcntest.yuanshen.com
127.0.0.1 devlog-upload.mihoyo.com
127.0.0.1 webstatic.mihoyo.com
127.0.0.1 log-upload.mihoyo.com
127.0.0.1 hk4e-sdk.mihoyo.com
127.0.0.1 api-beta-sdk.mihoyo.com
127.0.0.1 api-beta-sdk-os.mihoyo.com
127.0.0.1 cnbeta01dispatch.yuanshen.com
127.0.0.1 dispatchcnglobal.yuanshen.com
127.0.0.1 cnbeta02dispatch.yuanshen.com
127.0.0.1 sdk-os-static.mihoyo.com
127.0.0.1 webstatic-sea.mihoyo.com
127.0.0.1 hk4e-sdk-os-static.hoyoverse.com
127.0.0.1 webstatic-sea.hoyoverse.com
127.0.0.1 sdk-os-static.hoyoverse.com
127.0.0.1 api-account-os.hoyoverse.com
127.0.0.1 hk4e-sdk-os.hoyoverse.com
127.0.0.1 uspider.yuanshen.com
Colored nickname and signature 🦚 (written by)
Unity supports colored text by default (See Unity Manual for more info)
By replacing them with <color=color>text</color> or <color=#HEXCODE>text</color> you can change most, if not all, strings' colors.
It's not possible to do this directly in game, you have to edit the db using something like MongoDBCompass!
- Open MongoDBCompass and connect to your db
- Go to
grasscutter/players - Make your changes. Change it inside
playerProfiletoo!
e.gnickname: "<color=#ff9ec6>na.na</color>";
signature: "Running on <color=green>Grasscutter</color>!" - Update the document
- Relog to see changes
Enjoy your colorful name ✨
Avatar/Character (written by)
This guide is recommended if you have the character/weapon. If you want to get a character at Level Z, then use !givechar [avatarID] [level]
Make sure you have created an account with the avatars/characters.
- Open MongoDBCompass
- Connect to the host (default URI is
mongodb://localhost:27017) - Navigate to Databases >
grasscutter>avatars - (Optional) Set View to
JSON View - In the Filter field, type
{ avatarId: X }whereXis the Avatar ID that you are trying to modify. Avatar IDs are 8-digits. - Click the Find next to the field.
- After the documents have been filtered, edit the document
- To change character level, change the value next to
"level" - To change character ascension, change the value next to
"promoteLevel"Check Wiki for ascension values - To change talents, expand
"proudSkillList"- To unlock the avatar's 1st Ascension Passive, add XX2101 inside
"proudSkillList", where XX is the last 2 digits of the Avatar ID. Make sure to add a,for each line. - To unlock the avatar's 4th Ascension Passive, do the same as before, but replace
2101with2201.
- To unlock the avatar's 1st Ascension Passive, add XX2101 inside
- To change character level, change the value next to
- After editing, you can now Replace.
A document in JSON view that has the Avatar ID 10000058, level 90, ascension phase 6, all talents unlocked.
- On the last line of
"proudSkillList", a,is no longer needed. - After replacing the document, make sure to restart the server for changes to take effect.
Make sure you have created an account with the weapons.
- Open MongoDBCompass
- Connect to the host (default URI is
mongodb://localhost:27017) - Navigate to Databases >
grasscutter>items - (Optional) Set View to
JSON View - In the Filter field, type
{ itemId: Y }whereYis the Item/Weapon ID that you are trying to modify. Weapon IDs are 5 digits. - Click the Find next to the field.
- After the documents have been filtered, edit the document
- To change weapon level, change the value next to
"level" - To change weapon ascension, change the value next to
"promoteLevel"Check Wiki for ascension values - To change refinement, change the value next to
"refinement"- Refinement Rank 1 = 0
- Refinement Rank 2 = 1
- Refinement Rank 3 = 2
- Refinement Rank 4 = 3
- Refinement Rank 5 = 4
- To change weapon level, change the value next to
- After editing, you can now Replace.
A document in JSON view that has the Weapon ID 12503, level 90, ascension phase 6, refinement rank 5.


