/** 유저가 말함 **/
function Chatting_TalkUser(Index, ID, Nick, Text) {
이 위의 부분을 찾아서 그아래쪽에 아무대나 넣어주세요.
/** 맵이동2 (원하는곳으로 맵이동)**/
if (Text.indexOf(Received_instruction + "맵이동2") !== -1) {
if (IsAdmin(Index, ID) == true) {
if (Text.substring(Text.indexOf(Received_instruction + "맵이동2") + 5) == "") {
Tell(Index,"*[알림] 맵이동2 명령어 안내 : (" + Received_instruction + "이동할닉네임 원하는맵코드)");
} else {
var Arr = Text.substring(Text.indexOf(Received_instruction + "맵이동2")).split(" ")
if(Arr.length < 3) {
Tell(Index,"*잘못된 형식 입니다. (" + Received_instruction + "이동할닉네임 원하는맵코드)");
} else {
SQL_Execute("UPDATE characters SET map=" + Arr[2] + " where name='" + Arr[1] + "'");
Tell(Index,Arr[1] + " 님을 맵코드 " + Arr[2] + " 으로 이동시켰습니다.");
}
}
}
}
/** 맵이동1 (그냥 맵이동은 헤네시스로 이동)**/
if (Text.indexOf(Received_instruction + "맵이동") !== -1) {
if(Text.indexOf(Received_instruction + "맵이동2") != -1) return;
if (IsAdmin(Index, ID) == true) {
if (Text.substring(Text.indexOf(Received_instruction + "맵이동") + 5) == "") {
Tell(Index,"*[알림] 맵이동 명령어 안내 : (" + Received_instruction + "이동할닉네임)");
} else {
var Arr = Text.substring(Text.indexOf(Received_instruction + "맵이동")).split(" ")
if(Arr.length < 2) {
Tell(Index,"*잘못된 형식 입니다. (" + Received_instruction + "이동할닉네임)");
} else {
SQL_Execute("UPDATE characters SET map=1000000 where name='" + Arr[1] + "'");
Tell(Index,Arr[1] + " 님을 맵번호 1000000로 이동시켰습니다.");
}
}
}
}
'Abot or CMDbot > 공지사항' 카테고리의 다른 글
바람의나라 GM설정 및 해제 스크립트 (1) | 2012.11.17 |
---|---|
릴라모(le_lamo)님이 만드신, 쿼리 재연결 스크립트 (0) | 2012.11.17 |
dbg_vb님이 만드신 메소지급 스크립트 (0) | 2012.11.17 |
게임 현재접속중 풀기 스크립트 (0) | 2012.11.17 |
환생포인트 설정 스크립트 (0) | 2012.11.17 |