📄 竞技场守卫.lua
字号:
if API:GetBIPK()==0 and API:GetSTPK()==0 then
if NPCcon==0 then
CmdNPC:Face(15);
CmdNPC:Say("欢迎你来挑战擂台,他对任何人开放,每次收50元入场费,在擂台上死亡或者杀死别人") -- en "The arena is open. Welcome to challenge other people. The" "admission fee is only 50 silver.""If you PK in the arena, you will not gain or lose any""experience or equipment, and you will get revived at the""place you die.""The Kungfu circle is very dangerous, I suggest you PK in""arena."
CmdNPC:Say("如果你不是红名,不会损失什么,你要进去吗?");
CmdNPC:Link("是的我要进去",1);
CmdNPC:Link("不,我不进去了",255);
CmdNPC:Finish();
end;
if NPCcon==1 then
if Char.Money>49 then
Char.Money=Char.Money-50;
API:GotoMap(client,1005,51,68);
else
CmdNPC:Say("对不起你没有50元");
CmdNPC:Link("我看看",255);
CmdNPC:Finish();
end;
end;
elseif API:GetBIPK()==1 and API:GetSTPK()==0 then
if NPCcon==0 then
CmdNPC:Face(15);
CmdNPC:Say("PK大赛现在开始报名中。需要10个参赛令即可进入。进入后不可退出游戏哦。") -- en "The arena is open. Welcome to challenge other people. The" "admission fee is only 50 silver.""If you PK in the arena, you will not gain or lose any""experience or equipment, and you will get revived at the""place you die.""The Kungfu circle is very dangerous, I suggest you PK in""arena."
CmdNPC:Say("游戏将在8点钟开始哦。一直到场里剩下最后人,就是胜利者!你要进去吗?");
CmdNPC:Link("是的我要进去",1);
CmdNPC:Link("不,我不进去了",255);
CmdNPC:Finish();
end;
if NPCcon==1 then
if API:RemoveItem_ID(client,710001,10) then
API:Additems(client,1060020);
API:GOTOPKMAP(client);
else
CmdNPC:Say("对不起你没有10个参赛令");
CmdNPC:Link("我看看",255);
CmdNPC:Finish();
end;
end;
elseif API:GetBIPK()==0 and API:GetSTPK()==1 then
if NPCcon==0 then
CmdNPC:Face(15);
CmdNPC:Say("比赛已经开始了,还没结束你不能进入。") -- en "The arena is open. Welcome to challenge other people. The" "admission fee is only 50 silver.""If you PK in the arena, you will not gain or lose any""experience or equipment, and you will get revived at the""place you die.""The Kungfu circle is very dangerous, I suggest you PK in""arena."
CmdNPC:Link("不,我不进去了",255);
CmdNPC:Finish();
end;
end;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -