Skip to content

Instantly share code, notes, and snippets.

@hhankj2u
Last active January 15, 2020 04:55
Show Gist options
  • Save hhankj2u/b1faf7e5e5ce2991de942cf8550094bd to your computer and use it in GitHub Desktop.
Save hhankj2u/b1faf7e5e5ce2991de942cf8550094bd to your computer and use it in GitHub Desktop.
VoDaoTheGioi
{
"info": {
"_postman_id": "eb2ddc09-3624-411a-a13d-eceb4954bec1",
"name": "VoDao",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "127.0.0.1:14060/item?optType=310&playerID=7675&content=vvvbnvbn&sign=EDB54B9199B801BD57CE713B12A3A83B&title=&itemList&receiveNames=hhank&id=7675&cmd=50#",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "127.0.0.1:14060/item?optType=310&playerID=7675&content=vvvbnvbn&sign=EDB54B9199B801BD57CE713B12A3A83B&title=&itemList=&receiveNames=hhank&id=7675&cmd=50#",
"host": [
"127",
"0",
"0",
"1"
],
"port": "14060",
"path": [
"item"
],
"query": [
{
"key": "optType",
"value": "310"
},
{
"key": "playerID",
"value": "7675"
},
{
"key": "content",
"value": "vvvbnvbn"
},
{
"key": "sign",
"value": "EDB54B9199B801BD57CE713B12A3A83B"
},
{
"key": "title",
"value": ""
},
{
"key": "itemList",
"value": ""
},
{
"key": "receiveNames",
"value": "hhank"
},
{
"key": "id",
"value": "7675"
},
{
"key": "cmd",
"value": "50#"
}
]
}
},
"response": []
},
{
"name": "127.0.0.1:14060/item?optType=310&playerID=7675&content=vvvbnvbn&sign=EDB54B9199B801BD57CE713B12A3A83B&title=&itemList&receiveNames=hhank&id=7675&cmd=1%239600,500,0",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "127.0.0.1:14060/item?optType=310&playerID=7675&content=vvvbnvbn&sign=EDB54B9199B801BD57CE713B12A3A83B&title=&itemList&receiveNames=hhank&id=7675&cmd=1%239600,500,0",
"host": [
"127",
"0",
"0",
"1"
],
"port": "14060",
"path": [
"item"
],
"query": [
{
"key": "optType",
"value": "310"
},
{
"key": "playerID",
"value": "7675"
},
{
"key": "content",
"value": "vvvbnvbn"
},
{
"key": "sign",
"value": "EDB54B9199B801BD57CE713B12A3A83B"
},
{
"key": "title",
"value": ""
},
{
"key": "itemList",
"value": ""
},
{
"key": "receiveNames",
"value": "hhank"
},
{
"key": "id",
"value": "7675"
},
{
"key": "cmd",
"value": "1%239600,500,0"
}
]
}
},
"response": []
},
{
"name": "127.0.0.1:14060/player?optType=105&playerID=7674",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "127.0.0.1:14060/player?optType=105&playerID=7674",
"host": [
"127",
"0",
"0",
"1"
],
"port": "14060",
"path": [
"player"
],
"query": [
{
"key": "optType",
"value": "105"
},
{
"key": "playerID",
"value": "7674"
}
]
}
},
"response": []
},
{
"name": "127.0.0.1:14060/dealData?optType=808",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "127.0.0.1:14060/dealData?optType=808",
"host": [
"127",
"0",
"0",
"1"
],
"port": "14060",
"path": [
"dealData"
],
"query": [
{
"key": "optType",
"value": "808"
}
]
}
},
"response": []
}
],
"protocolProfileBehavior": {}
}

Ghi chú chung

  • Item tìm theo hình trong folder VoDaoTheGioi\wwwroot\res\item
  • Tỉ lệ RATE = 1000 (100%)

Database

vodao_base_01
Table
t_base_fushu_uplevel Cường hóa, RATE = 1000
t_base_item_drop RATE = 1000
t_base_lucky_treasury RATE < 1000 sửa thành RATE = 800
t_base_player EXP kinh nghiệm lên level, PRO chỉ số khi lên level: tăng các số sau 91,92,93,94 (91,X;92,Y;93,Z;94,T)
t_base_shop Replace tất cả item_id hiện có trong bảng để có thể mua trên được trên shop
t_base_strong_cost RATE = 1000
  • t_base_game_task: Giảm số lượng quái cần đánh
GAME_TASK_ID OLD NEW
20000 12,101202,11200,20,101205 12,101202,11200,1,101205
200025 12,200002,11210,10,200007;12,200003,11215,10,200008;12,200004,11220,10,200009 12,200002,11210,1,200007;12,200003,11215,1,200008;12,200004,11220,1,200009
200130 12,90003,11250,10,30004;12,90002,11255,10,30003 12,90003,11250,1,30004;12,90002,11255,1,30003
200225 11,90032,500,30048 11,90032,1,30048
200230 12,90034,11265,200,30050;12,90036,11270,200,30052 12,90034,11265,1,30050;12,90036,11270,1,30052
200240 11,90069,120,30095 11,90069,1,30095
200330 12,90076,11305,200,30102;12,90074,11310,200,30100 12,90076,11305,1,30102;12,90074,11310,1,30100
vodao_game_01
  • Hạn chế chỉnh trực tiếp, nên dùng API
Table
t_player Danh sách người chơi
t_player_property Các loại tiền, tu vi, danh vọng,...
t_player_task Nhiệm vụ đang làm

Code

  • Tool view code: http://java-decompiler.github.io/
  • Chỉnh sửa code:
    • Dùng tool JD để lấy file .java
    • Chỉnh sửa file .java theo ý thích
    • Compile file .java thành .class, rồi thay thế file .class
cd VoDaoTheGioi
set path=%cd%\jdk\bin;
set JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
cd vodao_s1
javac -classpath ./843.jar;./bin;./lib/bcprov-jdk16-145.jar;./lib/bonecp-0.8.0-rc3.jar;./lib/commons-codec-1.4.jar;./lib/commons-dbutils-1.5.jar;./lib/disruptor-3.2.1-sources.jar;./lib/disruptor-3.2.1.jar;./lib/flex-messaging-common.jar;./lib/flex-messaging-core.jar;./lib/flex-messaging-opt.jar;./lib/flex-messaging-proxy.jar;./lib/flex-messaging-remoting.jar;./lib/guava-14.0-rc2.jar;./lib/jetty-annotations-8.1.12.v20130726.jar;./lib/jetty-client-8.1.12.v20130726.jar;./lib/jetty-continuation-8.1.12.v20130726.jar;./lib/jetty-http-8.1.12.v20130726.jar;./lib/jetty-io-8.1.12.v20130726.jar;./lib/jetty-security-8.1.12.v20130726.jar;./lib/jetty-server-8.1.12.v20130726.jar;./lib/jetty-servlet-8.1.12.v20130726.jar;./lib/jetty-servlets-8.1.12.v20130726.jar;./lib/jetty-util-8.1.12.v20130726.jar;./lib/jetty-xml-8.1.12.v20130726.jar;./lib/json.jar;./lib/log4j-1.2.16.jar;./lib/mysql-connector-java-5.1.13-bin.jar;./lib/netty-3.9.0.Final-sources.jar;./lib/netty-3.9.0.Final.jar;./lib/netty-all-4.0.25.Final-sources.jar;./lib/netty-all-4.0.25.Final.jar;./lib/quartz-2.2.0.jar;./lib/quartz-jobs-2.2.0.jar;./lib/servlet-api-3.0.jar;./lib/slf4j-api-1.6.6.jar;./lib/slf4j-simple-1.6.6.jar;./lib/commons-pool2-2.0.jar;./lib/jedis-2.6.0.jar;./lib/gson-2.3.1-sources.jar;./lib/gson-2.3.1.jar;./lib/trove4j-3.0.3.jar GMAction.java
  • Các class cần chú ý:
    com.jetty.web.WebServer
    com.action.impl.GMAction

API

  • Chú ý: Khi gọi GMAction thay dấu # thành %23
  • Một số API
API
Hoàn thành nhiệm vụ chính curl --location --request POST '127.0.0.1:14060/item?optType=310&playerID=7675&content=vvvbnvbn&sign=EDB54B9199B801BD57CE713B12A3A83B&title=&itemList&receiveNames=hhank&id=7675&cmd=50'
Thêm item cho user curl --location --request POST '127.0.0.1:14060/item?optType=310&playerID=7675&content=vvvbnvbn&sign=EDB54B9199B801BD57CE713B12A3A83B&title=&itemList&receiveNames=hhank&id=7675&cmd=1%2310025,1,0'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment