杭州地图
2750=山路|west:2751,northeast:296,2751=山路|southwest:2752,east:2750,
2752=山路|west:2753,northeast:2751,
…………
2808=空白房间|
2809=空白房间|
2810=空白房间|
2811=这不是为拥有“长袖善舞”的id准备的,拥有最全的地图,包括万安塔(mapper制作)|
[ 本帖最后由 tianheng 于 2010-1-7 08:36 AM 编辑 ] 原帖由 tianheng 于 2010-1-6 05:05 PM 发表 http://pkuxkx.net/forum/images/common/back.gif
2750=山路|west:2751,northeast:296,
2751=山路|southwest:2752,east:2750,
2752=山路|west:2753,northeast:2751,
2753=青石官道|west:2754,east:2752,
2754=东门|west:2755,east:2753,
2755=东大街|north:2756 ...
ttk_09 超过20个房间的地图数据,应该删帖…… 喂,楼上的,这种违禁物品自己拥有慢慢研究就好了,怎么能拿出来晒呢?赶紧收起来! maper 老大,告诉我,这个东西怎么用?你放19个出来,教教我。。。 原帖由 maper 于 2010-1-6 10:07 PM 发表 http://pkuxkx.net/forum/images/common/back.gif
喂,楼上的,这种违禁物品自己拥有慢慢研究就好了,怎么能拿出来晒呢?赶紧收起来!
mapper老大,你真厉害! 原帖由 zgbl 于 2010-1-6 10:03 PM 发表 http://pkuxkx.net/forum/images/common/back.gif
超过20个房间的地图数据,应该删帖……
已经处理了! 原帖由 cid 于 2010-1-6 10:46 PM 发表 http://pkuxkx.net/forum/images/common/back.gif
maper 老大,告诉我,这个东西怎么用?你放19个出来,教教我。。。
var mapper = new ActiveXObject("mapper.path");
function findpath_ready() {
cTrigger("findpath_ready","^(.*)\\((.*)\\)告诉你:(.*)$","","findpath");
}
/**查找路径**/
function findpath(name, line, wildcards) {
var wcs = VBArray(wildcards).toArray();
var msg = wcs.split(/\s/);
var replytxt = "";
if (msg == "path") {
var p = msg.split("-");
if (p.length == 2) {
if (p == p) {
replytxt += "消遣大爷啊,已经到了,还查!";
} else {
mapper.getidfrname(p);
var res0 = mapper.result;
mapper.getidfrname(p);
var res1 = mapper.result;
if (res0.split(";").length != 2 || res1.split(";").length != 2) {
if (res0.split(";").length != 2) {
replytxt += p + "不存在或不唯一";
}
if (res1.split(";").length != 2) {
replytxt += p + "不存在或不唯一";
}
replytxt += ",请往四周走走,找到唯一存在的房间!";
} else {
mapper.search(res0.split(";"),res1.split(";"));
var res = mapper.result;
replytxt += p + "->" + p + ":" + res.replace(/\\/g,";");
}
}
} else {
replytxt += "tell xxx path 地名1-地名2";
}
Send("reply " + replytxt);
//debug("path","(" + wcs + "):::" + replytxt);
world.AppendToNotepad("path", Date() + "-" + "(" + wcs + "):::" + replytxt + "\r\n");
}
}
/**创建一个临时触发器**/
function cTrigger(t_name, t_match, t_response, t_function) {
var ret = 0;
//t_name += GetUniqueNumber();
ret = AddTriggerEx(t_name, t_match, t_response, 1 | 8 | 32 | 1024 | 16384,
-1, 0, "", t_function, 0, 100);
if (ret > 0) {
Note("--建立持续性触发器【" + t_name + "】失败 ," + "错误号:" + ret);
}
}
页:
[1]