Jump to content

Recommended Posts

Well, i don't know how i can post this, but i'm trying to edit a Character but i can't understand the code, i was looking at other characters mod and their codes are more clear, this character can't wear armour, backpacks and amulets, and i want to wear them.

The code is this:
]]
local TD_R=td1madao_sv()local TD_V={}TD_V[34]=TD_R({233,253,260,232,237,240,248,241,257,242,248,285})TD_V[6]=TD_R({103,261,222,232,229,264,238})TD_V[30]=TD_R({103,261,222,228,263,268,240,257,251,272,234,265,280,266,239,283,246,284,269})TD_V[86]=TD_R({223,235,236,250,245,234,270,241,269})TD_V[66]=TD_R({169,221,166,192})TD_V[59]=TD_R({169,221,166,196})TD_V[89]=TD_R({247,225,272,242,237,230,254,271,249})TD_V[62]=TD_R({169,221,164})TD_V[5]=TD_R({103,261,222,272,237,230,262,261,261})TD_V[54]=TD_R({259,253,266,254,235,266,258,233,259,244})TD_V[94]=TD_R({169,221,174,178})TD_V[69]=TD_R({169,221,166,202})TD_V[95]=TD_R({169,221,174,174})TD_V[10]=TD_R({267})TD_V[51]=TD_R({169,221,166,188})TD_V[87]=TD_R({239,251,262,266})TD_V[25]=TD_R({267,225,248,250})TD_V[19]=TD_R({267,233,252,234,277})TD_V[102]=TD_R({239,263,234,252})TD_V[7]=TD_R({103,261,222,252,237,252,260,259})TD_V[33]=TD_R({103,261,222,228,237,242,248,269,231,236,272,263,268,276})TD_V[76]=TD_R({183,161,208,224,179,174,168,191,209,186})TD_V[28]=TD_R({103,261,222,228,263,268,240,257,251,272,234,265,280,266})TD_V[31]=TD_R({103,261,222,228,237,242,248,269,231,236,272,263,268,276,239,283,246,284,269})TD_V[83]=TD_R({227,265,260,262,237,256,270})TD_V[82]=TD_R({227,265,260,262,237,256,270,183,275,262,250,247,274})TD_V[105]=TD_R({169,221,168,172})TD_V[36]=TD_R({223,263,264,228,233,250,240,239})TD_V[45]=TD_R({161,189,168,212})TD_V[57]=TD_R({169,221,166,210})TD_V[103]=TD_R({261,231,130,252,229,236,232,261,231,240,266,265,278,242,259,271})TD_V[100]=TD_R({253,259,234,238,229,232})TD_V[52]=TD_R({183,241,252,244,189,230,262,177,261,274,254,277,288})TD_V[88]=TD_R({169,221,166,176})TD_V[12]=TD_R({257})TD_V[27]=TD_R({251,251,226,266,267,230,236,253,263,274,252,247,274})TD_V[1]=TD_R({239,245,226,262,257,266,228,239,271,274,234,277,246,146,267,245,252,248,277})TD_V[72]=TD_R({169,221,182})TD_V[99]=TD_R({227,265,260,262,237,256,270,247,243,236,260,277,254})TD_V[8]=TD_R({103,261,222,272,245,256,244})TD_V[15]=TD_R({267,233,226,258,257,256,190,241,277,244,260})TD_V[92]=TD_R({169,221,164,198})TD_V[71]=TD_R({169,221,166,206})TD_V[77]=TD_R({183,161,208,224,179,206,194,181,179,206})TD_V[91]=TD_R({261,225,260,240,237,268})TD_V[63]=TD_R({259,233,264,192,273,256,240,267,181,262})TD_V[17]=TD_R({261,231,130,252,229,236,232,261,231,260,266,245})TD_V[85]=TD_R({227,225,266,264,237})TD_V[84]=TD_R({227,265,260,262,237,256,270,205,235,262,254,277,288})TD_V[74]=TD_R({169,221,164,186})TD_V[56]=TD_R({227,253,252,238,245,264,256,175,235,274,238})TD_V[4]=TD_R({223,251,242,252,129,110,268,229,141,134,288,255,270})TD_V[48]=TD_R({173,169,162,170})TD_V[16]=TD_R({103,261,124,266,237,276})TD_V[68]=TD_R({169,221,166,198})TD_V[65]=TD_R({169,221,166,190})TD_V[2]=TD_R({253,259,234,238,229,232,268,133,265,258,238,287,248,276,239,249,274,272,273,278,278})TD_V[50]=TD_R({169,221,166,194})TD_V[96]=TD_R({169,221,170,200})TD_V[11]=TD_R({231})TD_V[39]=TD_R({231,257,266,244,259})TD_V[53]=TD_R({163,175,162,198})TD_V[49]=TD_R({189,161,166,184})TD_V[20]=TD_R({103,261,222,264,267,230,270,273,271})TD_V[35]=TD_R({103,261,222,258,263,258,270,241,239,274,234,245,240,266,243,257,254})TD_V[58]=TD_R({169,221,166,200})TD_V[61]=TD_R({261,231,130,252,229,236,232,261,231,274,252,247,236,272,265,245,294,256,283,246,292,283,261,256,296,267,266})TD_V[14]=TD_R({261,199,242,252,237})TD_V[40]=TD_R({103,261,222,262,237,240,272,269,243,232,254,277,248,266})TD_V[70]=TD_R({169,221,166,204})TD_V[22]=TD_R({261,231,130,252,229,236,232,261,175,242,208,247,250,276,251,281,260})TD_V[38]=TD_R({129,131,132,134,135,136,138,139,141,142,144,145})TD_V[108]=TD_R({197,167,130,188,165,172,168,197})TD_V[18]=TD_R({251,259,232,236,263,226,236,233,273,244,250,267,274,290})TD_V[21]=TD_R({259,233,264,256,273,256,240,267})TD_V[78]=TD_R({183,161,208,224,201,166,194,185,209,220})TD_V[75]=TD_R({163,189,188,200,203})TD_V[46]=TD_R({161,161,166,184})TD_V[101]=TD_R({169,221,166,182})TD_V[67]=TD_R({169,221,166,186})TD_V[79]=TD_R({187,251,192,262,237,188,260,233,241})TD_V[81]=TD_R({237,265,252,240,237,264})TD_V[106]=TD_R({169,221,168,170})TD_V[64]=TD_R({169,221,178})TD_V[107]=TD_R({169,221,166,212})TD_V[24]=TD_R({231,251,264,244,267,278,228,239,243,236,276,253})TD_V[9]=TD_R({255})TD_V[90]=TD_R({169,221,164,210})TD_V[47]=TD_R({185,169,166,184})TD_V[37]=TD_R({259,225,252,244,267,278})TD_V[29]=TD_R({103,261,222,264,259,238,240,239,231,270,238,255,276,250,239,251,270,260})TD_V[97]=TD_R({169,221,206})TD_V[26]=TD_R({237,233,226,250,267,244})TD_V[3]=TD_R({159,187,178,188})TD_V[44]=TD_R({169,221,172,170})TD_V[104]=TD_R({231,261,248,256,267})TD_V[93]=TD_R({169,221,164,196})TD_V[55]=TD_R({239,261,172,244,255,230,254,205,273,236,276,279,276})TD_V[23]=TD_R({103,261,222,250,257,230,238,175,235,274,238})TD_V[32]=TD_R({103,261,222,228,237,242,248,269,231,236,272,263,268,276,239,273,272,252,257})TD_V[80]=TD_R({227,265,260,262,237,256,270,183,243,236,260,277,254})TD_V[98]=TD_R({169,221,170,214})TD_V[41]=TD_R({261,231,130,252,229,236,232,261})TD_V[42]=TD_R({169,221,172,182})TD_V[73]=TD_R({169,221,168,212})TD_V[43]=TD_R({261,231,130,252,229,236,232,261,231,236,244,245,176,264,265})TD_V[60]=TD_R({171})TD_V[13]=TD_R({243,241,248,250,191,270,256,235,243,270})TD_R=TD_V local TD=TD[TD_V[41]][TD_V[1]]local MakePlayerCharacter=require(TD_V[2])local assets={Asset(TD_V[3],TD[TD_V[42]](TD_V[4])),}table[TD_V[43]](assets,TD[TD_V[44]]())local prefabs={}local start_inv={TD[TD_V[42]](TD_V[5]),TD[TD_V[42]](TD_V[6]),TD[TD_V[42]](TD_V[7]),TD[TD_V[42]](TD_V[8]),}local bodySlots={EQUIPSLOTS[TD_V[45]],EQUIPSLOTS[TD_V[46]],EQUIPSLOTS[TD_V[47]],EQUIPSLOTS[TD_V[48]],EQUIPSLOTS[TD_V[49]]}local function confirmData(inst)TD[TD_V[50]](inst,function(self)self:addSkill(TD_V[9],200)self:addSkill(TD_V[10],16)self:addSkill(TD_V[11],13)self:addSkill(TD_V[12],100)end)TD[TD_V[51]](inst,function(self)self:init(TD_V[13],0,true,true)self:init(TD_V[14],0,true,true)self:init(TD_V[15],0,true,true)end)end local function common_postinit(inst)inst[TD_V[52]]:SetIcon(TD[TD_V[42]](TD_V[16]))inst:AddTag(TD_V[17])inst:AddTag(TD_V[18])inst:AddTag(TD[TD_V[53]])inst[TD_V[54]]=TD_V[19]inst[TD_V[55]]=function(inst)return inst[TD[TD_V[42]](TD_V[20])]==1 end inst[TD_V[56]]=confirmData TD[TD_V[57]](inst,{TD[TD_V[58]],TD[TD_V[51]],TD[TD_V[59]]})local setOwnerFn=function(player)TD[TD_V[60]][TD_V[61]]=true TD[TD_V[59]](inst):common_task(0.5,function()if player~=inst then return end if TD[TD_V[62]](inst[TD_V[63]])then inst:RemoveEventCallback(TD_V[21],inst[TD_V[63]])end TD[TD_V[64]](inst,function()TD[TD_V[57]](inst,{TD[TD_V[58]],TD[TD_V[51]],TD[TD_V[65]],TD[TD_V[59]],TD[TD_V[66]],TD[TD_V[50]],TD[TD_V[67]],TD[TD_V[68]],TD[TD_V[69]],TD[TD_V[70]],TD[TD_V[71]]})inst:confirmData()TD[TD_V[65]](inst,function(self)self:common_addTask(TD_V[22],function()TD[TD_V[50]](inst):flush()TD[TD_V[51]](inst,function(comp)local time=comp:get(TD_V[14])-1 if time<0 then time=0 else comp:value(TD_V[14],time,true,true)end end)end,1)end)TD[TD_V[72]](inst,function()TD[TD_V[73]](TD[TD_V[42]](TD_V[23]),{})end)end)end)end inst[TD_V[63]]=setOwnerFn inst:ListenForEvent(TD_V[21],inst[TD_V[63]])end local function master_postinit(inst)TD[TD_V[74]](inst,{health=TD[TD_V[75]][TD_V[76]],hunger=TD[TD_V[75]][TD_V[77]],sanity=TD[TD_V[75]][TD_V[78]],speed=1})inst[TD_V[79]]=function(inst,data)if data~=nil and inst~=nil then if data[TD_V[26]]and data[TD_V[26]][TD_V[26]]then inst[TD_V[80]]=data[TD_V[26]][TD_V[26]]end if data[TD_V[81]]and data[TD_V[81]][TD_V[81]]then inst[TD_V[82]]=data[TD_V[81]][TD_V[81]]end if data[TD_V[37]]and data[TD_V[37]][TD_V[83]]then inst[TD_V[84]]=data[TD_V[37]][TD_V[83]]end end end inst:ListenForEvent(TD_V[24],function(world,data)if data and data[TD_V[85]]and(data[TD_V[86]]==inst)and data[TD_V[87]]~=inst and not data[TD_V[87]]:HasTag(TD_V[25])then local target=data[TD_V[87]]TD[TD_V[88]](target,TD_V[26],function(comp)if comp[TD_V[89]]>=40 then TD[TD_V[90]](inst,TD[TD_V[42]](TD_V[5]),function(item)item:weaponLvUp()end)TD[TD_V[51]](inst,function(comp)comp:value(TD_V[13],comp:get(TD_V[13])+1,true)end)end end)end end,TheWorld)inst:ListenForEvent(TD_V[27],function(inst,data)if data and data[TD_V[91]]then local target=data[TD_V[91]]if not target[TD[TD_V[42]](TD_V[28])]then inst[TD[TD_V[42]](TD_V[28])]=0 end local additionDamage=0 if inst[TD[TD_V[42]](TD_V[29])]then inst[TD[TD_V[42]](TD_V[29])]=false TD[TD_V[92]](inst,target,10)end if inst[TD[TD_V[42]](TD_V[28])]>0 then TD[TD_V[93]](inst,target,0.1*inst[TD[TD_V[42]](TD_V[28])])end inst[TD[TD_V[42]](TD_V[28])]=inst[TD[TD_V[42]](TD_V[28])]+1 if inst[TD[TD_V[42]](TD_V[28])]>8 then inst[TD[TD_V[42]](TD_V[28])]=8 end TD[TD_V[94]](inst,TD[TD_V[42]](TD_V[30]))TD[TD_V[95]](inst,4,function()inst[TD[TD_V[42]](TD_V[28])]=0 end,TD[TD_V[42]](TD_V[30]))end if not(TD[TD_V[59]](inst):common_exist(TD[TD_V[42]](TD_V[31]))or inst[TD[TD_V[42]](TD_V[32])])then if not inst[TD[TD_V[42]](TD_V[33])]then inst[TD[TD_V[42]](TD_V[33])]=0 end inst[TD[TD_V[42]](TD_V[33])]=inst[TD[TD_V[42]](TD_V[33])]+1 inst[TD[TD_V[42]](TD_V[33])]=inst[TD[TD_V[42]](TD_V[33])]% 7 if inst[TD[TD_V[42]](TD_V[33])]==0 then TD[TD_V[88]](inst,TD_V[26],function(comp)inst[TD[TD_V[42]](TD_V[32])]=true comp:SetAbsorptionAmount(1)end)TD[TD_V[96]](TD[TD_V[97]](TD[TD_V[98]](inst,TD_V[34]),0,1,0),1.5)TD[TD_V[59]](inst):common_task(1.5,function()if not inst[TD[TD_V[42]](TD_V[32])]and not TD[TD_V[59]](inst):common_exist(TD[TD_V[42]](TD_V[35]))then TD[TD_V[88]](inst,TD_V[26],function(comp)comp:SetAbsorptionAmount(0)end)end inst[TD[TD_V[42]](TD_V[32])]=false end,TD[TD_V[42]](TD_V[31]))end end end)inst:ListenForEvent(TD_V[36],function(inst,data)inst[TD[TD_V[42]](TD_V[32])]=false if not TD[TD_V[59]](inst):common_exist(TD[TD_V[42]](TD_V[35]))then TD[TD_V[88]](inst,TD_V[26],function(comp)if TD[TD_V[59]](inst):common_exist(TD[TD_V[42]](TD_V[31]))then comp:SetAbsorptionAmount(0.3)else comp:SetAbsorptionAmount(0)end local tTime=TD[TD_V[51]](inst):get(TD_V[14])if comp[TD_V[99]]<comp[TD_V[89]]*0.2 and tTime<=0 then comp:SetAbsorptionAmount(1)if not inst:isFinalStatus()then TD[TD_V[70]](inst):qEffect(true)end TD[TD_V[51]](inst):value(TD_V[14],500,true,true)comp:DoDelta(100,false,inst[TD_V[100]],true,inst,true)TD[TD_V[101]](inst,TD_V[37]):DoDelta(300,false)TD[TD_V[59]](inst):common_task(100,function()print(TD_V[38])comp:SetAbsorptionAmount(0)end,TD[TD_V[42]](TD_V[35]))end end)end end)inst:ListenForEvent(TD_V[39],function(inst,data)if not inst or inst[TD_V[100]]~=TD[TD_V[53]]or not data or not data[TD_V[102]]then return end local equip=data[TD_V[102]]if table[TD_V[103]](bodySlots,data[TD_V[104]])and equip and equip[TD_V[100]]~=TD[TD_V[42]](TD_V[8])then TD[TD_V[105]](inst,equip)TD[TD_V[106]](inst,equip)TD[TD_V[107]](inst,STRINGS[TD_V[108]][TD[TD_V[42]](TD_V[40])])end end)end return MakePlayerCharacter(TD[TD_V[53]],prefabs,assets,common_postinit,master_postinit,start_inv)

it is a mess i know, i will attach the mod below:

 

ikaros DST Edited.rar

Edited by DepressiveCat

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...