--[[
哈喽,哥们
偷摸改了我代码后可以考虑再来发赞助哈
支付宝:18506823312
我滴房租可全靠你们咯!
本来打算弃坑的,奈何换工作后房租疯涨
为了不睡在公园长椅上,只好继续出售模(jie)组(cao)咯~
		--BY 快交不起房租的 天地
]]
local TD_R=td1madao_sv()local TD_V={}TD_V[6]=TD_R({227,247,234,228,255,238,266})TD_V[12]=TD_R({163,225,252,232,237,252})TD_V[10]=TD_R({223,229,230,256,269,256,270,241,269})TD_V[8]=TD_R({239,251,262,266})TD_V[2]=TD_R({125})TD_V[3]=TD_R({127})TD_V[11]=TD_R({169,221,162})TD_V[4]=TD_R({261,225,262,248})TD_V[5]=TD_R({127,137})TD_V[7]=TD_R({261,231,130,252,229,236,232,261})TD_V[9]=TD_R({261,225,262,248,187,246,268,271})TD_V[1]=TD_R({231,251,250,228,225,236,268,271,231,274,244,143,264,242,249,245,274})TD_R=TD_V local TD=TD[TD_V[7]][TD_V[1]]local myComponent=Class(function(self,inst)self[TD_V[8]]=inst self[TD_V[9]]={}self[TD_V[10]]=TN(TD_V[2])end)function myComponent:common_period(period,fun,taskName,cleanTime,cleanFunction)local player=self[TD_V[8]]if not fun then return end if not taskName then self[TD_V[10]]=self[TD_V[10]]+TN(TD_V[3])taskName=TD_V[4]..tostring(self[TD_V[10]])end if not period then period=TN(TD_V[3])end if not cleanTime then cleanTime=TN(TD_V[5])end if not cleanFunction then cleanFunction=TD[TD_V[11]]end self:common_clean(taskName)self:common_clean(taskName..TD_V[6])self:common_task(cleanTime,function()cleanFunction()self:common_clean(taskName)self:common_clean(taskName..TD_V[6])end,taskName..TD_V[6])self[TD_V[9]][taskName]=player:DoPeriodicTask(period,fun)return self[TD_V[9]][taskName]end function myComponent:common_task(time,fun,taskName)local player=self[TD_V[8]]if not fun then return end if not taskName then self[TD_V[10]]=self[TD_V[10]]+TN(TD_V[3])taskName=TD_V[4]..tostring(self[TD_V[10]])end self:common_clean(taskName)self[TD_V[9]][taskName]=player:DoTaskInTime(time or TN(TD_V[3]),function()fun()self:common_clean(taskName)end)return self[TD_V[9]][taskName]end function myComponent:common_clean(taskName)local player=self[TD_V[8]]if not taskName then return end if player and self[TD_V[9]][taskName]then if self[TD_V[9]][taskName][TD_V[12]]then self[TD_V[9]][taskName]:Cancel()end self[TD_V[9]][taskName]=nil end end function myComponent:common_exist(taskName)local player=self[TD_V[8]]if not taskName then return false end return player and self[TD_V[9]][taskName]end function myComponent:common_cleanAll(arr)if not arr then return end for i=TN(TD_V[3]),#arr do local name=arr[i]if name then self:common_clean(name)end end end function myComponent:server_period(period,fun,taskName,cleanTime,cleanFunction)return self:common_period(period,fun,taskName,cleanTime,cleanFunction)end function myComponent:player_period(period,fun,taskName,cleanTime,cleanFunction)return self:common_period(period,fun,taskName,cleanTime,cleanFunction)end function myComponent:server_task(time,fun,taskName)return self:common_task(time,fun,taskName)end function myComponent:player_task(time,fun,taskName)return self:common_task(time,fun,taskName)end function myComponent:server_clean(taskName)self:common_clean(taskName)end function myComponent:player_clean(taskName)self:common_clean(taskName)end function myComponent:server_exist(taskName)return self:common_exist(taskName)end function myComponent:player_exist(taskName)return self:common_exist(taskName)end function myComponent:server_cleanAll(arr)self:common_cleanAll(arr)end function myComponent:player_cleanAll(arr)self:common_cleanAll(arr)end return myComponent
