⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 复件 main.py

📁 架设关键部分开始了。点击开始——程序
💻 PY
字号:
if this._NPCtype==0:
       this._char.LastNPC=this._NPCID;
       this.SendMess("THIS NPC ID:"+str(this._NPCID),6);
       
CLNPC=this._char.LastNPC

if this.BackendDBNPCSAYDB(str(CLNPC),str(this._NPCcontrol))==True:
    SendDate=this.BackendDBNPC2(str(CLNPC),str(this._NPCcontrol));
    SendDate.Finish();
    this.Consoles("Loaded NPC("+str(CLNPC)+str(_NPCcontrol)+ ") data from DB.");
else:

    CmdNPC=this.NewNPC2(CLNPC,this._NPCcontrol)
    
    if CLNPC==10063:
        if this._NPCcontrol == 0:
             CmdNPC.Face(12)
             CmdNPC.Say("this is awesme! Way better hahaha!")
             if this._char.Quests.Contains("1")==True:
                 CmdNPC.Say("Awesome you are doing my Quest!")
             if  this._char.Quests.Contains(1000)==True:
                 CmdNPC.Say("Arhh i see you Know the command Thunder.")
             CmdNPC.Link("Well it did take abit todo!", 1);
             if this._char.Level >119:
                  CmdNPC.Link("Ok that is just awesome!", 255);
                  CmdNPC.Link("Ok that is just awesome!", 255);
                  CmdNPC.Link("Ok that is just awesome!", 255);
                  CmdNPC.Link("Ok that is just awesome!", 255);
                  CmdNPC.Link("Ok that is just awesome!", 255);
                  
             CmdNPC.Finish();
                
        if this._NPCcontrol == 1:
              CmdNPC.Face(15);
              CmdNPC.Say("Rarrr, im a weird NPC!");
              CmdNPC.Link("Bring me back to the start!", 0);
              CmdNPC.Finish();
              
    elif CLNPC ==10050:
        if this._NPCcontrol == 0:
              CmdNPC.Face(12);
              CmdNPC.Say("Where are you heading for? I can teleport you for a price");
              CmdNPC.Say("of 100 silver.");
              CmdNPC.Link("Phoenix Castle", 1);
              CmdNPC.Link("Desert City", 2);
              CmdNPC.Link("Ape Mountain", 3);
              CmdNPC.Link("Bird Island", 4);
              CmdNPC.Link("Mine Cave", 5);
              CmdNPC.Link("Market", 6);
              CmdNPC.Finish();
        if this._NPCcontrol == 1:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,555,957,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 2:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,69,473,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();
                     
        if this._NPCcontrol == 3:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,555,957,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 4:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,232,190,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 5:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,53,399,1002);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();

        if this._NPCcontrol == 6:
              if this._client.Char.Money>99:
                     Teleport_Gold=this._client.Char.Money-100;
                     this._client.Char.Money=int(Teleport_Gold);
                     this.SendCharacterInfo(this._client.Char);
                     this.SpawnCharacter(this._client,211,196,1036);
              else:
                     CmdNPC.Say("Sorry, you do not have 100 silver.");
                     CmdNPC.Link("I see.", 255);
                     CmdNPC.Finish();
    elif CLNPC==15140:
           if this._NPCcontrol==0:
                  CmdNPC.Face(20);
                  if this._char.Quests.Contains("15140")==False:
                         CmdNPC.Say("Hi There would you like to start my Noobie's Quest?");
                         CmdNPC.Link("ok.", 1);
                         CmdNPC.Link("Some other time.", 255);
                  else:
                         CmdNPC.Say("Hi there great warrior!");
                         CmdNPC.Link("Hello.", 255);
                  CmdNPC.Finish();
           elif this._NPCcontrol==1:
                  CmdNPC.Face(20);
                  CmdNPC.Say("I see your Level " + _char.Level + ".");
                  CmdNPC.Say("You are really starting to advance, would you like to do my quest i will reward you very good?");
                  CmdNPC.Link("Yes Please.", 2);
                  CmdNPC.Link("Some other time.", 255);
                  CmdNPC.Finish();
           elif this._NPCcontrol==2:
                  CmdNPC.Face(20);
                  CmdNPC.Say("Great, Can you please go and find me 20 PK Tickets from killing Pheasents.");
                  CmdNPC.Say("Once you have collected them, coming back to me for a great reward.");
                  CmdNPC.Link("ok.", 255);
                  CmdNPC.Finish();

    elif CLNPC==10054:
           if this._NPCcontrol==0:
                  if this._client.Char.Level<70:
                         CmdNPC.Face(15);
                         CmdNPC.Say("This is the way to Deserty City. The monsters there are");
                         CmdNPC.Say("much stronger than you. Are you sure you want to go there?");
                         CmdNPC.Link("No, I shall not go.", 255);
                         CmdNPC.Link("Please teleport me there.", 1);
                         CmdNPC.Finish();
                  elif this._client.Char.Level>69:
                         CmdNPC.Say("This is the way to Deserty City. Although you are");
                         CmdNPC.Say("excellent, it is dangerous to go ahead");
                         CmdNPC.Link("I see.", 1);
                         CmdNPC.Finish();
           elif this._NPCcontrol==1:
                  this.SendCharacterInfo(this._client.Char);
                  this.SpawnCharacter(this._client,217,215,1000);
    elif CLNPC==43:
           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();
                  
                  
    else:
           if this._NPCcontrol == 0:
                  this.SendMess("OK",2);
                  CmdNPC.Face(12);
                  CmdNPC.Say("Im NPC ID:"+str(this._NPCID));
                  CmdNPC.Finish();
           
         
              

           
           
   
            
 
             
    
           
        
        

   
    



⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -