189 lines
6.6 KiB
Lua
189 lines
6.6 KiB
Lua
--늪lua壇맡角陋구穹퓌뵨휨북C宮밑,滑綾였꼇땠!
|
||
function getIntPart(x)
|
||
if x <= 0 then
|
||
return math.ceil(x);
|
||
end
|
||
if math.ceil(x) == x then
|
||
return math.ceil(x);
|
||
else
|
||
return math.ceil(x) - 1;
|
||
end
|
||
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],titleinfo[id][7],titleinfo[id][8],titleinfo[id][9],titleinfo[id][10],titleinfo[id][11]
|
||
end
|
||
|
||
function FreeComplianceParameter( charaindex )
|
||
if char.getInt(charaindex, "잚謹") == 3 then
|
||
local data= char.getChar(charaindex,"龍르榴檄")
|
||
if data~="" then
|
||
local hp = other.atoi(other.getString(data, "|", 1))
|
||
local at = other.atoi(other.getString(data, "|", 2))
|
||
local df = other.atoi(other.getString(data, "|", 3))
|
||
local dx = other.atoi(other.getString(data, "|", 4))
|
||
|
||
char.setWorkInt(charaindex, "離댕HP", char.getWorkInt(charaindex, "離댕HP") + hp)
|
||
char.setWorkInt(charaindex, "묑샌제", char.getWorkInt(charaindex, "묑샌제") + at)
|
||
char.setWorkInt(charaindex, "렝徒제", char.getWorkInt(charaindex, "렝徒제") + df)
|
||
char.setWorkInt(charaindex, "츌쌥제", char.getWorkInt(charaindex, "츌쌥제") + dx)
|
||
|
||
end
|
||
end
|
||
|
||
|
||
|
||
if char.getInt(charaindex, "잚謹") == 1 then
|
||
local itemindex = char.getItemIndex(charaindex,6)
|
||
if itemindex > 0 then
|
||
local data1 = item.getChar(itemindex, "俚뙈")
|
||
local attrate = other.atoi(other.getString(data1, "|", 1))
|
||
local defrate = other.atoi(other.getString(data1, "|", 2))
|
||
local dexrate = other.atoi(other.getString(data1, "|", 3))
|
||
char.setWorkInt(charaindex, "묑샌제", math.floor(char.getWorkInt(charaindex, "묑샌제") * (100+attrate)/100))
|
||
char.setWorkInt(charaindex, "렝徒제", math.floor(char.getWorkInt(charaindex, "렝徒제") * (100+defrate)/100))
|
||
char.setWorkInt(charaindex, "츌쌥제", math.floor(char.getWorkInt(charaindex, "츌쌥제") * (100+dexrate)/100))
|
||
char.setWorkInt(charaindex, "離댕HP", char.getWorkInt(charaindex, "離댕HP") + 150)
|
||
end
|
||
|
||
for i = 1,96 do
|
||
if char.getCharNewTitleMode(charaindex,i-1)== 1 then
|
||
temp1,temp2,temp3,temp4,temp5,temp6,temp7,temp8,temp9 = GetTtileBuff(i)
|
||
addhp = addhp + temp1
|
||
addat = addat + temp2
|
||
adddf = adddf + temp3
|
||
adddx = adddx + temp4
|
||
addpo = addpo + temp5
|
||
addpa = addpa + temp6
|
||
addsl = addsl + temp7
|
||
addst = addst + temp8
|
||
addco = addco + temp9
|
||
end
|
||
end
|
||
char.setWorkInt(charaindex, "離댕HP", char.getWorkInt(charaindex, "離댕HP") + addhp)
|
||
char.setWorkInt(charaindex, "묑샌제", char.getWorkInt(charaindex, "묑샌제") + addat)
|
||
char.setWorkInt(charaindex, "렝徒제", char.getWorkInt(charaindex, "렝徒제") + adddf)
|
||
char.setWorkInt(charaindex, "츌쌥제", char.getWorkInt(charaindex, "츌쌥제") + adddx)
|
||
char.setWorkInt(charaindex, "뗀예맒속", addpo)
|
||
char.setWorkInt(charaindex, "쮸예맒속", addpa)
|
||
char.setWorkInt(charaindex, "慷예맒속", addsl)
|
||
char.setWorkInt(charaindex, "柯예맒속", addst)
|
||
char.setWorkInt(charaindex, "살예맒속", addco)
|
||
|
||
end
|
||
|
||
end
|
||
|
||
function data()
|
||
titleinfo = { --췄甘 埼뵀 竟 묑 렝 츌 뗀 쮸 慷 柯 살
|
||
{"댕뒈돨쑹쥣 렝+5",1,0,0,5,0,0,0,0,0,0}
|
||
,{"彊돨쑹쥣 HP+20",2,20,0,0,0,0,0,0,0,0}
|
||
,{"삽懦돨쑹쥣 묑+5",3,0,5,0,0,0,0,0,0,0}
|
||
,{"섣루돨쑹쥣 츌+5",4,0,0,0,5,0,0,0,0,0}
|
||
,{"걔쬡윗돨쑹쥣 홍+1",5,1,1,1,1,0,0,0,0,0}
|
||
,{"꽈븀돨쑹쥣 홍+2",6,2,2,2,2,0,0,0,0,0}
|
||
,{"놓懃賈諒 HP+10",7,10,0,0,0,0,0,0,0,0}
|
||
,{"轟츰돨쩠훙 홍+2",8,2,2,2,2,0,0,0,0,0}
|
||
,{"쨌긋돨쭝秊 홍+4",9,4,4,4,4,0,0,0,0,0}
|
||
,{"彊충돨鬼꿇 홍+6",10,6,6,6,6,0,0,0,0,0}
|
||
,{"켱奭돨멱<EFBFBD> 홍+8",11,8,8,8,8,0,0,0,0,0}
|
||
,{"뒈<EFBFBD>돨墩緞 홍+10",12,10,10,10,10,0,0,0,0,0}
|
||
,{"굴텝돨뉴루 홍+12",13,12,12,12,12,0,0,0,0,0}
|
||
,{"꾈廚돨루暾 홍+14",14,14,14,14,14,0,0,0,0,0}
|
||
,{"納念돨쏜槿 홍+16",15,16,16,16,16,0,0,0,0,0}
|
||
,{"뻑毆돨늣黛 홍+18",16,18,18,18,18,0,0,0,0,0}
|
||
,{"乭벵돨格捺 홍+20",17,20,20,20,20,0,0,0,0,0}
|
||
,{"쓴管돨셔쓰 홍+30",18,30,30,30,30,0,0,0,0,0}
|
||
,{"쑹<EFBFBD>`룐丹諒 묑+5",19,0,5,0,0,0,0,0,0,0}
|
||
,{"巧瘻쫴쀼 렝+20",20,0,0,20,0,0,0,0,0,0}
|
||
,{"돝登擎램諒 묑+5",21,0,5,0,0,0,0,0,0,0}
|
||
,{"돝登곤露 살쫘예昑+5",22,0,0,0,0,0,0,0,0,5}
|
||
,{"뜬괜펜깡 柯뺏예昑+5",23,0,0,0,0,0,0,0,5,0}
|
||
,{"澹눴뜬괜돎 慷예昑+5",24,0,0,0,0,0,0,5,0,0}
|
||
,{"북냥댐훙 츌+5",25,0,0,0,5,0,0,0,0,0}
|
||
,{"북냥멕癎 츌+3",26,0,0,0,3,0,0,0,0,0}
|
||
,{"족녘댐훙 묑+5",27,0,5,0,0,0,0,0,0,0}
|
||
,{"족녘멕癎 묑+3",28,0,3,0,0,0,0,0,0,0}
|
||
,{"훨蛟댐훙 렝+5",29,0,0,5,0,0,0,0,0,0}
|
||
,{"훨蛟멕癎 렝+3",30,0,0,3,0,0,0,0,0,0}
|
||
,{"놓뗄濫却 HP+10",31,10,0,0,0,0,0,0,0,0}
|
||
,{"加쥣澹却 HP+15",32,15,0,0,0,0,0,0,0,0}
|
||
,{"쯔쟝컸介亶衿 HP+20",33,20,0,0,0,0,0,0,0,0}
|
||
,{"힉캠섈랑亶衿 HP+25",34,25,0,0,0,0,0,0,0,0}
|
||
,{"힉怒컸薑賈諒 HP+30",35,30,0,0,0,0,0,0,0,0}
|
||
,{"콩薑댕쩍亶衿 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
|