游戏地址
PoF3fy%. www.fgcq996.com N;|^C{uz 那年传奇百区1.76 3{3@>
8{w g Y~r{ 找到 lua_State 然后调用下面的函数就能实现功能
b4_0XmL 一个跑单狗注意qq1946913194
|[>@Kk4 游戏账号密码。fanren9527 qq2293307009 \2s`mCY
=D/zC'l 搞完演示完,删除好友跑单 O6;"cUv l\s!A&L --自动寻路Ex
0ae8Xm3J@R function API_AutoMoveEx(mapX, mapY)
f(5(V
% ssr.AutoMoveBegin(mapX, mapY, ssr.GetCurMapData().mapID)
lDYgtUKG local inputProxy = global.Facade:retrieveProxy(global.ProxyTable.PlayerInputProxy)
O{X~,E
m=q local pathPoints = inputProxy:GetPathFindPoints()
>u$8Z if pathPoints == nil then
SQ>i:D; return 0
ZUQ
_u end
4 ThFC return #pathPoints
f,HUr% @ end
)Zr9
`3[ =hKAwk/^ --自动寻路
o&q>[c function API_AutoMove(mapX, mapY)
u;_~{VJ- ssr.AutoMoveBegin(mapX, mapY, ssr.GetCurMapData().mapID)
uNzc,OH local inputProxy = global.Facade:retrieveProxy(global.ProxyTable.PlayerInputProxy)
bT.q@oU local pathPoints = inputProxy:GetPathFindPoints()
"Q.* if pathPoints == nil then
S!b18|o
" return 0
~18a&T: end
`t U return #pathPoints
p
u(mHB end
lME>U_E E^i]eK*
" --停止寻路
:skR6J function API_AutoMoveEnd()
~ skp}g] global.Facade:sendNotification(global.NoticeTable.AutoMoveEnd)
P"vrYom end
k]@]a +Y%6y]8 --自动打怪
IO+]^nY` function API_AutoFight(isAFK)
sasurR|; if isAFK then
LCHMh6 if not IsAFKState() then
WkTJ M
global.networkCtl:SendMsg(global.MsgType.MSG_CS_AUTOPLAYGAME_REQUEST, 1)
fM;,9 global.Facade:sendNotification(global.NoticeTable.AFKBegin)
;/K2h_=3z end
o
<q*3L5 else
V"4Z9Qg} if IsAFKState() then
Op'a=4x] global.networkCtl:SendMsg(global.MsgType.MSG_CS_AUTOPLAYGAME_REQUEST, 2)
CFaY= Cy global.Facade:sendNotification(global.NoticeTable.AFKEnd)
nYyhQX~]B end
rpT.n-H>%A end
9"P|Csj end
dVQ[@u1, 79h~w{IT@ function IsAFKState()
fW-C`x local AutoProxy = global.Facade:retrieveProxy(global.ProxyTable.Auto)
mOE *[S) return AutoProxy:IsAFKState()
]i*ucW4 end
&~,4$&_ C%XO|sP --打开自动穿戴
i5 rkP`)j function API_AutoDress()
PXb$]HV --不抢别人归属
g@`i7qN global.MMO.SETTING_IDX_NO_ATTACK_HAVE_BELONG =1
c2npma]DZ global.MMO.SETTING_IDX_AUTO_PUT_IN_EQUIP = 1
z:,PwLU local ServerOptionsProxy = global.Facade:retrieveProxy(global.ProxyTable.ServerOptionsProxy)
eM5?fE&!& ServerOptionsProxy._data["autoDress"] = 1
|9I)YD global.ConstantConfig.autousetimes = 0
ix3LB!k< end
REUxXaN>Z =hPXLCeC --强制打开自动挂机拾取
WTvUz.Et function API_AutoPick()
HxG8'G local ItemConfigProxy = global.Facade:retrieveProxy(global.ProxyTable.ItemConfigProxy)
o<`hj&s local config = ItemConfigProxy.config
%=aKW[uq] for k, v in pairs(config) do
_[2@2q0 --local res = string.gsub(v.pickset, "0", "1")
g$nS6w|5H v.pickset = v.pickset .. 1
xe`^)2z end
|mb2<! ag{ end
7j]v_2S` xVm-4gB --获取人物坐标
_;
1{feR_ function API_GetMapXY()
GShxPH{_j return ssr.GetMainPlayerMapPos()
z5>I9R^q; end
7>E.0DP
I%[e6qX@ --获取人物状态
O`5,L[i1y function API_GetAction()
*T5;dh ( local player = global.gamePlayerController:GetMainPlayer()
*G19fJ[5 local list = global.playerManager.mPlayersInCurrViewField
m@4Dz| return player:GetAction()
$]2)r[eA) end
jJ,_-ui 6Z2 ,:j; --设置宠物状态
DP ? dC` function API_PetSleep(isSleep)
S#/%#k103 local SummonsProxy = global.Facade:retrieveProxy(global.ProxyTable.SummonsProxy)
pO`KtagL if not SummonsProxy:IsAlived() then
X]0>0=^ return false
ZaFt4# end
O `}EiyV if isSleep then
:L[>!~YG_n SummonsProxy:RequestModeChange(2)
L44m!%q else
r"7n2
SummonsProxy:RequestModeChange(4)
;P@]7vkff end
m#7(<# end
oUv26t
~ 7;'33Bm* --获取人物数据
F/>_PH57 function API_GetGamePlayer()
-pC8 L< local player = global.gamePlayerController:GetMainPlayer()
7{;it uqX local list = global.playerManager.mPlayersInCurrViewField
FwCb$yE#M local person = {}
*3GV9'-P person["等级"] = player:GetLevel()
9j,g&G.K person["职业"] = player:GetJobID()
!|
cg= person["名字"] = player:GetName()
yeo&Qz2vU person["金币"] = ssr.GetMoneyCountById(1)
oo5=5s6 3} person["元宝"] = ssr.GetMoneyCountById(2)
%q {q.(M# person["绑金"] = ssr.GetMoneyCountById(3)
R@vcS=m7 return person
E[H end
zKJ2~= BrV{X&>[i function API_GetGamePlayerLevel()
kx"10Vw local player = global.gamePlayerController:GetMainPlayer()
+&EXTZ@o return player:GetLevel()
%Tm*^ end
*IG
$"nu ]\$/:f-2 --获取周围怪物
\/a6h function API_GetMonster()
r* *zjv> local list = global.monsterManager.mMonstersInCurrViewField
M([#Py9h local actors = {}
(Fv
tL* for k, v in pairs(list) do
xs$$fPAQ local actor = {}
yK~=6^M actor["mID"] = v:GetID()
CD|[PkjW actor["mName"] = v:GetName()
"LMj,qZ1! actor["mRace"] = v:GetRace()
T<AT&4 actor["mType"] = v:GetType()
4fEDg{T actor["mSubType"] = v:GetSubType()
!IxO''4 actor["mX"] = v:GetMapX()
NxT"A)u actor["mY"] = v:GetMapY()
tK#R`AQ actor["mAction"] = v:GetAction()
K5""%O+ actor["mTypeIndex"] = v:GetTypeIndex()
UX 1
)(( actor["mAnimationID"] = v:GetAnimationID()
xP;r3u
s actor["mLv"] = (v.GetLevel and { v:GetLevel() } or { 0 })[1]
WjV15\, actor["mSex"] = (v.GetSexID and { v:GetSexID() } or { 0 })[1]
dUI5,3* actor["mJobID"] = (v.GetJobID and { v:GetJobID() } or { 0 })[1]
'D\Q$q actor["mHP"] = (v.GetHP and { v:GetHP() } or { 0 })[1]
k
B\{1; actor["mHPMax"] = (v.GetMaxHP and { v:GetMaxHP() } or { 0 })[1]
JxAQ,oOO actor["mMP"] = (v.GetMP and { v:GetMP() } or { 0 })[1]
e[S`Dm"i)' actor["mMPMax"] = (v.GetMaxMP and { v:GetMaxMP() } or { 0 })[1]
I2cz:U7 actor["mOwnerID"] = (v.GetOwnerID and { v:GetOwnerID() } or { "" })[1]
}f}. >B0# actor["mOwnerName"] = (v.GetOwnerName and { v:GetOwnerName() } or { "" })[1]
.KsR48g8 actor["mGuildName"] = (v.mGuildName and { v.mGuildName } or { "" })[1]
wj|Zn+{"nF actor["mColor"] = "0xFFFFFF"
Vz{+3vfra6 if v:GetType() == global.MMO.ACTOR_PLAYER then
]Bw0Qq F# local batch_label = global.MMO.HUD_TYPE_BATCH_LABEL
>DqF>w.1 local label_name = global.MMO.HUD_LABEL_NAME
:6^7l/p local hudName = global.HUDManager:GetHUD(v:GetID(), batch_label, label_name)
sp9gz~Kq if hudName then
J=4>zQLW actor["mColor"] = GetColorHexFromRBG(hudName:getColor())
b
z>X~
end
cr7MvXF- end
$vO&C6m$ table.insert(actors, actor);
O] _4pP end
=OVDJ0ozZ 8)i""OD@I return actors
g?C;b>4 end
Jd2.j?P= ']]d-~: --遍历周围玩家
~/
%Xm< function API_GetPlayer()
$o^Z$VmL local list = global.playerManager.mPlayersInCurrViewField
,Kit@`P% local actors = {}
cTq
kM@S for k, v in pairs(list) do
cNs'GfD} local actor = {}
1J@Iekat actor["mID"] = v:GetID()
vqf$(" actor["mName"] = v:GetName()
<Au2e actor["mRace"] = v:GetRace()
H=t"qEp actor["mType"] = v:GetType()
XR5KJl actor["mSubType"] = v:GetSubType()
2iAC_"n actor["mX"] = v:GetMapX()
5E:$\z; actor["mY"] = v:GetMapY()
Bf_$BCyGW actor["mAction"] = v:GetAction()
'`];=QY9pg actor["mTypeIndex"] = v:GetTypeIndex()
|@qw actor["mAnimationID"] = v:GetAnimationID()
3r\8v`^> actor["mLv"] = (v.GetLevel and { v:GetLevel() } or { 0 })[1]
[
,%=\%5 actor["mSex"] = (v.GetSexID and { v:GetSexID() } or { 0 })[1]
.8hI
ad actor["mJobID"] = (v.GetJobID and { v:GetJobID() } or { 0 })[1]
2hE(h actor["mHP"] = (v.GetHP and { v:GetHP() } or { 0 })[1]
C*9X;+S0J actor["mHPMax"] = (v.GetMaxHP and { v:GetMaxHP() } or { 0 })[1]
i;[y!U actor["mMP"] = (v.GetMP and { v:GetMP() } or { 0 })[1]
FhE{khc# actor["mMPMax"] = (v.GetMaxMP and { v:GetMaxMP() } or { 0 })[1]
gr=h!'m actor["mOwnerID"] = (v.GetOwnerID and { v:GetOwnerID() } or { "" })[1]
%x)bZ=
An actor["mOwnerName"] = (v.GetOwnerName and { v:GetOwnerName() } or { "" })[1]
M[uWX= actor["mGuildName"] = (v.mGuildName and { v.mGuildName } or { "" })[1]
s?SspuV actor["mColor"] = "0xFFFFFF"
>4 OXG7.&f if v:GetType() == global.MMO.ACTOR_PLAYER then
ao(T81 local batch_label = global.MMO.HUD_TYPE_BATCH_LABEL
1GY2aZ@ local label_name = global.MMO.HUD_LABEL_NAME
%|Ps|iV local hudName = global.HUDManager:GetHUD(v:GetID(), batch_label, label_name)
[U\?+@E* if hudName then
{4"V)9o-1> actor["mColor"] = GetColorHexFromRBG(hudName:getColor())
:5d>^6eoB? end
K%^n. end
Rx%S<i;9 table.insert(actors, actor);
*O?c~UJhhV end
_n&Nw7d2
M return actors
rS8a/d~;0 end
B.z$0=b %+7]/_JO&