?? code.py
字號:
def Run(this,CmdNPC):
if this._NPCcontrol==0:
CmdNPC.Face(15);
CmdNPC.Say("What can I do for you");
CmdNPC.Link("Visit the jail.", 1);
CmdNPC.Link("Just passing by.", 255);
CmdNPC.Finish();
elif this._NPCcontrol==1:
CmdNPC.Face(15);
CmdNPC.Say("Give me 1000 silver, I will teleport you there. If your PK");
CmdNPC.Say("point are 100+, you will put into the jail.");
CmdNPC.Link("Here are 1000 silver.", 2);
CmdNPC.Link("If so, I will stay here.", 255);
CmdNPC.Finish();
elif 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,29,72,6000);
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 + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -