Dragonik Опубликовано 22 ноября, 2015 Жалоба Поделиться Опубликовано 22 ноября, 2015 (изменено) Здравствуйте. Хотел бы узнать есть ли возможность отсечь из команды @go напримр 16 локации. чтобы игрок мог свободно портироваться по всем картам кроме данного места? без отсечения данной возможности у гма Изменено 22 ноября, 2015 пользователем Dragonik Ссылка на комментарий Поделиться на другие сайты Поделиться
Gintama Опубликовано 22 ноября, 2015 Жалоба Поделиться Опубликовано 22 ноября, 2015 (изменено) sec_pri[TAB]mapflag[TAB]nowarpsec_pri[TAB]mapflag[TAB]nowarptosec_pri[TAB]mapflag[TAB]nogoа убрать локацию в го можно https://rathena.org/wiki/@go Изменено 22 ноября, 2015 пользователем Gintama Ссылка на комментарий Поделиться на другие сайты Поделиться
botka4aet Опубликовано 23 ноября, 2015 Жалоба Поделиться Опубликовано 23 ноября, 2015 Былоif (town >= 0 && town < ARRAYLENGTH(data)){ int16 m = map_mapname2mapid(data[town].map); if (m >= 0 && map[m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) { clif_displaymessage(fd, msg_txt(sd,247)); return -1; } if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) { clif_displaymessage(fd, msg_txt(sd,248)); return -1; } if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == 0) { clif_displaymessage(fd, msg_txt(sd,0)); // Warped. } else { clif_displaymessage(fd, msg_txt(sd,1)); // Map not found. return -1; }} else { // if you arrive here, you have an error in town variable when reading of names clif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number or name. return -1;}сталоif (town == 16 && pc_get_group_level(sd) < 99){ return -1;}else if (town >= 0 && town < ARRAYLENGTH(data)){ int16 m = map_mapname2mapid(data[town].map); if (m >= 0 && map[m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) { clif_displaymessage(fd, msg_txt(sd,247)); return -1; } if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) { clif_displaymessage(fd, msg_txt(sd,248)); return -1; } if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == 0) { clif_displaymessage(fd, msg_txt(sd,0)); // Warped. } else { clif_displaymessage(fd, msg_txt(sd,1)); // Map not found. return -1; }}else { // if you arrive here, you have an error in town variable when reading of names clif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number or name. return -1;} 1 Ссылка на комментарий Поделиться на другие сайты Поделиться
Dragonik Опубликовано 23 ноября, 2015 Автор Жалоба Поделиться Опубликовано 23 ноября, 2015 Былоif (town >= 0 && town < ARRAYLENGTH(data)){int16 m = map_mapname2mapid(data[town].map);if (m >= 0 && map[m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {clif_displaymessage(fd, msg_txt(sd,247));return -1;}if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {clif_displaymessage(fd, msg_txt(sd,248));return -1;}if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == 0) {clif_displaymessage(fd, msg_txt(sd,0)); // Warped.} else {clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.return -1;}} else { // if you arrive here, you have an error in town variable when reading of namesclif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number or name.return -1;}сталоif (town == 16 && pc_get_group_level(sd) < 99){return -1;}else if (town >= 0 && town < ARRAYLENGTH(data)){int16 m = map_mapname2mapid(data[town].map);if (m >= 0 && map[m].flag.nowarpto && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {clif_displaymessage(fd, msg_txt(sd,247));return -1;}if (sd->bl.m >= 0 && map[sd->bl.m].flag.nowarp && !pc_has_permission(sd, PC_PERM_WARP_ANYWHERE)) {clif_displaymessage(fd, msg_txt(sd,248));return -1;}if (pc_setpos(sd, mapindex_name2id(data[town].map), data[town].x, data[town].y, CLR_TELEPORT) == 0) {clif_displaymessage(fd, msg_txt(sd,0)); // Warped.} else {clif_displaymessage(fd, msg_txt(sd,1)); // Map not found.return -1;}}else { // if you arrive here, you have an error in town variable when reading of namesclif_displaymessage(fd, msg_txt(sd,38)); // Invalid location number or name.return -1;}да это как раз то что я искал !!!! Спасибо!!! Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения