if self.Entity ~= _UserService.LocalPlayer then return end
if string.find(Message, "<size") or string.find(Message, "<SIZE") then
self._T.count += 1
if self._T.count > 2 then
_EntityService:GetEntityByPath("/ui/DefaultGroup/UIChat").Enable = false
_UIToast:ShowMessage("채팅 악용을 막았습니다. 이후로도 계속 적발시 채팅이 완전히 금지됩니다.")
else
_UIToast:ShowMessage("채팅 악용이 감지되었습니다."..self._T.count.."회")
end
elseif string.sub(Message, 1, 16) == "/파티만들기" then
if _EntityService:GetEntityByPath("/common").PartySystem.partyID ~= 0 then
_UIToast:ShowMessage("파티를 먼저 탈퇴하세요.", self.Entity.PlayerComponent.UserId)
else
_EntityService:GetEntityByPath("/common").PartySystem:CreateParty(nil, _UserService.LocalPlayer, "일반", "이름없음(비공개)", self.lv, self.job)
end
end
local current = _UtilLogic.ElapsedSeconds
local delta = tonumber(current - self._T.time)
local length = string.len(Message)
if length < 15 then return end
if (length / delta) > 30 then
self._T.count += 1
if self._T.count > 2 then
_EntityService:GetEntityByPath("/ui/DefaultGroup/UIChat").Enable = false
_UIToast:ShowMessage("도배로 채팅을 막았습니다. 이후로도 계속 적발시 패널티가 있습니다.")
else
_UIToast:ShowMessage("도배가 감지되었습니다."..self._T.count.."회")
end
end
self._T.time = current
end
| 제목 | 작성자 | 작성일 | 조회 | |
|---|---|---|---|---|
| 공지 | 게시판 이용 안내+156 | 10-20 | 22382 | |
| 61792 | 12-28 | 160 | ||
| 61791 | 12-28 | 239 | ||
| 61790 | 12-26 | 513 | ||
| 61789 | 12-25 | 639 | ||
| 61788 | 12-25 | 598 | ||
| 61787 | 12-24 | 886 | ||
| 61786 | 12-23 | 1215 | ||
| 61785 | 12-22 | 1229 | ||
| 61784 | 12-22 | 1364 | ||
| 61783 | 12-22 | 1201 | ||
| 61782 | 12-21 | 1277 | ||
| 61781 | 12-21 | 1439 | ||
| 61780 | 12-21 | 1359 | ||
| 61779 | 12-19 | 1557 | ||
| 61778 | 12-18 | 1651 | ||
| 61777 | 12-18 | 2253 | ||
| 61776 | 12-16 | 2163 | ||
| 61775 | 12-14 | 2256 | ||
| 61774 | 12-14 | 2637 |
댓글1
이건 어디에넣어형?