xp2.3h / 팀봇 스크립트(FollowXP.d2j) 오류 수정 [글 수정]
분류
봇관련
조회 수
1,794
추천 수
0
# 팀봇?
d2jsp ver1.2 코어는 chatmsg이벤트함수가 해금 되면서 자동팀봇이 - 통상의 방법으로 - 가능해졌습니다.
이전 버젼에도 수동으로 같은 방에 조인 시키면 쫄봇/팀봇은 가능했었죠. 다만 이번에 풀린 저 이벤트함수는
게임밖-로비에서 쳇상의 메시지를 받을 수 있게하는 것입니다. 이는 다수의 봇을 실행시키고 같은 게임에 조인하여
상호작용으로 스크립트를 수행하는 것이 가능하다는 의미입니다.
예로 소서리스 리더가 방을 생성하여 바알봇이나 카오스봇을 돌리고, 팔라딘과 네크 쫄봇들이 그 게임에 조인하여 같
이 사냥하는 것이 모두 자동으로 가능합니다.
# xp2.3h 팀봇 스크립트(FollowXP.d2j) 오류 수정
대런/얌봇의 팀봇팅은 경험이 있었지만 xp-2.3h버젼의 팀봇은 처음 테스트 해보았습니다.
팀봇 기능은 오히려 전의 것들 보다 축소되었습니다. 심플한건지 날림인지 잘 구분이 되지않습니다. :P
바알봇과 연동했을 때, 포탈타고 들어오기까지는 되지만 follow기능은 작동하지 않더군요. 수동으로 커맨드를
주었을 때도 마찬가지였습니다. 쫄봇 쪽에 엄청난 랙이 걸립니다.
그래서 해당 스크립트 - FollowXP.d2j를 보다가 코드에서 다소 황당한 실수를 발견했습니다.
다음을 수정해야 follow기능이 정상적으로 작동합니다.
//151 라인
_desiredPointX = Math.round( _deltax * ( FWXP_LeashDistMax / FWXP_LeashDistMin ) ) + _leaderunit.x;
_desiredPointY = Math.round( _deltay * ( FWXP_LeashDistMax / FWXP_LeashDistMin ) ) + _leaderunit.y;
를 다음으로,
_desiredPointX = Math.round( _deltax * ( FWXP_LeashDistMin / FWXP_LeashDistMax ) ) + _leaderunit.x;
_desiredPointY = Math.round( _deltay * ( FWXP_LeashDistMin / FWXP_LeashDistMax ) ) + _leaderunit.y;
//178라인
_desiredPointX = Math.round( _deltax * ( FWXP_LeashDistMax / FWXP_LeashDistMin ) ) + ppLeader.x;
_desiredPointY = Math.round( _deltay * ( FWXP_LeashDistMax / FWXP_LeashDistMin ) ) + ppLeader.y;
를 다음으로 수정.
_desiredPointX = Math.round( _deltax * ( FWXP_LeashDistMin / FWXP_LeashDistMax ) ) + ppLeader.x;
_desiredPointY = Math.round( _deltay * ( FWXP_LeashDistMin / FWXP_LeashDistMax ) ) + ppLeader.y;
그리고, 쫄의 경우 캐릭 콘픽에서.
FWXP_LeashDist = xx ; 는 변수명이 잘못되어 있습니다. 다음이 맞습니다.
FWXP_LeashDistMin = 1; //
FWXP_LeashDistMax = 4; // 최소한 1 최대한 4만큼 리더와의 간격을 유지합니다.