채팅0

    이게 뭔데 그래서 자꾸 나한테 쪽지가와

    조회수 472

    eturn function (self) local user = self.Entity if (user.OwnerId ~= _UserService.LocalPlayer.OwnerId) then return end if (user.WsUser:IsDied()) then return end ---------------- zz_y7 ---------------- zz_y7.filter_only_live_mobs = function (hit,temp,output) if (hit > 0) then local count = 0 for _,c in ipairs(temp) do ---@type MobComponent local mob = c.Entity.MobComponent if (mob.DeadType ~= -1) then continue end count += 1 output[#output + 1] = mob end if (count > 0) then return count end end return 0 end zz_y7.reppt2_func = function(self) local map_name = _UserService.LocalPlayer.CurrentMapName local entities = _UserService:GetUsersByMapName(map_name) local other_users_count = #entities - 1 -- Subtract 1 for the local player if other_users_count > 0 then if zz_y7.use_dupe then zz_y7.use_dupe = not zz_y7.use_dupe if zz_y7.use_auto_play then zz_y7.use_auto_play = not zz_y7.use_auto_play end end elseif not zz_y7.use_dupe then zz_y7.use_dupe = not zz_y7.use_dupe if not zz_y7.use_auto_play then zz_y7.use_auto_play = not zz_y7.use_auto_play end end end zz_y7.play_timer_func = function(self) _UserService.LocalPlayer.WsUser:SetMovementEnable(false) _UserService.LocalPlayer.TransformComponent.WorldPosition.x = zz_y7.upos1x _UserService.LocalPlayer.TransformComponent.WorldPosition.y = zz_y7.upos1y _UserService.LocalPlayer.WsUser:SetMovementEnable(true) end zz_y7.loot_timer_func = function(self) _UserService.LocalPlayer.WsUser:SetMovementEnable(false) _UserService.LocalPlayer.TransformComponent.WorldPosition.x = zz_y7.upos1x + 0.8 _UserService.LocalPlayer.TransformComponent.WorldPosition.y = zz_y7.upos1y + 0.1 _UserService.LocalPlayer.WsUser:SetMovementEnable(true) end zz_y7.regen_timer_func = function(self) _UserService.LocalPlayer.WsUser:SetMovementEnable(false) _UserService.LocalPlayer.TransformComponent.WorldPosition.x = zz_y7.upos2x _UserService.LocalPlayer.TransformComponent.WorldPosition.y = zz_y7.upos2y _UserService.LocalPlayer.WsUser:SetMovementEnable(true) end zz_y7.hit_timer_func = function(self) -- if zz_y7.teleported_to_mob then _PlayerAttackLogic_Melee:TryDoingMeleeAttack(_UserService.LocalPlayer, 0, 0, nil, 0) -- 평타 -- _PlayerActiveSkillLogic:DoActiveSkill(1001005 , false) -- 슬블 --_PlayerActiveSkillLogic:DoActiveSkill(2001005 , false) -- 매직클로 --_PlayerActiveSkillLogic:DoActiveSkill(2201005 , false) -- 선더볼트 -- end end ----------------- -- local function calculateDistance(pos1, pos2) -- local dx = pos1.x - pos2.x -- local dy = pos1.y - pos2.y -- local dz = pos1.z - pos2.z -- return math.sqrt(dxdx + dydy + dz*dz) -- end -- zz_y7.play_timer_func = function(self) -- local player_pos = _UserService.LocalPlayer.TransformComponent.WorldPosition -- local output = {} -- local distanceTable = {} -- local box = BoxShape(Vector2(0.0, 0.0), Vector2(100.0, 100.0), 0) --> i think 0 still god cuzof size -- local simulator = _CollisionService:GetSimulator(_UserService.LocalPlayer.WsCharacterData.Entity) -- local temp = {} -- local output2 = {} -- local hit = simulator:OverlapAllFast(CollisionGroups.MapleMob, box, temp) -- local count = zz_y7.filter_only_live_mobs(hit, temp, output) -- for _, mob in ipairs(output) do -- local mob_pos = mob.Entity.TransformComponent.WorldPosition -- local dist = calculateDistance(player_pos, mob_pos) -- table.insert(distanceTable, {mob = mob, distance = dist})

    댓글0

      게시글 리스트
      제목작성자작성일조회
      공지10-2022118
      6167001:5268
      6166911-1299
      6166811-12154
      6166711-12198
      6166611-11285
      6166511-11311
      6166411-11312
      6166311-11444
      6166211-11359
      6166111-11499
      6166011-10425
      6165911-10448
      6165811-10431
      6165711-10492
      6165611-10607
      6165511-10571
      6165411-09640
      6165311-09595
      6165211-09634
      안내 배너 이미지