code.py

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

PY
26
字号
def Run(this,CmdNPC):
    if this._NPCcontrol==0:
        CmdNPC.Say("If you are level 20 or above, you may train in the training");
        CmdNPC.Say("ground. Would you like me to teleport you there for 1000");
        CmdNPC.Say("silver.");
        CmdNPC.Link("Yes, please.", 1);
        CmdNPC.Link("No, thanks.", 255);
        CmdNPC.Finish();
    if this._NPCcontrol==1:
        CmdNPC.Say("In the training ground, you will not lose any HP or MP. And");
        CmdNPC.Say("no items nor durability will be consumed.");
        CmdNPC.Link("Please teleport me there.", 2);
        CmdNPC.Link("No, I changed my mind", 255);
        CmdNPC.Finish();
    if this._NPCcontrol==2:
        if this._client.Char.Money>999:
            Teleport_Gold=this._client.Char.Money-1000;
            this._client.Char.Money=int(Teleport_Gold);
            this.SendCharacterInfo(this._client.Char);
            this.SpawnCharacter(this._client,217,215,1039);
        elif this._client.Char.Money<1000:
            CmdNPC.Say("Sorry, you do not have 1000 silver.");
            CmdNPC.Link("I see.", 255);
            CmdNPC.Finish();
        

⌨️ 快捷键说明

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