code.py
来自「架设关键部分开始了。点击开始——程序」· Python 代码 · 共 78 行
PY
78 行
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 + =
减小字号Ctrl + -
显示快捷键?