220 lines
6.4 KiB
Lua
220 lines
6.4 KiB
Lua
![]() |
function GetCharNewTitleNo(charaindex,id)
|
|||
|
if char.check(charaindex)~=1 then
|
|||
|
return 0
|
|||
|
end
|
|||
|
if id< 32 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬1"),id)~= 0 then
|
|||
|
return titleinfo[id+1][2]
|
|||
|
end
|
|||
|
elseif id< 64 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬2"),id-32)~= 0 then
|
|||
|
return titleinfo[id+1][2]
|
|||
|
end
|
|||
|
elseif id< 96 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬3"),id-64)~= 0 then
|
|||
|
return titleinfo[id+1][2]
|
|||
|
end
|
|||
|
end
|
|||
|
return 0
|
|||
|
end
|
|||
|
|
|||
|
function GetCharNewTitleString(charaindex,id)
|
|||
|
if char.check(charaindex)~=1 then
|
|||
|
return 0
|
|||
|
end
|
|||
|
if id< 32 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬1"),id)~= 0 then
|
|||
|
return titleinfo[id+1][2]
|
|||
|
end
|
|||
|
elseif id< 64 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬2"),id-32)~= 0 then
|
|||
|
return titleinfo[id+1][2]
|
|||
|
end
|
|||
|
elseif id< 96 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬3"),id-64)~= 0 then
|
|||
|
return titleinfo[id+1][2]
|
|||
|
end
|
|||
|
end
|
|||
|
return ""
|
|||
|
end
|
|||
|
|
|||
|
|
|||
|
function GetCharNewTitleName(charaindex,id)
|
|||
|
if char.check(charaindex)~=1 then
|
|||
|
return 0
|
|||
|
end
|
|||
|
|
|||
|
if id< 32 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬1"),id)~= 0 then
|
|||
|
return titleinfo[id+1][1]
|
|||
|
end
|
|||
|
elseif (id >=32 and id< 64) then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬2"),id-32)~= 0 then
|
|||
|
return titleinfo[id+1][1]
|
|||
|
end
|
|||
|
elseif(id >=64 and id< 96) then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬3"),id-64)~= 0 then
|
|||
|
return titleinfo[id+1][1]
|
|||
|
end
|
|||
|
end
|
|||
|
return ""
|
|||
|
end
|
|||
|
|
|||
|
function GetCharNewTitleMode(charaindex,id)
|
|||
|
if char.check(charaindex)~=1 then
|
|||
|
return 0
|
|||
|
end
|
|||
|
|
|||
|
if id< 32 then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬1"),id)~= 0 then
|
|||
|
return 1
|
|||
|
end
|
|||
|
elseif (id >=32 and id< 64) then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬2"),id-32)~= 0 then
|
|||
|
return 1
|
|||
|
end
|
|||
|
elseif(id >=64 and id< 96) then
|
|||
|
if other.DataAndData(char.getInt(charaindex,"<EFBFBD>ƺ<EFBFBD>״̬3"),id-64)~= 0 then
|
|||
|
return 1
|
|||
|
end
|
|||
|
end
|
|||
|
return 0
|
|||
|
end
|
|||
|
|
|||
|
function TitleListSend(charaindex)
|
|||
|
if char.check(charaindex)~=1 then
|
|||
|
return
|
|||
|
end
|
|||
|
local Nodata=""
|
|||
|
local jiedata=""
|
|||
|
local indexdata=""
|
|||
|
local num=0
|
|||
|
local fd = char.getFd(charaindex)
|
|||
|
for i = 1,96 do
|
|||
|
if GetCharNewTitleMode(charaindex,i-1)>0 then
|
|||
|
num = num + 1
|
|||
|
-- print(num, GetCharNewTitleMode(charaindex,i-1))
|
|||
|
Nodata = Nodata..GetCharNewTitleString(charaindex,i-1).."|"
|
|||
|
jiedata = jiedata..GetCharNewTitleName(charaindex,i-1).."|"
|
|||
|
indexdata = indexdata..(i-1).."|"
|
|||
|
end
|
|||
|
end
|
|||
|
local data = string.format("%d|%d#@%s#@%s#@%s#@",char.getInt(charaindex,"<EFBFBD><EFBFBD><EFBFBD>ֳƺ<EFBFBD>"),num,Nodata,jiedata,indexdata)
|
|||
|
lssproto.CharTitleSend(fd,data)
|
|||
|
-- print("CharTitleSend<6E><64><EFBFBD>ͳɹ<CDB3><C9B9><EFBFBD>"..data.."\n")
|
|||
|
end
|
|||
|
|
|||
|
function GetTtileBuff(id)
|
|||
|
if id >96 or id < 1 then
|
|||
|
return 0,0,0,0
|
|||
|
end
|
|||
|
return titleinfo[id][3],titleinfo[id][4],titleinfo[id][5],titleinfo[id][6]
|
|||
|
end
|
|||
|
|
|||
|
function data()
|
|||
|
titleinfo = { --<2D><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><> <20><> <20><> <20><> <20><> <20><> ˯ ʯ <20><>
|
|||
|
{"<EFBFBD><EFBFBD><EFBFBD>صľ<EFBFBD><EFBFBD><EFBFBD> <20><>+5",1,0,0,5,0,0,0,0,0,0}
|
|||
|
,{"ˮ<EFBFBD>ľ<EFBFBD><EFBFBD><EFBFBD> HP+20",2,20,0,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD>ľ<EFBFBD><EFBFBD><EFBFBD> <20><>+5",3,0,5,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ľ<EFBFBD><EFBFBD><EFBFBD> <20><>+5",4,0,0,0,5,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ľ<EFBFBD><EFBFBD><EFBFBD> ȫ+1",5,1,1,1,1,0,0,0,0,0}
|
|||
|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FBD> ȫ+20",17,20,20,20,20,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD>η<EFBFBD>ļž<EFBFBD> ȫ+30",18,30,30,30,30,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD>`<60><>ӡ<EFBFBD><D3A1> <20><>+5",19,0,5,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD>ת<EFBFBD>ֻ<EFBFBD> <20><>+20",20,0,0,20,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD> <20><>+5",21,0,5,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD>+5",22,0,0,0,0,0,0,0,0,5}
|
|||
|
,{"<EFBFBD>ᱦ<EFBFBD><EFBFBD><EFBFBD><EFBFBD> ʯ<><CAAF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>+5",23,0,0,0,0,0,0,0,5,0}
|
|||
|
,{"<EFBFBD>´<EFBFBD><EFBFBD>ᱦ<EFBFBD><EFBFBD> ˯<><CBAF><EFBFBD><EFBFBD>+5",24,0,0,0,0,0,0,5,0,0}
|
|||
|
,{"<EFBFBD>ϳɴ<EFBFBD><EFBFBD><EFBFBD> <20><>+5",25,0,0,0,5,0,0,0,0,0}
|
|||
|
,{"<EFBFBD>ϳɸ<EFBFBD><EFBFBD><EFBFBD> <20><>+3",26,0,0,0,3,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>+5",27,0,5,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>+3",28,0,3,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>+5",29,0,0,5,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>+3",30,0,0,3,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD>սʿ HP+10",31,10,0,0,0,0,0,0,0,0}
|
|||
|
,{"ʥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʿ HP+15",32,15,0,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˿Ӣ<EFBFBD><EFBFBD> HP+20",33,20,0,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD>ķ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӣ<EFBFBD><EFBFBD> HP+25",34,25,0,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˹ʹ<EFBFBD><EFBFBD> HP+30",35,30,0,0,0,0,0,0,0,0}
|
|||
|
,{"<EFBFBD><EFBFBD>˹<EFBFBD><EFBFBD>½Ӣ<EFBFBD><EFBFBD> HP+100",36,100,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
,{"","",0,0,0,0,0,0,0,0,0}
|
|||
|
}
|
|||
|
|
|||
|
end
|
|||
|
|
|||
|
function main()
|
|||
|
data();
|
|||
|
end
|