📄 code.py
字号:
def Run(this,CmdNPC):
if this._client.Char.PKPoints>99:
if this._NPCcontrol==0:
CmdNPC.Say("What can I do for you?");
CmdNPC.Link("Let me out, please.", 3);
CmdNPC.Link("Lend me a hoe, ok?", 255);
CmdNPC.Link("Just passing by.", 255);
CmdNPC.Finish();
elif this._NPCcontrol==3:
CmdNPC.Say("You have killed too many people. I shall not let you out");
CmdNPC.Say("until your PK points are lower than 100 or give me 3 gold");
CmdNPC.Say("ores.");
CmdNPC.Link("Here are 3 gold ores.", 4);
CmdNPC.Finish();
elif this._NPCcontrol==4:
CmdNPC.Say("Sorry, you do not have the required gold ores. How dare you");
CmdNPC.Say("cheat me?");
CmdNPC.Link("I dare not", 255);
CmdNPC.Finish();
if this._client.Char.PKPoints<100:
if this._NPCcontrol==0:
CmdNPC.Say("What can I do for you?");
CmdNPC.Link("Let me out, please.", 1);
CmdNPC.Link("Lend me a hoe, ok?", 255);
CmdNPC.Link("Just passing by.", 255);
CmdNPC.Finish();
elif this._NPCcontrol==1:
CmdNPC.Say("You do not look like an evildoer. You may leave now.");
CmdNPC.Link("Thanks", 2);
CmdNPC.Finish();
elif this._NPCcontrol==2:
this.SendCharacterInfo(this._client.Char);
this.SpawnCharacter(this._client,518,356,1002);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -