arenaguard.lua

来自「架设关键部分开始了。点击开始——程序」· LUA 代码 · 共 20 行

LUA
20
字号
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);                   -- en "Enter the arena."
   CmdNPC:Link("不,我不进去了",255);                 -- en "Just passing by."
   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元");                 -- en "Sorry, you do not have 50 silver."
     CmdNPC:Link("我看看",255);                    -- en "I see."
     CmdNPC:Finish();
   end;
end;

⌨️ 快捷键说明

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