⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 npc_refine2.txt

📁 JA++的最新...很多ROSF都用这个 ] 是个不错的东西-3-
💻 TXT
📖 第 1 页 / 共 2 页
字号:
	L_MENU_3:
			mes @npcname$;
			mes "你问的是制作武器等级1与2以上所需要的金属吧!";
			mes "我想你应该也知道,神之金属和铝...原来就比较难取得...";
		close;
	L_START_1:
		input @nbm;
		if (@nbm < 1) goto L_SUB_1;
		if (Zeny < (@nbm * @value)) goto L_SUB_1;
		if ((Weight + (@nbm * 200)) > MaxWeight) goto L_SUB_2;
		set Zeny,Zeny - (@nbm * @value);
		getitem @itemid,@nbm;
			mes @npcname$;
			mes "好了,这是你要的强化武器用金属,请收好。";
close;
		L_SUBMENU_5:
			mes @npcname$;
			mes "那好吧,欢迎下次再来!";
			close;
		L_SUB_1:
			mes @npcname$;
			mes "对不起哦,你现在的金币不够,这里可不许赊帐的。";
			close;
		L_SUB_2:
			mes @npcname$;
			mes "对不起哦,你不能带这么多金属了。";
			close;
}

function	script	装备精炼	{
	mes @npcname$;
	mes "我是专门锻治武器与防具的铁匠,我可以为你锻治装置项目中的物品。你想要锻治装置项目中的哪一项物品呢?";
	next;
	menu	getequipname(1),L_MENU_1,
		getequipname(2),L_MENU_2,
		getequipname(3),L_MENU_3,
		getequipname(4),L_MENU_4,
		getequipname(5),L_MENU_5,
		getequipname(6),L_MENU_6,
		getequipname(7),L_MENU_7,
		getequipname(8),L_MENU_8,
		getequipname(9),L_MENU_9,
		getequipname(10),L_MENU_10;
	L_MENU_1:
		set @part,1;
		if (getequipisequiped(1)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_2:
		set @part,2;
		if (getequipisequiped(2)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_3:
		set @part,3;
		if (getequipisequiped(3)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_4:
		set @part,4;
		if (getequipisequiped(4)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_5:
		set @part,5;
		if (getequipisequiped(5)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_6:
		set @part,6;
		if (getequipisequiped(6)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_7:
		set @part,7;
		if (getequipisequiped(7)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_8:
		set @part,8;
		if (getequipisequiped(8)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_9:
		set @part,9;
		if (getequipisequiped(9)) goto L_START_1;
			goto L_CLOSE;
	L_MENU_10:
		set @part,10;
		if (getequipisequiped(10)) goto L_START_1;
			goto L_CLOSE;
L_START_1:
	if (getequipisenableref(@part)) goto L_START_2;
		mes @npcname$;
		mes "这项装置无法精炼。";
		goto L_CLOSE;
L_START_2:
	if (getequipisidentify(@part)) goto L_START_3;
		mes @npcname$;
		mes "这个因为是未鉴定的所以不能精炼。";
		goto L_CLOSE;
L_START_3:
	if (getequiprefinerycnt(@part) < 10) goto L_REFINE_0;
		mes @npcname$;
		mes "这件装备已经锻治到最高等级,无法再锻治了..";
		goto L_CLOSE;
L_REFINE_0:
	if (getequipweaponlv(@part) > 0) goto L_REFINE_1;
		mes @npcname$;
		mes "要锻治你所选择的这项装备需要^ff9999铝^000000以及费用2000金币。";
		mes "你确定要继续吗?";
		next;
		menu "继续",-,"取消",L_CANCEL_3;
			if (getequippercentrefinery(@part) == 100) goto L_0_SUB;
				mes @npcname$;
				mes "看来这装备已经锻治很多次了的样子...要是再继续锻治的话,可能会造成损坏喔!";
				next;
				mes @npcname$;
				mes "要是损坏的话可就不能继续使用了!!插在里面的卡片和特征也^ff0000全部都被消失了^000000!!";
				next;
				mes @npcname$;
				mes "而且,装备也会消失掉哦,你确定要继续吗?";
				next;
				menu "继续",-,"取消",L_CANCEL_1;
	L_0_SUB:
		if ((countitem(985) < 1) || (Zeny < 2000)) goto L_CANCEL_2;
			delitem 985,1;
			set Zeny,Zeny-2000;
			goto L_REFINE_5;
L_REFINE_1:
	if (getequipweaponlv(@part) > 1) goto L_REFINE_2;
		mes @npcname$;
		mes "你想要锻治武器等级1的武器啊!";
		mes "要锻治的话需要^ff9999强化武器用金属-强化级数一^000000以及费用500金币。";
		mes "你要继续吗?";
		next;
		menu "继续",-,"取消",L_CANCEL_3;
			if (getequippercentrefinery(@part) == 100) goto L_1_SUB;
				mes @npcname$;
				mes "看来这装备已经锻治很多次了的样子...要是再继续锻治的话,可能会造成损坏喔!";
				next;
				mes @npcname$;
				mes "要是损坏的话可就不能继续使用了!!插在里面的卡片和特征也^ff0000全部都被消失了^000000!!";
				next;
				mes @npcname$;
				mes "而且,装备也会消失掉哦,你确定要继续吗?";
				next;
				menu "继续",-,"取消",L_CANCEL_1;
	L_1_SUB:
		if ((countitem(1010) < 1) || (Zeny < 500)) goto L_CANCEL_2;
			delitem 1010,1;
			set Zeny,Zeny-500;
			goto L_REFINE_5;
L_REFINE_2:
	if (getequipweaponlv(@part) > 2) goto L_REFINE_3;
		mes @npcname$;
		mes "你想要锻治武器等级2的武器啊!";
		mes "要锻治的话需要^ff9999强化武器用金属-强化级数二^000000以及费用2000金币。";
		mes "你要继续吗?";
		next;
		menu "继续",-,"取消",L_CANCEL_3;
			if (getequippercentrefinery(@part) == 100) goto L_2_SUB;
				mes @npcname$;
				mes "看来这装备已经锻治很多次了的样子...要是再继续锻治的话,可能会造成损坏喔!";
				next;
				mes @npcname$;
				mes "要是损坏的话可就不能继续使用了!!插在里面的卡片和特征也^ff0000全部都被消失了^000000!!";
				next;
				mes @npcname$;
				mes "而且,装备也会消失掉哦,你确定要继续吗?";
				next;
				menu "继续",-,"取消",L_CANCEL_1;
	L_2_SUB:
		if ((countitem(1011) < 1) || (Zeny < 2000)) goto L_CANCEL_2;
			delitem 1011,1;
			set Zeny,Zeny-2000;
			goto L_REFINE_5;
L_REFINE_3:
	if (getequipweaponlv(@part) > 3) goto L_REFINE_4;
		mes @npcname$;
		mes "你想要锻治武器等级3的武器啊!";
		mes "要锻治的话需要^ff9999神之金属^000000以及费用2500金币。";
		mes "你要继续吗?";
		next;
		menu "继续",-,"取消",L_CANCEL_3;
			if (getequippercentrefinery(@part) == 100) goto L_3_SUB;
				mes @npcname$;
				mes "呜哇!!";
				mes "看来这武器已经锻治很多次了的样子...要是再继续锻治的话,可能会造成损坏喔!";
				next;
				mes @npcname$;
				mes "要是损坏的话可就不能继续使用了!!";
				mes "插在里面的卡片和特征^ff0000全部都被消失了^000000!!";
				next;
				mes @npcname$;
				mes "而且,装备也会消失掉哦,你确定要继续吗?";
				next;
				menu "继续",-,"取消",L_CANCEL_1;
	L_3_SUB:
		if ((countitem(984) < 1) || (Zeny < 2500)) goto L_CANCEL_2;
			delitem 984,1;
			set Zeny,Zeny-2500;
			goto L_REFINE_5;
L_REFINE_4:
		mes @npcname$;
		mes "你想要锻治武器等级4的武器啊!";
		mes "要锻治的话需要^ff9999神之金属^000000以及费用5000金币。";
		mes "你要继续吗?";
		next;
		menu "继续",-,"取消",L_CANCEL_3;
			if (getequippercentrefinery(@part) == 100) goto L_4_SUB;
				mes @npcname$;
				mes "呜哇!!";
				mes "看来这武器已经锻治很多次了的样子...要是再继续锻治的话,可能会造成损坏喔!";
				next;
				mes @npcname$;
				mes "要是损坏的话可就不能继续使用了!!";
				mes "插在里面的卡片和特征^ff0000全部都被消失了^000000!!";
				next;
				mes @npcname$;
				mes "而且,装备也会消失掉哦,你确定要继续吗?";
				next;
				menu "继续",-,"取消",L_CANCEL_1;
	L_4_SUB:
		if ((countitem(984) < 1) || (Zeny < 5000)) goto L_CANCEL_2;
			delitem 984,1;
			set Zeny,Zeny-5000;
L_REFINE_5:
	if (getequippercentrefinery(@part)<=rand(100)) goto L_REFINE_6;
		mes @npcname$;
		mes "锵!锵!!锵!";
		successrefitem @part;
		next;
		emotion 18;
		mes @npcname$;
		mes "拿去吧!已经做好了。好久没锻治出那么优质的武器了,武器变强了你一定也很高兴吧!";
		CLOSE;
L_REFINE_6:
	mes @npcname$;
	mes "锵!锵!!锵!";
	failedrefitem @part;
	next;
	emotion 4;
	mes @npcname$;
	mes "咳咳咳咳咳咳咳!!!";
	next;
	mes @npcname$;
	mes "真...丢脸。";
	mes "武器在锻治的过程中损坏了。";
	mes "我...我...早就告诉过你会这样的嘛!";
	CLOSE;
L_CANCEL_1:
	mes @npcname$;
	mes "很好。";
	mes "如果太过无理的锻治武器,而造成损坏,我心情也会跟着变坏的。";
	CLOSE;
L_CANCEL_2:
	mes @npcname$;
	mes "这些就是你所拥有的所有物品吗?";
	mes "虽然很可惜,但是你的材料不足,我也实在爱莫能助,再说,我付出也应该得要有所收获嘛!";
	CLOSE;
L_CANCEL_3:
	mes @npcname$;
	mes "那好吧,欢迎下次再来!";
L_CLOSE:
			mes @npcname$;
			mes "要不要我把你的头脑锻治得聪明一点啊?";
	close;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -