404420 发表于 2025-9-8 20:27
恢复了
能再分享一下吗 哥
404420 发表于 2025-8-22 17:12
..................................
能再分享一下吗 哥
请问如何删除游戏玩家和角色?
合服成功了,但是登录列表那里看不到合服后的区是怎么回事?
合服成功了,但是登录列表那里看不到合服后的区是怎么回事?
我也是这个问题,有厉害大牛知道怎么解决吗?
qq100711664 发表于 2025-7-14 16:46
楼主政务怎么修改啊能说下吗天天等麻烦要死
政务:finish_gtask
征税:estate_1
查找用户里面输入对应的ID然后进去搜索上面的内容,修改提交就行了
qym518680 发表于 2025-7-15 10:29
宝塔WWW文件里每天多出几个G的文件要怎么处理??玩几天硬盘就满了,就上不去了
在软件列表找到MySQL,进去后吧二进制日志关掉
合服成功了,但是打开后特别卡是为啥啊,咋解决
dalianmaozxc 发表于 2025-7-19 23:29
正好我也在研究合服,搞崩了几个朋友玩了20来天的服,目前重新架设中,哈哈哈哈。发神将觉醒我用了两个办法 ...
格式应该是这样['awaken', ['hero704'], '马云禄', '1'],
有人会插旗修复吗
本帖最后由 tomatoshixihong 于 2025-11-20 16:19 编辑
xxmaker 发表于 2025-11-18 14:09
有人会插旗修复吗
def get_buff_effect(self, buff_type, cid=None):
"""
获取buff对应的效果
"""
now = datetime.datetime.now()
effect = 0
gc = game_config.country
if 'num' in gc:
if not self.buffs1.has_key(buff_type):
is_expire = True
elif cid not in self.buffs1:
is_expire = True
elif now > self.buffs1+datetime.timedelta(minutes=gc['time']):
is_expire = True
else:
is_expire = False
else:
if not self.buffs.has_key(buff_type):
is_expire = True
elif cid is not None and cid != self.buffs:
is_expire = True
elif now > self.buffs+datetime.timedelta(minutes=gc['time']):
is_expire = True
else:
is_expire = False
if not is_expire:
if 'num' in gc:
is_free = self.buffs1
else:
is_free = self.buffs
if is_free:
effect_value = game_config.country['effect_gratis']
effect += 0 if isinstance(effect_value, str) else effect_value
else:
effect_value = game_config.country['effect_consume']
effect += 1 if isinstance(effect_value, str) else effect_value
return effect
server.py 文件里面搜索def get_buff_effect(self, buff_type, cid=None)。将这个替换掉就行了