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

📄 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:
        import I10063.code
        I10063.code.Run(this,CmdNPC)
    elif CLNPC ==10050:
        import I10050.code
        I10050.code.Run(this,CmdNPC)
    elif CLNPC==15140:
        import I15140.code
        I15140.code.Run(this,CmdNPC)
    elif CLNPC==10054:
        import I10054.code
        I10054.code.Run(this,CmdNPC)
    elif CLNPC==43:
        import I43.code
        I43.code.Run(this,CmdNPC)
    elif CLNPC==380:
        import I380.code
        I380.code.Run(this,CmdNPC)
    elif CLNPC==10101:
        import I10101.code
        I10101.code.Run(this,CmdNPC)
    elif CLNPC==104797:
        import I104797.code
        I104797.code.Run(this,CmdNPC)
    elif CLNPC==7:
        import I7.code
        I7.code.Run(this,CmdNPC)
    elif CLNPC==150:
        import I150.code
        I150.code.Run(this,CmdNPC)
    elif CLNPC==10632:
        import I10632.code
        I10632.code.Run(this,CmdNPC)
    elif CLNPC==10022:
        import I10022.code
        I10022.code.Run(this,CmdNPC)
    elif CLNPC==8:
        import I8.code
        I8.code.Run(this,CmdNPC)
    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 + -