code.py
来自「架设关键部分开始了。点击开始——程序」· Python 代码 · 共 24 行
PY
24 行
def Run(this,CmdNPC):
if this._NPCcontrol==0:
CmdNPC.Say("Hello, would you like to change the colour of your armor?");
CmdNPC.Say("It will cost you a Meteor.");
CmdNPC.Link("Yes Please.", 1);
CmdNPC.Link("I'll stay here.", 255);
CmdNPC.Finish();
if this._NPCcontrol==1:
TF=this.SelectItem(this._client.Char,1088001);
if TF==True:
CmdNPC.Say("You will now be able to go colour your armor.");
CmdNPC.Link("Thank You.", 2);
CmdNPC.Finish();
elif TF==False:
CmdNPC.Say("You don't have a Meteor, so i wont change your armor.");
CmdNPC.Link("Oh, ok......", 255);
CmdNPC.Finish();
ITEM_IDS=this.RemoveItem_ID(this._client,1088001);
if this._NPCcontrol==2:
this.SendCharacterInfo(this._client.Char);
this.SpawnCharacter(this._client,25,25,1008);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?