Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Grasscutter
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
ziqian zhang
Grasscutter
Commits
5a2d25e4
Commit
5a2d25e4
authored
3 years ago
by
Angda Song
Committed by
Melledy
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Update teleport docs and allow overriding Y coord when teleporting
parent
2074933e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+7
-5
7 additions, 5 deletions
README.md
README_zh-CN.md
+6
-0
6 additions, 0 deletions
README_zh-CN.md
src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java
+1
-3
1 addition, 3 deletions
...emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java
with
14 additions
and
8 deletions
README.md
+
7
−
5
View file @
5a2d25e4
...
@@ -143,11 +143,13 @@ There is a dummy user named "Server" in every player's friends list that you can
...
@@ -143,11 +143,13 @@ There is a dummy user named "Server" in every player's friends list that you can
### Bonus
### Bonus
When you want to teleport to somewhere, use the ingame marking function on Map, click Confirm. You will see your
-
Teleporting
character falling from a very high destination, exact location that you marked.
-
When you want to teleport to somewhere, use the in-game marking function on Map.
-
Mark a point on the map using the fish hook marking (the last one.)
You can also specify a set Y coordinate by renaming the map marker.
-
(Optional) rename the map marker to a number to override the default Y coordinate (height, default 300.)
-
Confirm and close the map.
-
You will see your character falling from a very high destination, exact location that you marked.
# Quick Troubleshooting
# Quick Troubleshooting
*
If compiling wasn't successful, please check your JDK installation (JDK 17 and validated JDK's bin PATH variable)
*
If compiling wasn't successful, please check your JDK installation (JDK 17 and validated JDK's bin PATH variable)
...
...
This diff is collapsed.
Click to expand it.
README_zh-CN.md
+
6
−
0
View file @
5a2d25e4
...
@@ -145,6 +145,12 @@ chmod +x gradlew
...
@@ -145,6 +145,12 @@ chmod +x gradlew
### 额外功能
### 额外功能
当你想传送到某个地点, 只需要在地图中创建标记, 关闭地图后即可到达目标地点上空
当你想传送到某个地点, 只需要在地图中创建标记, 关闭地图后即可到达目标地点上空
-
传送
-
当你想传送到某个地点时,可以使用游戏里的地图标记功能。
-
用鱼钩(最后一个图标)在地图上标记一个点位。
-
(可选) 将标记名称改为数字,即可修改传送位置的Y坐标(高度,缺省值是300)。
-
确认添加标记,并关闭地图。
-
你会看到你的角色从你选定点位的正上方高空落下。
# 快速排除问题
# 快速排除问题
...
...
This diff is collapsed.
Click to expand it.
src/main/java/emu/grasscutter/server/packet/recv/HandlerMarkMapReq.java
+
1
−
3
View file @
5a2d25e4
...
@@ -70,9 +70,7 @@ public class HandlerMarkMapReq extends PacketHandler {
...
@@ -70,9 +70,7 @@ public class HandlerMarkMapReq extends PacketHandler {
}
}
private
void
teleport
(
Player
player
,
MapMark
mapMark
)
{
private
void
teleport
(
Player
player
,
MapMark
mapMark
)
{
// Increased height means you can fly to the top of dragonspine now,
float
y
=
isInt
(
mapMark
.
getName
())
?
Integer
.
parseInt
(
mapMark
.
getName
())
:
300
;
// at the cost of slightly longer falling to your destination.
float
y
=
700
;
float
x
=
mapMark
.
getPosition
().
getX
();
float
x
=
mapMark
.
getPosition
().
getX
();
float
z
=
mapMark
.
getPosition
().
getZ
();
float
z
=
mapMark
.
getPosition
().
getZ
();
player
.
getPos
().
set
(
x
,
y
,
z
);
player
.
getPos
().
set
(
x
,
y
,
z
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment