• 大小: 8.51MB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2023-10-09
  • 语言: Python
  • 标签: 众神之战  

资源简介

1-安装MYSQL5 创建数据库,导入数据 2-修改配置文件 3-安装python2.5 启动 loginserver dbserver gameserver 本人亲自架设过.

资源截图

代码片段和文件信息

MAX_ALTAR_NUM = 10
import math
import GameAPI

from script.SysFun import Alter

class CAltarUpCondition:
       def __init__(selfLVmoneybijou):
           self.Money = money
           self.bijou = bijou
           self.LV    = LV
       def GetValues(self):
           return self.Moneyself.bijou

           
class CAltarOblation:
       def __init__(selfaffectCon):
           self.Impact  = affect
           self.Consume = Con
       def GetConsume(selfLV):
           return abs(self.Consume[LV].GetValue());
       def GetValues(selfLV):
           temp = {}
           for k in self.Impact:
                  temp[k]=abs(self.Impact[k][LV-1])
           return temp

       def Release(selfLVplayer):
           for C in self.Impact:
              print “LV=%d“ % LV
              Temp = Alter( C[LV].Type-C[LV].Value ) 
              Temp.Callback(player)
           return True

       def LvUp(selfLVplayer):
           print “LvUp LV=%d“ % LV
           self.Consume[LV].Callback(player)
           for C in self.Impact:
              C[LV].Callback(player)
           return True

       def LoadImpact(selfLVplayer):
   print “LoadImpact LV=%d“ % LV
           for C in self.Impact:
              C[LV].Callback(player)
           return True


class CAltar:
       def __init__(self AltarUpCondition AltarOblationtype):
           self.__Type       = type
           self.__LVCondtion = AltarUpCondition
           self.__Oblation   = AltarOblation
       def Printf(self):
           print “Hello!“
       def LvValues(selflv):
           print “Level %d“ % lv
           print self.__LVCondtion
           return self.__LVCondtion[lv].GetValues()
       def OblationValues(selflv):
           return self.__Oblation.GetValues(lv)
       def ConValues(self):
           return self.__Oblation
       def Levelup(selflvGUID):
           return GameAPI.AltarLevelup(lvGUID)
       def OblationLevelup(selflv):
           effect=self.OblationValues(lv)
           return GameAPI.OblationLevelup(lveffect)
       def GetID(self):
           return self.__Type


################################################################################

UPCondition =   ( 
                   #ID=0
                   (
                     CAltarUpCondition(01005)
                     CAltarUpCondition(11809)
                     CAltarUpCondition(226013)
                     CAltarUpCondition(332016)
                     CAltarUpCondition(442021)
                     CAltarUpCondition(560030)
                     CAltarUpCondition(684042)
                     CAltarUpCondition(7116058)
                     CAltarUpCondition(8160080)
                     CAltarUpCondition(92400120)
                     CAltarUpCondition(104000200)
                     CAltarUpCondition(117000350)
                    )
                  )

Impact0 = 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件     544768  2008-08-07 16:46  dbserver\Pipe.dll

     文件        139  2009-10-19 16:54  dbserver\config.ini

     文件     933888  2008-08-07 16:46  dbserver\DB.dll

     文件    1519616  2006-10-22 04:30  dbserver\libmySQL.dll

     文件     838656  2008-07-09 19:08  dbserver\Pipe.pdb

     文件     863232  2008-07-14 12:57  dbserver\IPCPipe.pdb

     文件       4096  2008-07-22 21:14  dbserver\DBServer.suo

     文件     544768  2008-08-03 21:29  dbserver\IPCPipe.dll

     文件        261  2009-10-20 19:28  dbserver\Log\SYS(2009-10-20).log

     文件       3520  2009-10-20 14:33  dbserver\Log\dbtool(2009-10-20).log

     文件     919040  2009-10-23 13:45  dbserver\DBServer.exe

     文件      91648  2007-11-07 17:19  dbserver\vcomp90d.dll

     文件        477  2007-11-07 14:51  dbserver\Microsoft.VC90.DebugOpenMP.manifest

     文件       3448  2009-10-20 14:33  dbserver\DBError.txt

     文件         70  2009-10-20 15:02  gameserver\Autorun.bat

     文件        415  2009-10-19 16:54  gameserver\config.ini

     文件       2903  2008-01-02 19:15  gameserver\Filter.bat

     文件     933888  2008-08-07 16:46  gameserver\DB.dll

    .......   1519616  2006-10-22 04:30  gameserver\libmySQL.dll

     文件     348160  2007-11-08 20:08  gameserver\MSVCR71.DLL

    .......   2113536  2007-06-26 17:03  gameserver\python25.dll

    ....SH.       111  2008-08-06 13:50  gameserver\vssver2.scc

     文件     544768  2008-08-03 21:29  gameserver\IPCPipe.dll

     文件     544768  2008-08-07 16:46  gameserver\Pipe.dll

     文件       3072  2008-08-03 19:23  gameserver\GameServer.suo

     文件     462848  2008-06-18 03:10  gameserver\Net.dll

    .......       120  2008-06-27 17:43  gameserver\Drop\dial.ini

     文件      22501  2008-06-03 17:45  gameserver\Drop\dial2.ini

    .......     46174  2008-07-31 11:24  gameserver\Drop\dial4400.ini

     文件       5117  2008-06-24 10:05  gameserver\Drop\dial4405.ini

............此处省略1025个文件信息

评论

共有 条评论

相关资源