?? code.py
字號:
def Run(this,CmdNPC):
if this._NPCcontrol==0:
CmdNPC.Face(15);
CmdNPC.Say("The arena is open. Welcome to challenge other people. The");
CmdNPC.Say("admission fee is only 50 silver.");
CmdNPC.Say("If you PK in the arena, you will not gain or lose any");
CmdNPC.Say("experience or equipment, and you will get revived at the");
CmdNPC.Say("place you die.");
CmdNPC.Say("The Kungfu circle is very dangerous, I suggest you PK in");
CmdNPC.Say("arena.");
CmdNPC.Link("Enter the arena.", 1);
CmdNPC.Link("Just passing by.", 255);
CmdNPC.Finish();
elif this._NPCcontrol==1:
if this._client.Char.Money>49:
Teleport_Gold=this._client.Char.Money-50;
this._client.Char.Money=int(Teleport_Gold);
this.SendCharacterInfo(this._client.Char);
this.SpawnCharacter(this._client,51,68,1005);
elif this._client.Char.Money<50:
CmdNPC.Say("Sorry, you do not have 1000 silver.");
CmdNPC.Link("I see.", 255);
CmdNPC.Finish();
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -