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

📄 code.py

📁 架设关键部分开始了。点击开始——程序
💻 PY
字号:
def Run(this,CmdNPC):
        if this._NPCcontrol == 0:
              CmdNPC.Face(12);
              CmdNPC.Say("Where are you heading for? I can teleport you for a price");
              CmdNPC.Say("of 100 silver.");
              CmdNPC.Link("Phoenix Castle", 1);
              CmdNPC.Link("Desert City", 2);
              CmdNPC.Link("Ape Mountain", 3);
              CmdNPC.Link("Bird Island", 4);
              CmdNPC.Link("Mine Cave", 5);
              CmdNPC.Link("Market", 6);
              CmdNPC.Finish();
        if this._NPCcontrol == 1:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,958,555,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 2:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,69,473,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();
                     
        if this._NPCcontrol == 3:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,555,957,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 4:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,232,190,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 5:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,53,399,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 6:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,211,196,1036);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

⌨️ 快捷键说明

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