📄 npc_airplane.txt
字号:
//==============================================
// edit by 飞火 2005-7-21
// 代码重写&修正 by FPE (2006.6.27)
// Jathena++ 论坛:http://www.foxofice.net/bbs
//----------------------------------------------
function script airportIn {
mes "[机场 职员]";
mes "你好吗,我们航空随时提供给顾客便捷又舒适的旅行服务,会尽其所能,轻问你需要帮忙吗?";
next;
if(getarg(0)==1)
{
menu "我要进入机场内部",A01,
"取消",-;
mes "[机场 服务]";
mes "请你下次再利用吧,谢谢光临";
close;
end;
A01:
mes "[机场 职员]";
mes "利用飞空艇的费用为1200金币,如果你持有飞行艇免费搭乘卷的话,就能免费进入,请问您要进入机场内部吗?";
next;
switch(select("是的","不要"))
{
case 1:
if(countitem(7311)<1)
{
if(zeny<1200)
{
mes "[机场 职员]";
mes "请带上足够的现金";
close;
end;
}
set zeny,zeny-1200;
warp "airport.gat",142,49;
end;
}
delitem 7311,1;
warp "airport.gat",142,49;
end;
break;
case 2:
mes "[机场 服务]";
mes "请你下次再利用吧,谢谢光临";
close;
end;
break;
}
}
if(getarg(0)==2)
{
mes "[机场 职员]";
mes "如果你要从机场内部离开又想进来的话,要在花一次费用喔,请问您要离开吗?";
next;
switch(select("是的","不要"))
{
case 1:
warp "airport.gat",143,42;
close;
end;
break;
case 2:
mes "[机场 服务]";
mes "请你下次再利用吧,谢谢光临";
close;
end;
break;
}
}
}
airport.gat,158,43,4 script 机场 服务 90,{ callfunc "airportIn",1; }
airport.gat,144,43,4 script 机场 服务 90,{ callfunc "airportIn",1; }
airport.gat,130,43,4 script 机场 服务 90,{ callfunc "airportIn",1; }
airport.gat,158,50,4 script 机场 服务 90,{ callfunc "airportIn",2; }
airport.gat,144,50,4 script 机场 服务 90,{ callfunc "airportIn",2; }
airport.gat,130,50,4 script 机场 服务 90,{ callfunc "airportIn",2; }
airport.gat,143,62,0 warp einairport01 3,2,einbroch.gat,64,242
einbroch.gat,64,234,0 warp einairport02 3,2,airport.gat,142,55
einbroch.gat,92,280,0 warp einairport03 2,3,airplane.gat,227,60
airplane.gat,243,29,0 script rand_Airplane_1 45,2,3,{
if($@airwarp==1) warp "einbroch",92,276;
if($@airwarp==0) warp "yuno",157,168;
end;
}
airplane.gat,243,74,0 script rand_Airplane_2 45,2,3,{
if($@airwarp==1) warp "einbroch",92,276;
if($@airwarp==0) warp "yuno",157,168;
end;
}
airplane.gat,101,65,1 script airplane -1,{
end;
OnInit:
initnpctimer;
end;
OnTimer15000:
switch($@airplane)
{
case 0:
mapannounce "airplane.gat","我们目前正停靠在朱诺,等一下即将出发啰",16;
set $@airplane,$@airplane+1;
break;
case 1:
mapannounce "airplane.gat","飞空艇即将起飞,下一个目的是艾音布罗克",16;
set $@airplane,$@airplane+1;
break;
case 2:
mapannounce "airplane.gat","目前飞空艇正在飞往艾音布罗克途中",16;
mapannounce "yuno.gat","飞空艇飞离本市,请要搭乘飞空艇的乘客等待下班飞空艇",16;
set $@airwarp,2;
disablenpc "rand_Airplane_1";
disablenpc "rand_Airplane_2";
set $@airplane,$@airplane+1;
break;
case 3:
mapannounce "airplane.gat","等一下飞船就要降落在艾音布罗克",16;
set $@airplane,$@airplane+1;
break;
case 4:
mapannounce "airplane.gat","我们已经到达艾音布罗克了,下机的旅客再会了",16;
mapannounce "einbroch.gat","飞空艇抵达本市,请要搭乘飞空艇的乘客抓紧时间登上飞空艇",16;
set $@airwarp,1;
enablenpc "einplane";
enablenpc "rand_Airplane_1";
enablenpc "rand_Airplane_2";
set $@airplane,$@airplane+1;
break;
case 5:
mapannounce "airplane.gat","我们目前正停靠在艾音布罗克,等一下即将出发啰",16;
set $@airplane,$@airplane+1;
break;
case 6:
mapannounce "airplane.gat","飞空艇即将起飞,下一个目的是朱诺",16;
set $@airplane,$@airplane+1;
break;
case 7:
mapannounce "airplane.gat","目前飞空艇正在飞往朱诺途中",16;
mapannounce "einbroch.gat","飞空艇飞离本市,请要搭乘飞空艇的乘客等待下班飞空艇",16;
set $@airwarp,2;
disablenpc "rand_Airplane_1";
disablenpc "rand_Airplane_2";
disablenpc "einplane";
set $@airplane,$@airplane+1;
break;
case 8:
mapannounce "airplane.gat","等一下飞船就要降落在朱诺",16;
set $@airplane,$@airplane+1;
break;
case 9:
mapannounce "airplane.gat","我们已经到达朱诺了,下机的旅客再会了",16;
mapannounce "yuno.gat","飞空艇抵达本市,请要搭乘飞空艇的乘客抓紧时间登上飞空艇",16;
set $@airwarp,0;
enablenpc "rand_Airplane_1";
enablenpc "rand_Airplane_2";
set $@airplane,0;
break;
}
setnpctimer 0;
end;
}
airplane.gat,100,69,4 script 机组员 852,{
mes "[机组员]";
mes "如果你要在飞空艇下来的话,请利用到上层的楼梯,感谢你搭乘飞空艇,";
mes "祝你有个愉快的一天!";
close;
end;
}
yuno.gat,141,175,4 script 飞空艇 职员 88,{
mes "[飞空艇 职员]";
mes "你好,我们航空随时提供给顾客便捷又舒适的旅行服务,会尽其所能,轻问你需要帮忙吗?";
next;
if($@airwarp==0)
{
menu "我要搭乘飞空艇",A01,
"取消",-;
mes "[飞空艇 职员]";
mes "请您下次再利用吧,谢谢光临";
close;
end;
A01:
mes "[飞空艇 职员]";
mes "利用飞空艇的费用为1200金币,如果你持有飞行艇免费搭乘卷的话,就能免费搭乘,你只有搭乘飞空艇才能到达'^FF0000艾音布罗克^000000'请问您要搭乘飞空艇吗?";
next;
switch(select("是的","不要"))
{
case 1:
if(countitem(7311)<1)
{
if(zeny<1200)
{
mes "[飞空艇 职员]";
mes "请带上足够的现金";
close;
end;
}
set zeny,zeny-1200;
warp "airplane.gat",227,60;
end;
}
delitem 7311,1;
warp "airplane.gat",227,60;
end;
break;
case 2:
mes "[飞空艇 职员]";
mes "请您下次再利用吧,谢谢光临";
close;
end;
break;
}
}
else
{
mes "[飞空艇 职员]";
mes "目前飞空艇未停靠在本市,请稍后";
close;
end;
}
}
airplane.gat,50,67,4 script 霍慈 86,{
mes "[霍慈]";
mes "欢迎光临,我这里有贩售新鲜的苹果和榨苹果汁的服务喔~";
next;
menu "我要购买苹果",A01,
"我要把苹果榨成苹果汁",A02,
"你是哪里来的苹果商人啊",A03,
"取消",-;
mes "[霍慈]";
mes "欢迎您下次再来,拜拜啰~";
close;
end;
A01:
mes "[霍慈]";
mes "请输入要购买的苹果数量,苹果每颗15金币,一次最多能买500颗,若要取消购买时请输入0";
A01_1:
next;
input @temp;
if(@temp==0)
{
mes "[霍慈]";
mes "欢迎您下次再来,拜拜啰~";
close;
end;
}
if(@temp<0 || @temp>500)
{
mes "[霍慈]";
mes "你输入的数量不正确,请重新输入";
goto A01_1;
}
set @zenytemp,@temp*15;
mes "[霍慈]";
mes "你要购买的苹果数量是^FF0000"+@temp+"颗^000000啰,需要支付的金额是 ^FF0000"+@zenytemp+"^000000 金币,你确定要购买吗?";
next;
switch(select("要","不要"))
{
case 1:
if(zeny<@zenytemp)
{
mes "[霍慈]";
mes "你身上的金钱不足";
close;
end;
}
if((Weight+(@temp*20))>MaxWeight)
{
mes "[霍慈]";
mes "你的负重不足";
close;
end;
}
set zeny,zeny-@zenytemp;
getitem 512,@temp;
mes "[霍慈]";
mes "谢谢你,如果你还需要苹果的话,欢迎您再来";
close;
end;
break;
case 2:
mes "[霍慈]";
mes "欢迎您下次再来,拜拜啰~";
close;
end;
break;
}
A02:
mes "[霍慈]";
mes "苹果汁需要";
mes "^FF0000苹果3颗和空瓶一个^000000,请你把这些材料交给我就能制作了,请问您要榨苹果汁吗?";
next;
switch(select("是的","不要"))
{
case 1:
if(countitem(512)<3 || countitem(713)<1)
{
mes "[霍慈]";
mes "你所拥有的材料好像不够呢,我再告诉你一遍吧,需要^FF0000苹果3颗和空瓶1个^000000,请你把这些材料交给我就能制作了,收集材料以后再来找我吧";
close;
end;
}
delitem 512,3;
delitem 713,1;
mes "[霍慈]";
mes "谢谢你,如果你还需要苹果汁的话,欢迎您再来";
close;
end;
break;
case 2:
mes "[霍慈]";
mes "欢迎您下次再来,拜拜啰~";
close;
end;
break;
}
A03:
mes "[霍慈]";
mes "我本来是个四处要饭的乞丐,直到有一天窝在树底下熟睡时,突然有个东西掉到我头上";
next;
mes "[霍慈]";
mes "当我吓醒一看,原来打断我梦见周公的是颗苹果,我睡觉的地方就是颗苹果树啊";
next;
mes "[霍慈]";
mes "刚我我肚子饿了,正想要吃苹果时,一位在飞空艇的希魅乐先生说有急事请我帮忙,随后把我叫到飞空艇去,忙完后逛了一下飞空艇时,发现了以苹果为赌注的掷骰子游戏";
next;
mes "[霍慈]";
mes "我心想满无聊的,万一走运了呢,所以就拿刚才掉下来的苹果赌了一把,美想到那天手气太好了,我的苹果由1颗变2颗,再由2颗变4颗,就这样越赢越多了";
next;
mes "[霍慈]";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -