游戏地址
#Xun>0 www.fgcq996.com -k3WY&9, 那年传奇百区1.76 5R#:ALwX: Now2ad& 找到 lua_State 然后调用下面的函数就能实现功能
lp]q%P 一个跑单狗注意qq1946913194
4"V6k4i5 游戏账号密码。fanren9527 qq2293307009 J2$=H1-
bzX/Zts 搞完演示完,删除好友跑单 {
*Wc`ZBY d#HN'(2t --自动寻路Ex
; 5!8LmZ0# function API_AutoMoveEx(mapX, mapY)
FVoKNaK- ssr.AutoMoveBegin(mapX, mapY, ssr.GetCurMapData().mapID)
~*G}+Ur$2 local inputProxy = global.Facade:retrieveProxy(global.ProxyTable.PlayerInputProxy)
G#z9=NF~V local pathPoints = inputProxy:GetPathFindPoints()
KRj3??b if pathPoints == nil then
vP/sG5$x return 0
; DI"9 end
]iiB|xT return #pathPoints
koT: r end
"I45=nf H~ =;yy --自动寻路
Z
,
98 function API_AutoMove(mapX, mapY)
:J6FI6 ssr.AutoMoveBegin(mapX, mapY, ssr.GetCurMapData().mapID)
N_y#Y{c{( local inputProxy = global.Facade:retrieveProxy(global.ProxyTable.PlayerInputProxy)
uulzJbV,K local pathPoints = inputProxy:GetPathFindPoints()
LQa1p if pathPoints == nil then
lJBZ0 return 0
:j%
B(@b end
g+u5u\k return #pathPoints
7e<\11uI]a end
; HjT Y/34~lhyl --停止寻路
\'Ca%j function API_AutoMoveEnd()
>tV:QP]Y global.Facade:sendNotification(global.NoticeTable.AutoMoveEnd)
VI^~I;M^ end
J y0TV jA
q&EwD(k --自动打怪
=D?{d{JT function API_AutoFight(isAFK)
wEbO|S+K1 if isAFK then
\&%y4=y<sE if not IsAFKState() then
x!9bvQT global.networkCtl:SendMsg(global.MsgType.MSG_CS_AUTOPLAYGAME_REQUEST, 1)
!o/;"'&E global.Facade:sendNotification(global.NoticeTable.AFKBegin)
~bX ) %jC end
Kr;F4G|Qt else
hHqsI`7c if IsAFKState() then
F}_Zh9/$( global.networkCtl:SendMsg(global.MsgType.MSG_CS_AUTOPLAYGAME_REQUEST, 2)
u
BBW2 global.Facade:sendNotification(global.NoticeTable.AFKEnd)
C=PV-Ul+ end
+Ram%"Zwh end
b]5S9^=LI end
fZJ O} /)xQ# yfX function IsAFKState()
0:k
MnHn\ local AutoProxy = global.Facade:retrieveProxy(global.ProxyTable.Auto)
azpXE return AutoProxy:IsAFKState()
;i;;{j@$i end
:<E\&6# oC ;WsV.n --打开自动穿戴
<x1H:8A function API_AutoDress()
fuA8jx --不抢别人归属
^VlPnx8y= global.MMO.SETTING_IDX_NO_ATTACK_HAVE_BELONG =1
'd|E>8fejG global.MMO.SETTING_IDX_AUTO_PUT_IN_EQUIP = 1
^]?Yd )v local ServerOptionsProxy = global.Facade:retrieveProxy(global.ProxyTable.ServerOptionsProxy)
n(el ServerOptionsProxy._data["autoDress"] = 1
/pnQKy. global.ConstantConfig.autousetimes = 0
C
)qP9uW end
eqWb>$ 97SG;
,6 --强制打开自动挂机拾取
tsqWnz=) function API_AutoPick()
5[>N[}Ck> local ItemConfigProxy = global.Facade:retrieveProxy(global.ProxyTable.ItemConfigProxy)
I KDh)Zm local config = ItemConfigProxy.config
OL$^7F
B for k, v in pairs(config) do
3ocRq
%%K --local res = string.gsub(v.pickset, "0", "1")
qt#4i.Iu+ v.pickset = v.pickset .. 1
+jz%:D end
I'16- end
f%TP>)jag! 55|.MXzq --获取人物坐标
&5;y&dh function API_GetMapXY()
FuZLE%gP return ssr.GetMainPlayerMapPos()
( 0Z3Ksfj1 end
l j*J|%~ +\`t@Ht# --获取人物状态
.FAuM~_99b function API_GetAction()
aQhr$aH local player = global.gamePlayerController:GetMainPlayer()
"]{"4qV1= local list = global.playerManager.mPlayersInCurrViewField
p`LPO return player:GetAction()
1'g{tP"d end
mnWbV\ VY 7_ah1IEK --设置宠物状态
HA%r:Px function API_PetSleep(isSleep)
nXF|AeAco local SummonsProxy = global.Facade:retrieveProxy(global.ProxyTable.SummonsProxy)
>iB-gj}>X if not SummonsProxy:IsAlived() then
wKs-<b%; return false
TANt*r7 end
5mYI5~
p if isSleep then
) "Toh=x] SummonsProxy:RequestModeChange(2)
H(Q|qckj else
7Ke#sW.HN SummonsProxy:RequestModeChange(4)
Ty>g:#bogI end
|MXv
w6P end
-}2e+DyAy }]?U.
]- --获取人物数据
C:d$
function API_GetGamePlayer()
Ayi
Uz local player = global.gamePlayerController:GetMainPlayer()
#>byP?)n local list = global.playerManager.mPlayersInCurrViewField
hV4B?##O local person = {}
,\RxKSU person["等级"] = player:GetLevel()
4FgY!k person["职业"] = player:GetJobID()
E$84c+ person["名字"] = player:GetName()
C]+T5W\"<B person["金币"] = ssr.GetMoneyCountById(1)
IKV:J9 person["元宝"] = ssr.GetMoneyCountById(2)
mh8~w~/[ person["绑金"] = ssr.GetMoneyCountById(3)
tpi>$:e return person
)
<1}`9G end
1z[GY RSt ePJtdKN
: function API_GetGamePlayerLevel()
!56gJJ-r local player = global.gamePlayerController:GetMainPlayer()
A/"p PO return player:GetLevel()
nob^
I5? end
F
DCHB~D f@a@R$y --获取周围怪物
iy_\1jB0 function API_GetMonster()
zx{O/v
KG local list = global.monsterManager.mMonstersInCurrViewField
hq^@t6!C\m local actors = {}
N~An}QX| for k, v in pairs(list) do
S*1Km& local actor = {}
NCM&6<_ actor["mID"] = v:GetID()
:Gz# 4k actor["mName"] = v:GetName()
r?= 7#/] actor["mRace"] = v:GetRace()
1y5$ actor["mType"] = v:GetType()
Soa5TM actor["mSubType"] = v:GetSubType()
B:\TvWbu actor["mX"] = v:GetMapX()
9v<Sng actor["mY"] = v:GetMapY()
| <ZkJR3B actor["mAction"] = v:GetAction()
:i6k6= actor["mTypeIndex"] = v:GetTypeIndex()
-cHX3UAEI
actor["mAnimationID"] = v:GetAnimationID()
&`'gO
9 actor["mLv"] = (v.GetLevel and { v:GetLevel() } or { 0 })[1]
7E9h!<5v actor["mSex"] = (v.GetSexID and { v:GetSexID() } or { 0 })[1]
r.:H` actor["mJobID"] = (v.GetJobID and { v:GetJobID() } or { 0 })[1]
rn?:utP actor["mHP"] = (v.GetHP and { v:GetHP() } or { 0 })[1]
}[<eg>9# actor["mHPMax"] = (v.GetMaxHP and { v:GetMaxHP() } or { 0 })[1]
VoJelyzh actor["mMP"] = (v.GetMP and { v:GetMP() } or { 0 })[1]
~xg1mS9d actor["mMPMax"] = (v.GetMaxMP and { v:GetMaxMP() } or { 0 })[1]
e[@q{. actor["mOwnerID"] = (v.GetOwnerID and { v:GetOwnerID() } or { "" })[1]
*?+maK{5+ actor["mOwnerName"] = (v.GetOwnerName and { v:GetOwnerName() } or { "" })[1]
Y(]&j`% actor["mGuildName"] = (v.mGuildName and { v.mGuildName } or { "" })[1]
,JcQp=g actor["mColor"] = "0xFFFFFF"
1!E+(Iq if v:GetType() == global.MMO.ACTOR_PLAYER then
nJ4CXSdE local batch_label = global.MMO.HUD_TYPE_BATCH_LABEL
E0 Vl}b local label_name = global.MMO.HUD_LABEL_NAME
jbqhNsTNK local hudName = global.HUDManager:GetHUD(v:GetID(), batch_label, label_name)
:o
H" if hudName then
GBZx@B[TY actor["mColor"] = GetColorHexFromRBG(hudName:getColor())
.#b!
# end
O$%C(n( end
Ek ,s6B)'d table.insert(actors, actor);
;mLbJT
end
),-4\!7 iM Xl}3 return actors
nV0"q|0K; end
B94mh F=hf
bCF5x --遍历周围玩家
{ [4Y(l1 function API_GetPlayer()
;6} *0V_!k local list = global.playerManager.mPlayersInCurrViewField
O>Nop5#o local actors = {}
4565U for k, v in pairs(list) do
swVq%]')" local actor = {}
BK'!WX actor["mID"] = v:GetID()
9 0[gXj actor["mName"] = v:GetName()
GGs3r;(t actor["mRace"] = v:GetRace()
/y,~? actor["mType"] = v:GetType()
t
_Q/v actor["mSubType"] = v:GetSubType()
{=,?]Z+ actor["mX"] = v:GetMapX()
ud`.}H~aB actor["mY"] = v:GetMapY()
.O'gD.|^N actor["mAction"] = v:GetAction()
<)]B$~
(a actor["mTypeIndex"] = v:GetTypeIndex()
OwQ 9y<v actor["mAnimationID"] = v:GetAnimationID()
h(I~HZ[K&T actor["mLv"] = (v.GetLevel and { v:GetLevel() } or { 0 })[1]
T]nZ3EZ actor["mSex"] = (v.GetSexID and { v:GetSexID() } or { 0 })[1]
5U[;T]{)e actor["mJobID"] = (v.GetJobID and { v:GetJobID() } or { 0 })[1]
v5t`?+e actor["mHP"] = (v.GetHP and { v:GetHP() } or { 0 })[1]
y )v'0q actor["mHPMax"] = (v.GetMaxHP and { v:GetMaxHP() } or { 0 })[1]
G2k r~FG actor["mMP"] = (v.GetMP and { v:GetMP() } or { 0 })[1]
$2^V#GWo actor["mMPMax"] = (v.GetMaxMP and { v:GetMaxMP() } or { 0 })[1]
'C~NQ{1TV actor["mOwnerID"] = (v.GetOwnerID and { v:GetOwnerID() } or { "" })[1]
(0q
dU; actor["mOwnerName"] = (v.GetOwnerName and { v:GetOwnerName() } or { "" })[1]
i)0*J?l= actor["mGuildName"] = (v.mGuildName and { v.mGuildName } or { "" })[1]
%xR;8IO actor["mColor"] = "0xFFFFFF"
kvdzD6T
9 if v:GetType() == global.MMO.ACTOR_PLAYER then
m4nJ9<- local batch_label = global.MMO.HUD_TYPE_BATCH_LABEL
IrXC/?^h local label_name = global.MMO.HUD_LABEL_NAME
KW.S)+<H& local hudName = global.HUDManager:GetHUD(v:GetID(), batch_label, label_name)
HFx8v!^5N if hudName then
'8>#`Yba actor["mColor"] = GetColorHexFromRBG(hudName:getColor())
UG+wRX :dA end
7;n'4LIa9 end
~"5WQK`@ table.insert(actors, actor);
~2~KcgPsq end
S&V5zB""n return actors
'W$jHs end
AdB5D_ Ir +gOCl*L --遍历周围玩家EX
KTk%Np
function API_GetPlayerExe()
WZCX&ui