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})
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 25411 | 이정도면..+1 | 02-01 | 364 | |
| 25410 | 02-01 | 1151 | ||
| 25409 | 02-01 | 1065 | ||
| 25408 | 02-01 | 825 | ||
| 25407 | 점검이네 ㄷㄷ+1 | 02-01 | 408 | |
| 25406 | 개돼지들아;;+1 | 02-01 | 239 | |
| 25405 | 지금 듀프 없음+5 | 02-01 | 415 | |
| 25404 | 02-01 | 637 | ||
| 25403 | 02-01 | 202 | ||
| 25402 | 02-01 | 651 | ||
| 25401 | 02-01 | 307 | ||
| 25400 | 02-01 | 233 | ||
| 25399 | 02-01 | 755 | ||
| 25398 | 02-01 | 193 | ||
| 25397 | 메이플 내용확인+2 | 02-01 | 303 | |
| 25396 | 02-01 | 472 | ||
| 25395 | 02-01 | 474 | ||
| 25394 | 02-01 | 174 | ||
| 25393 | 02-01 | 331 | ||
| 25392 | 02-01 | 446 |
댓글0