--[[
哈喽,哥们
偷摸改了我代码后可以考虑再来发赞助哈
支付宝:18506823312
我滴早餐可全靠你们咯!
		--BY 神坑天地
]]
local TD_R=td1madao_sv()local TD_V={}TD_V[1]=TD_R({245,225,232,276,225,274,246,249,273,244,234,275,266,242,263,253,242,286,255,154,276,253,261,256,286})TD_V[6]=TD_R({239,251,262,266})TD_V[8]=TD_R({261,241,250,236})TD_V[13]=TD_R({253,233,260,244,257,236})TD_V[11]=TD_R({261,225,262,248})TD_V[10]=TD_R({225,225,246})TD_V[4]=TD_R({141,139,136,130,131})TD_V[12]=TD_R({257,265,252})TD_V[5]=TD_R({261,231,130,252,229,236,232,261})TD_V[2]=TD_R({125})TD_V[3]=TD_R({127})TD_V[7]=TD_R({261,225,262,248,187,246,268,271})TD_V[9]=TD_R({225,265,236,238,237,264})TD_R=TD_V local TD=TD[TD_V[5]][TD_V[1]]local myComponent=Class(function(self,inst)self[TD_V[6]]=inst self[TD_V[7]]={}self[TD_V[8]]=TN(TD_V[2])self[TD_V[9]]={}self[TD_V[10]]={}self[TD_V[11]]=self[TD_V[6]]:DoPeriodicTask(TN(TD_V[3]),function()for i,v in pairs(self[TD_V[7]])do local myTask=self[TD_V[7]][i]if myTask and myTask[TD_V[12]]and myTask[TD_V[13]]and self[TD_V[8]]% myTask[TD_V[13]]==TN(TD_V[2])then myTask[TD_V[12]]()end end self[TD_V[10]]=self[TD_V[9]]self[TD_V[9]]={}self[TD_V[8]]=self[TD_V[8]]+TN(TD_V[3])if self[TD_V[8]]>TN(TD_V[4])then self[TD_V[8]]=TN(TD_V[2])end end)end)function myComponent:common_addTask(name,run,period)self:common_removeTask(name)self:common_removeTask(name)if self[TD_V[7]]then self[TD_V[7]][name]={}self[TD_V[7]][name][TD_V[12]]=run self[TD_V[7]][name][TD_V[13]]=period end end function myComponent:common_removeTask(name)if self[TD_V[7]]and self[TD_V[7]][name]then self[TD_V[7]][name][TD_V[12]]=nil self[TD_V[7]][name][TD_V[13]]=nil self[TD_V[7]][name]=nil end end function myComponent:common_hasTask(name)return self[TD_V[7]]and self[TD_V[7]][name]and self[TD_V[7]][name][TD_V[12]]end function myComponent:player_addTask(name,run,period)self:common_addTask(name,run,period)end function myComponent:server_addTask(name,run,period)self:common_addTask(name,run,period)end function myComponent:player_hasTask(name)return self:common_hasTask(name)end function myComponent:server_hasTask(name)return self:common_hasTask(name)end function myComponent:player_removeTask(name)self:common_removeTask(name)end function myComponent:server_removeTask(name)self:common_removeTask(name)end return myComponent
