📄 神将融天.lua
字号:
if NPCcon==0 then
CmdNPC:Face(72);
CmdNPC:Say("你好,你想有赤练石升级装备吗?");
CmdNPC:Link("是的",1);
CmdNPC:Link("不要",255);
CmdNPC:Finish();
end;
if NPCcon==1 then
CmdNPC:Face(72);
CmdNPC:Say("请选者你要升级的装备!")
CmdNPC:Link("头部",11);
CmdNPC:Link("项链",12);
CmdNPC:Link("戒指",13);
CmdNPC:Link("武器",14);
CmdNPC:Link("衣服",15);
CmdNPC:Link("副手",16);
CmdNPC:Link("鞋子",17);
CmdNPC:Link("我不需要了",255);
CmdNPC:Finish();
end;
if NPCcon==11 then
if API:GetEquipItem(client,0) then
level=API:GetEquipItemAttribute(client,0,3);
if(level==0) then
if API:DelSelItem(client,73000,2,1) then
API:SetEquipItemAttribute(client,0,3,1);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==1) then
if API:DelSelItem(client,73000,2,2) then
API:SetEquipItemAttribute(client,0,3,2);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==2) then
if API:DelSelItem(client,73000,2,3) then
API:SetEquipItemAttribute(client,0,3,3);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==3) then
if API:DelSelItem(client,73000,2,4) then
API:SetEquipItemAttribute(client,0,3,4);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==4) then
if API:DelSelItem(client,73000,2,5) then
API:SetEquipItemAttribute(client,0,3,5);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==5) then
if API:DelSelItem(client,73000,2,6) then
API:SetEquipItemAttribute(client,0,3,6);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==6) then
if API:DelSelItem(client,73000,2,7) then
API:SetEquipItemAttribute(client,0,3,7);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==7) then
if API:DelSelItem(client,73000,2,8) then
API:SetEquipItemAttribute(client,0,3,8);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==8) then
if API:DelSelItem(client,73000,2,9) then
API:SetEquipItemAttribute(client,0,3,9);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
else
CmdNPC:Face(72);
CmdNPC:Say("你的装备已经达到最等级!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你的哪个部位没有装备!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
end;
if NPCcon==12 then
if API:GetEquipItem(client,1) then
level=API:GetEquipItemAttribute(client,1,3);
if(level==0) then
if API:DelSelItem(client,73000,2,1) then
API:SetEquipItemAttribute(client,1,3,1);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==1) then
if API:DelSelItem(client,73000,2,2) then
API:SetEquipItemAttribute(client,1,3,2);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==2) then
if API:DelSelItem(client,73000,2,3) then
API:SetEquipItemAttribute(client,1,3,3);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==3) then
if API:DelSelItem(client,73000,2,4) then
API:SetEquipItemAttribute(client,1,3,4);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==4) then
if API:DelSelItem(client,73000,2,5) then
API:SetEquipItemAttribute(client,1,3,5);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==5) then
if API:DelSelItem(client,73000,2,6) then
API:SetEquipItemAttribute(client,1,3,6);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==6) then
if API:DelSelItem(client,73000,2,7) then
API:SetEquipItemAttribute(client,1,3,7);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==7) then
if API:DelSelItem(client,73000,2,8) then
API:SetEquipItemAttribute(client,1,3,8);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==8) then
if API:DelSelItem(client,73000,2,9) then
API:SetEquipItemAttribute(client,1,3,9);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
else
CmdNPC:Face(72);
CmdNPC:Say("你的装备已经达到最等级!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你的哪个部位没有装备!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
end;
if NPCcon==13 then
if API:GetEquipItem(client,5) then
level=API:GetEquipItemAttribute(client,5,3);
if(level==0) then
if API:DelSelItem(client,73000,2,1) then
API:SetEquipItemAttribute(client,5,3,1);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
else
CmdNPC:Face(72);
CmdNPC:Say("不好意识你没符合要求的赤练石!")
CmdNPC:Link("哦,我看看",255);
CmdNPC:Finish();
end;
elseif(level==1) then
if API:DelSelItem(client,73000,2,2) then
API:SetEquipItemAttribute(client,5,3,2);
API:CharSpawn(client);
API:SendMess(client,"成功了恭喜你");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -