游戏地址
T je o*n^ www.fgcq996.com IQk# 那年传奇百区1.76 @sgT[P*ut *1o+o$hY2 找到 lua_State 然后调用下面的函数就能实现功能
quCWc2pXX 一个跑单狗注意qq1946913194
n ]6
0 游戏账号密码。fanren9527 qq2293307009 aCYm$6LmA v0hfY 搞完演示完,删除好友跑单 ['}^;Y?*o mNnw G)
;$ --自动寻路Ex
V&4:nIS>z function API_AutoMoveEx(mapX, mapY)
lE
YT{ ssr.AutoMoveBegin(mapX, mapY, ssr.GetCurMapData().mapID)
~J. Fl[ local inputProxy = global.Facade:retrieveProxy(global.ProxyTable.PlayerInputProxy)
)v!lP pe8 local pathPoints = inputProxy:GetPathFindPoints()
Qa7S'
( if pathPoints == nil then
cyHak u+ return 0
o
{XwLi end
VM2@{V/=~ return #pathPoints
Y#SmZ*zok
end
&JXHDpd$a^ {xBjEhQm --自动寻路
)- 6s7 function API_AutoMove(mapX, mapY)
<igx[2X ssr.AutoMoveBegin(mapX, mapY, ssr.GetCurMapData().mapID)
rjpafGCp local inputProxy = global.Facade:retrieveProxy(global.ProxyTable.PlayerInputProxy)
\@}$Wjsl local pathPoints = inputProxy:GetPathFindPoints()
]\D6;E8P-~ if pathPoints == nil then
JV?RgFy return 0
_/sf@R end
-'H+lrmv return #pathPoints
\9|
] end
picP_1
L ,@'){V --停止寻路
49J+&G?)j function API_AutoMoveEnd()
}N#>q.M global.Facade:sendNotification(global.NoticeTable.AutoMoveEnd)
~0^,L3M end
LA=>g/+i.X U@v8H!p^i --自动打怪
SJ~I
r# function API_AutoFight(isAFK)
,5A>:2 zs if isAFK then
P8,{k if not IsAFKState() then
X%9xuc global.networkCtl:SendMsg(global.MsgType.MSG_CS_AUTOPLAYGAME_REQUEST, 1)
wD?=u\% & global.Facade:sendNotification(global.NoticeTable.AFKBegin)
q@MjeGs% end
]}l+ !NV< else
A_(+r if IsAFKState() then
L(1,W<kYg global.networkCtl:SendMsg(global.MsgType.MSG_CS_AUTOPLAYGAME_REQUEST, 2)
?k:])^G5 global.Facade:sendNotification(global.NoticeTable.AFKEnd)
hRy}G'0 end
i[t=@^
| end
4 _U,-%/ end
y~A7pzBZ= z$BnEd.y=: function IsAFKState()
pv m'pu78 local AutoProxy = global.Facade:retrieveProxy(global.ProxyTable.Auto)
/o1)ZC$ return AutoProxy:IsAFKState()
%oCjZ"ke end
0h@%q;g AINFua4 A --打开自动穿戴
s[B6%DI/5 function API_AutoDress()
zloaU --不抢别人归属
;\*Od?1 global.MMO.SETTING_IDX_NO_ATTACK_HAVE_BELONG =1
mN'9|`>V> global.MMO.SETTING_IDX_AUTO_PUT_IN_EQUIP = 1
f`9rTc local ServerOptionsProxy = global.Facade:retrieveProxy(global.ProxyTable.ServerOptionsProxy)
w)m0Z4* ServerOptionsProxy._data["autoDress"] = 1
k>0cTB
Y& global.ConstantConfig.autousetimes = 0
N;ecT@Ug end
R.YGmT'
2 DN8pJa --强制打开自动挂机拾取
mQA<t)1 function API_AutoPick()
iUG
/ local ItemConfigProxy = global.Facade:retrieveProxy(global.ProxyTable.ItemConfigProxy)
V+a%,sI local config = ItemConfigProxy.config
i{FC1tVeL_ for k, v in pairs(config) do
2E;%=e --local res = string.gsub(v.pickset, "0", "1")
&9lc\Y4PY v.pickset = v.pickset .. 1
U)w|GrxX end
>'|xQjLl
end
x"wM_hl5L ~"rwP=<
} --获取人物坐标
e>zk3\D! function API_GetMapXY()
+81+4{* return ssr.GetMainPlayerMapPos()
vK.4JOlRF end
][5p.owJse 8rG&CxI --获取人物状态
6
% y) function API_GetAction()
/ ?[gB:s local player = global.gamePlayerController:GetMainPlayer()
TnU$L3k local list = global.playerManager.mPlayersInCurrViewField
{kRC!} return player:GetAction()
+heS\I_Mp end
sV'.Bomq $9_.Q/9> --设置宠物状态
POg0=32 function API_PetSleep(isSleep)
JdYF&~ local SummonsProxy = global.Facade:retrieveProxy(global.ProxyTable.SummonsProxy)
>scS wT if not SummonsProxy:IsAlived() then
F+$@3[Q`N return false
&|{,4V0%A end
cKYvRe if isSleep then
--%2=.X= SummonsProxy:RequestModeChange(2)
ylxfh( else
'=b&)HbeK SummonsProxy:RequestModeChange(4)
h7]]F{r5 end
hYZ:" x end
Dw ;vDK yoY)6cn@ --获取人物数据
DF[b? function API_GetGamePlayer()
WfbNar[ local player = global.gamePlayerController:GetMainPlayer()
[;#.DH] local list = global.playerManager.mPlayersInCurrViewField
Cm}UWX local person = {}
B*iz+"H
person["等级"] = player:GetLevel()
,sJfMY person["职业"] = player:GetJobID()
>(6\ C person["名字"] = player:GetName()
^%X\ }>< person["金币"] = ssr.GetMoneyCountById(1)
|AfQ_iT6c person["元宝"] = ssr.GetMoneyCountById(2)
b oOw
K? person["绑金"] = ssr.GetMoneyCountById(3)
rH:X/i;D return person
z57papo end
GK+\-U)v z%dlajYm: function API_GetGamePlayerLevel()
i|,A1c"* local player = global.gamePlayerController:GetMainPlayer()
8v=47G return player:GetLevel()
taEMr> / end
4qz{D"M .z>." ` --获取周围怪物
UO!6&k>c function API_GetMonster()
n03SXaU~V local list = global.monsterManager.mMonstersInCurrViewField
Mh.eAM8 _ local actors = {}
R:R@sU for k, v in pairs(list) do
5'-9?-S" local actor = {}
_]ttKT(
actor["mID"] = v:GetID()
udy;Od
t actor["mName"] = v:GetName()
x15tQb+ actor["mRace"] = v:GetRace()
8oH54bFp actor["mType"] = v:GetType()
RMt vEa actor["mSubType"] = v:GetSubType()
)Qj9kJq actor["mX"] = v:GetMapX()
"l,EcZRjTz actor["mY"] = v:GetMapY()
U(]5U^ actor["mAction"] = v:GetAction()
+;iesULXn actor["mTypeIndex"] = v:GetTypeIndex()
+,^M{^% actor["mAnimationID"] = v:GetAnimationID()
#
Ii.tTk actor["mLv"] = (v.GetLevel and { v:GetLevel() } or { 0 })[1]
8=o(nFJw actor["mSex"] = (v.GetSexID and { v:GetSexID() } or { 0 })[1]
*Z2Q]?:{
i actor["mJobID"] = (v.GetJobID and { v:GetJobID() } or { 0 })[1]
2,Dc]oj actor["mHP"] = (v.GetHP and { v:GetHP() } or { 0 })[1]
. _t,OX$ actor["mHPMax"] = (v.GetMaxHP and { v:GetMaxHP() } or { 0 })[1]
lKwT5ma7 actor["mMP"] = (v.GetMP and { v:GetMP() } or { 0 })[1]
hJ*E"{xs actor["mMPMax"] = (v.GetMaxMP and { v:GetMaxMP() } or { 0 })[1]
~S>ba'] actor["mOwnerID"] = (v.GetOwnerID and { v:GetOwnerID() } or { "" })[1]
.*f4e3 actor["mOwnerName"] = (v.GetOwnerName and { v:GetOwnerName() } or { "" })[1]
kpw4Mq@ actor["mGuildName"] = (v.mGuildName and { v.mGuildName } or { "" })[1]
>`|uc actor["mColor"] = "0xFFFFFF"
Iw|[*Nu- if v:GetType() == global.MMO.ACTOR_PLAYER then
;k%sKVP local batch_label = global.MMO.HUD_TYPE_BATCH_LABEL
0fK|}mmZA local label_name = global.MMO.HUD_LABEL_NAME
$K5s)! local hudName = global.HUDManager:GetHUD(v:GetID(), batch_label, label_name)
wEc5{ b5M if hudName then
3M*[a~ actor["mColor"] = GetColorHexFromRBG(hudName:getColor())
*K.7Zf0
end
KR(ftG' end
t8N9/DZ}Q table.insert(actors, actor);
;f^jB;\< end
.u;TeP P]x+Q return actors
D"f(nVEr end
.mrRv8>$ }UdqX1jz --遍历周围玩家
uBkny; function API_GetPlayer()
xa0%;nFKe local list = global.playerManager.mPlayersInCurrViewField
I3$vw7}5Y local actors = {}
_rJSkZO for k, v in pairs(list) do
)tch>.EQ_ local actor = {}
>qvD39w actor["mID"] = v:GetID()
ujqktrhuLb actor["mName"] = v:GetName()
p%
%Y^=z actor["mRace"] = v:GetRace()
R.`J"J0/~ actor["mType"] = v:GetType()
/=(FM actor["mSubType"] = v:GetSubType()
3D
dG$@ actor["mX"] = v:GetMapX()
_-\{kJ actor["mY"] = v:GetMapY()
Q%1;{5 actor["mAction"] = v:GetAction()
Z|dZc wo actor["mTypeIndex"] = v:GetTypeIndex()
h1o+7 actor["mAnimationID"] = v:GetAnimationID()
"FIx^ actor["mLv"] = (v.GetLevel and { v:GetLevel() } or { 0 })[1]
Y1+lk^ actor["mSex"] = (v.GetSexID and { v:GetSexID() } or { 0 })[1]
XRz6Yf(/ actor["mJobID"] = (v.GetJobID and { v:GetJobID() } or { 0 })[1]
2=M!lB
* actor["mHP"] = (v.GetHP and { v:GetHP() } or { 0 })[1]
=~m"TQv actor["mHPMax"] = (v.GetMaxHP and { v:GetMaxHP() } or { 0 })[1]
#p`7gFl actor["mMP"] = (v.GetMP and { v:GetMP() } or { 0 })[1]
=e/4Gs0* actor["mMPMax"] = (v.GetMaxMP and { v:GetMaxMP() } or { 0 })[1]
bd*(]S9d actor["mOwnerID"] = (v.GetOwnerID and { v:GetOwnerID() } or { "" })[1]
OBSJbDqT actor["mOwnerName"] = (v.GetOwnerName and { v:GetOwnerName() } or { "" })[1]
5g2+Ar( actor["mGuildName"] = (v.mGuildName and { v.mGuildName } or { "" })[1]
]LO
twY actor["mColor"] = "0xFFFFFF"
IEf^.Z if v:GetType() == global.MMO.ACTOR_PLAYER then
=I}V PxhE7 local batch_label = global.MMO.HUD_TYPE_BATCH_LABEL
HKw:fGt/o^ local label_name = global.MMO.HUD_LABEL_NAME
M':.b+xN local hudName = global.HUDManager:GetHUD(v:GetID(), batch_label, label_name)
kP@OIhRe if hudName then
8|Y^Jn\p5u actor["mColor"] = GetColorHexFromRBG(hudName:getColor())
becQ5w/~ end
}0>/G?2Yp
end
N|vJrye table.insert(actors, actor);
[E7@W[xr end
*~^^A9C8 return actors
c6)zx
b end
{Dq51 6l7a9IJ --遍历周围玩家EX
{[~,q\M[ function API_GetPlayerExe()
]m>MB )9 local s1 = API_GetPlayer()
HbDB?s< local result = ""
&L~rq)r/& for k, v in pairs(s1) do
3*Jyb
Mo" local s2 = string.format(
,peE' "mID=%s,mName=%s,mRace=%s,Dura=%s,mType=%s,mSubType=%s,mX=%s,mY=%s,mAction=%s,mTypeIndex=%s,mAnimationID=%s,"
C$gLi8|m , v["mID"]
uhLmyK , v["mName"]
vJUB; hD , v["mRace"]
[KJL%u|8/ , v["Dura"]
p<19 Jw< , v["mType"]
w! 7/;VJ3d , v["mSubType"]
;rL$z;}8 , v["mX"]
,sl.:C 4 , v["mY"]
D9C; JD , v["mAction"]
q~_jF$9SX
, v["mTypeIndex"]
dtl< , v["mAnimationID"])
:|3C-+[ local s3 = ""
dD<kNa}2 local s3 = string.format("mLv=%s,mSx=%s,mJD=%s,mHP=%s,mHPx=%s,mMP=%s,mMPx=%s,mOID=%s,OwN=%s,mGld=%s,mCor=%s"
W^Y(FUy~ , v["mLv"]
}!Lr!eALr , v["mJobID"]
9ksrr{tW , v["mHP"]
\c}r6xOr , v["mHPMax"]
>C3 9
`1 , v["mMP"]
K_3ZJ , v["mMPMax"]
-h`0v , v["mOwnerID"]
n#/m7 , v["mOwnerName"]
b;l%1x9r , v["mGuildName"]
x=N;> , v["mColor"])
&W!@3O{~. result = result .. s2 .. s3 .. "\r\n"
0O4mA&&!oK end
s%|J
(0 return result
nHjwT5Q+Q end
X5[sw;rk R"([Y#>m --遍历周围指定NPC
?0Zw
^a
function API_GetNpcIdByName(npcName)
&,7(Wab local npcVec = global.npcManager:FindNpcInCurrViewField()
l}/UriZ0 local npc = {}
{'kL]qLg for k, v in pairs(npcVec) do
#
JucOWxjY local npcs = {}
b] V=wZ
o npc[v["mID"]] = v["mName"]
i( HhL& end
V=~dgy~@ for key, value in pairs(npc) do
[?*^&[ local sPos, ePos = string.find(value, npcName)
Cz)D3Df^ if sPos then
^yTN(\9 return key
>,vuC4v- end
.R5
z>:A end
RA/yvr return nil
r
|/9Dn% end
xRN$cZC s.
[${S6O --NPC名称打开NPC
blv6 function API_NpcTalk(npcName)
a@J:*W local npcid = API_GetNpcIdByName(npcName)
LL+rdxJO^ local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
|D:0BATRP NPCProxy:RequestTalk(npcid)
'L/TaP/3 end
DlI|~ xpwzz O*U --NPCID打开NPC
k<H&4Z)d9 function API_NpcTalkEx(npcid)
iwJgU
b local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
{*9i}w|2 NPCProxy:RequestTalk(npcid)
$*R9LPpk+ end
E !M+37/ EMbsKG function API_GetNpcTalkData()
oZtz"B local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
sNVD"M,
local talkData = NPCProxy:GetCurrentNPCTalkData()
S(l^TF return talkData
lUd,- end
N0C5FSH ^pa).B.`T function API_GetAllLink()
=`H(`2 local talkData = API_GetNpcTalkData()
17d$gZ1O: ;@hP*7Lm local acts = {}
n0q(EQy1U local kv = {}
>w2u owhht98y( for line in talkData.content:gmatch("(text=.->)") do
ta(x4fP_ if string.find(line, "@") then
dM$S|,H local key = line:match("text=(.-)|")
M(f'qFY=K
'C<=b UM local value = line:match("(@.-)>")
LBB[aF,Lr kv[key] = value
v%^H9aK_ end
>2/zL.O end
Fu$sfq {r)M@@[ for result in talkData.content:gmatch("(@.-)>") do
l1S1CS table.insert(acts, result)
5hMiCod end
Q23y.^W%c local sendData = {
Nfh(2gK+ UserID = talkData.npcID,
L6.R?4B index = talkData.index,
A )cb --Act = "@blbumj",
XjbK!. --commonInput = jsonData.commonInput,
w?q"%F;/ --inputID= jsonData.inputID,
uItKs u }
hlZjk0ez return acts, kv, sendData
Z#04 ] end
?}>tfDu' psVRdluS --按索引号点击按
dmO|PswW function API_ClickLinkByIndex(index)
~-/AKaK} acts, kv, sendData = API_GetAllLink()
}f}&|Vap sendData["Act"] = acts[index + 2]
RP9||PFS~~ local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
CiSG=obw NPCProxy:ExecuteWithJsonData(sendData)
kn.z8%^( end
}1wuH L z --按索购买引号点击按
iVcBD0 q) function API_ClickBuyLinkByIndex(index)
i747( ^ acts, kv, sendData = API_GetAllLink()
JiR|+6"7
sendData["Act"] = acts[index]
79DC]48M local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
p
pq#5t^[) NPCProxy:ExecuteWithJsonData(sendData)
",m5}mk:4 end
T5h[{J^ -E1}mL}I` --按名称点击按
%O${EN function API_ClickLinkByName(linkName)
3'wBX acts, kv, sendData = API_GetAllLink()
M*N8p]3Cq sendData["Act"] = kv[linkName]
<PxEl4 local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
4]GyuY NPCProxy:ExecuteWithJsonData(sendData)
ZSNg^)cN end
hGeRM4zVZZ vY6|V$ --出售物品
I
f(_$> function API_Sell(npcName,itemsName)
P$bo8* local npcId=API_GetNpcIdByName(npcName)
r[x7?cXsW local bagData=ssr.getBagData()
ilP&ctn6+c for k,v in pairs(bagData) do
7vFqO; if string.find(itemsName,v.Name) then
n|.;g!QDA --if #v["Values"]<2 then
o&zV8DE_v local Name = v.Name
OZ6%AUot
local MakeIndex = v.MakeIndex
!IS,[ local networkCtl = global.networkCtl
vhC"f* networkCtl:SendMsg(global.MsgType.MSG_CS_NPC_STORE_SELL_ITEM, npcId, MakeIndex , 0, 0, Name , string.len(Name) )
f8lww)^,v --end
EA\~m*k end
?:E;C<Ar end
]rS+v^@QH end
I(.XK ucU --全部卖
0Ju{6x(|
function API_SellAll(npcName)
@WmB0cc_ local npcId=API_GetNpcIdByName(npcName)
-]e@cevy local bagData=ssr.getBagData()
`
T!O
)5 for k,v in pairs(bagData) do
=6$( m}(74 --if #v["Values"]<2 then
C6`8dn
local Name = v.Name
>7|37a local MakeIndex = v.MakeIndex
0U<9=[~q7@ local networkCtl = global.networkCtl
?=l(29tH networkCtl:SendMsg(global.MsgType.MSG_CS_NPC_STORE_SELL_ITEM, npcId, MakeIndex , 0, 0, Name , string.len(Name) )
dj=n1f+;[ --end
>&R|t_ypw end
yWuq/J: end
`PL!>o
a(8 R~i<* <bH>\@p7} --NPC购买
@;0Ep0[ function API_Buy(npcName,itemName,count)
Vk"QcW --进入子菜单
?6Gq & local sendData =
8c9_=8vw {
= U5)m UserID = API_GetNpcIdByName(npcName),
>nxtQ Name = itemName,
O
tr@jgw }
]WG\+1x9 SendTableToServer(1015, sendData)
~VOmMw4HV local function ToBuy()
G>Q{[m$ local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
h5JXKR.1]c local list = NPCProxy.facade.view.mediatorMap.NPCStoreMediator._layer.itemList
C9h8d for i=1,count do
}7V/(K if i>#list then
j{vzCRa>8 break
Q|>y2g! end
Q7C'O @ sendData.MakeIndex= list[#list-i].MakeIndex
S%4K-I SendTableToServer(1014, sendData)
_ AFgx8 end
jHd~yCq API_CloseNpcTalk()
6Z$T&Ul{ end
[;(|^0 local scheduleID = ssr.PerformWithDelayGlobal(ToBuy, 1)
?@nu]~ end
(8I0%n}.Zo iG;6e~p [#_ceg1G function 打开子项(item)
;23F8M%wH local NPCProxy = global.Facade:retrieveProxy(global.ProxyTable.NPC)
[8"nRlXH if item.SubMenu == 1 then
1#'wR3[+ NPCProxy:RequestNpcStoreItemList(item)
5XhV+t
g. end
<AVpFy
end
by
{~gu R1nctA: function 子项购买(count)
O/Fzw^ local list = NPCProxy.facade.view.mediatorMap.NPCStoreMediator._layer.itemList
T<OLfuV for i = 1, count do
ukw'$Yt2 if i > #list then break end
`27? f
$, NPCProxy:RequestNpcStoreBuy(list
) . &e,8 end 43eGfp'
end
lBCM;#P u*M*WpY --登录角色 Uz0mSfBp PtHT> function API_LoginRole(index) u$0>K,f local LoginProxy = global.Facade:retrieveProxy(global.ProxyTable.Login) |y]#-T?)t LoginProxy:SetSelectedRoleByIndex(index) 0i
Ye>u LoginProxy:RequestEnterGame() d;
M&X!Y global.Facade:sendNotification(global.NoticeTable.Audio_Stop_BGM) R\<^A~(Gl end =Rui qRU8uu --登录 = *sP,
6 function API_Login(name, password) /XXW4_> local AuthProxy = global.Facade:retrieveProxy(global.ProxyTable.AuthProxy) \^+sgg{ local data = {} 1}(g
=S data.type = 1 +h
=lAHn& data.username = name 8Hhe&B data.password = password 8Vq,J :+ AuthProxy:RequestLogin(data) y]/{W}D end 9+L!
A W>"i0p --开门 lU@ni(69d function API_EnterRoom(x, y) d.{RZq2cp local qq = ssr.GetCurMapData() &t4j p
x global.networkCtl:SendMsg(global.MsgType.MSG_CS_OPEN_DOOR_REQUEST, 0, x, y) htaB!Q?V local function callback() rO-Tr ssr.AutoMoveBegin(x, y, qq.mapID) #hai3>9|B end 39OZZaWL SL:ScheduleOnce(callback, 0.5) *P_TG"^{W end <_NF #i~.wQ$1 --多开 ON=xn|b4 function API_PcOpen() t0wLj}"U LuaBridgeCtl:Inst():CheckClientCount(2) _+UD>u{ end
l_8t[ E_
xpq --盒子显示 F
Hv|6zUX function API_hezi() 6rRPqO
j global.L_GameEnvManager._envData["isBoxLogin"] = 1 bSmRo end pdE=9l' 7_JK2 --遍历背包物品 t?/#:
J*_7 function API_GetCurBagData() !D1F4v[c= local s1 = ssr.getCurBagData() RY*6TYX! local result = "" j"c"sF\q for k, v in pairs(s1) do a/?gp>M9 local s1 = string.format( 13B[mp4 "OverLap=%s,DuraMax=%s,Where=%s,Dura=%s,Name=%s,Shape=%s,MakeIndex=%s,Weight=%s,StdMode=%s,Index=%s" #Zfg , v["OverLap"] tn p]wZ , v["DuraMax"] Q.!8q3` , v["Where"] nOOA5Gz , v["Dura"] bJ9>,,D , v["Name"] f$P pFSY
4 , v["Shape"] 5H<r I? , v["MakeIndex"] e'u9 SpJ , v["Weight"] N?~K9jGx( , v["StdMode"] ;X\!*Loe , v["Index"]) I@[.W!w local ss = "" W1Ht8uYG3 if #v["Values"] > 1 then d(h`bOjI for x, y in pairs(v["Values"]) do dL v\H& if y["Value"] > 0 then = uOFaZ4 local Values = string.format("m_Value=%s,m_ValueID=%s" -PxA~((g5 , y["Value"] C[~b6UP , y["Id"]) B=9|g1e ss = ss .. Values E9|i: end x5{ zGv.j end wKwireOs end |,qz7dpe result = result .. s1 .. "," .. ss .. "\r\n" 27;*6/>, end b-ZvEDCR return result {+Eq{8m` end 5HmX-+XpK y*P[*/g --获取背包是否满 /\2 s%b* function API_GetBagFull() Nn%{Ka return ssr.IsBagToFull(isTips) N2C^'dFj end W[+E5I kRG-~'
f%` --获取背包百分比 @v |_APy# function API_GetBagEx() 0Ebs-kP HW = ssr.GetMetaValueByKey("BW") h(>4%hF MAXHW = ssr.GetMetaValueByKey("MAXBW") Cgt{5 ELL = HW / MAXHW * 100 Dtelr=/s return math.ceil(ELL) H]YPMG< end M@
mCBcbN Ww@Rewo --获取背包是否满 3pm;?6i6 function API_GetBagFull() 1C:lXx$| return ssr.IsBagToFull(isTips) qdzc"-gH` end r
lW ?(hdV?8)P --读取地图ID I,.>tC function API_GetMapID() xez~Yw2 local tt = ssr.GetCurMapData() J5IQ return tt.mapID n;4`IK| end c^I_~OwaE #Ey!?Z --读取地图名称 wz;IKdk[ function API_GetMapName() GYCc)Guc local tt = ssr.GetCurMapData() Ao 1*a%-. return tt.mapName <