?? code.py
字號:
def Run(this,CmdNPC):
if this._NPCcontrol==0:
CmdNPC.Say("If you are level 20 or above, you may train in the training");
CmdNPC.Say("ground. Would you like me to teleport you there for 1000");
CmdNPC.Say("silver.");
CmdNPC.Link("Yes, please.", 1);
CmdNPC.Link("No, thanks.", 255);
CmdNPC.Finish();
if this._NPCcontrol==1:
CmdNPC.Say("In the training ground, you will not lose any HP or MP. And");
CmdNPC.Say("no items nor durability will be consumed.");
CmdNPC.Link("Please teleport me there.", 2);
CmdNPC.Link("No, I changed my mind", 255);
CmdNPC.Finish();
if 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,217,215,1039);
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 + -