eiia5236 發表於 2010-8-18 12:27:47

此類的傳送NPC怎麼新增限制地圖

各位高手請問一下這樣的傳送NPC怎麼新增不能傳送的地圖

這個功能是
輸入對方ID即可傳送到對方所在處
input @ff$;
if ( Zeny < 1000 ) goto nomoney;
getmapxy(@map$,@x,@y,0,@ff$);
if (@map$ == "") goto nobody;
mes "[喇舌魔人]";
mes @ff$ + "正在" + @map$ + "的" + @x+ "," + @y + "。";
mes "妳要過去找他喇舌嗎??";
next;
menu
"要",gg,"不要",no;
end;
gg:
if (countitem(7339) >0 ) set @cost,0;
set @cost,10000;
set zeny,zeny-@cost;
warp @map$,@x,@y;
set @map$,"";
set @x,0;
set @y,0;
end;
close;
//------------------------------------------//
這個是輸入地圖編號就能傳送到地圖的NPC
input @sendmap$;
if (countitem(7339) >0 ) set @cost,0;
set @cost,2000;
set zeny,zeny-@cost;
warp @sendmap$,0,0;
close;
end;

Jackey650630 發表於 2010-8-18 12:48:37

1.你腳本裡面不就有範例了
getmapxy(@map$,@x,@y,0,@ff$);
if (@map$ == "") goto nobody;
2.貼腳本內容,請用
頁: [1]
查看完整版本: 此類的傳送NPC怎麼新增限制地圖