#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package Script.GM.GMTExec.ClearBillboardData
|
#
|
# @todo:Çå³ý±¾·þ°ñµ¥Ä³¸öÍæ¼ÒÊý¾Ý
|
# @author hxp
|
# @date 2025-06-11
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: Çå³ý±¾·þ°ñµ¥Ä³¸öÍæ¼ÒÊý¾Ý
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2025-06-11 17:30"""
|
#-------------------------------------------------------------------------------
|
|
def runMyCMD(exec_locals):
|
''' ÔËÐÐÃüÁÊý
|
@param exec_locals: GMT_Execfile Ä£¿éÖÐµÄ DoLogic º¯Êý locals()
|
|
import ÆäËûÄ£¿éÐèҪдÔڴ˺¯ÊýÀ²»È»ÎÞ·¨ÒýÓõ½
|
'''
|
import GameWorld
|
import ShareDefine
|
|
orderId = exec_locals["orderId"]
|
cmdInfo = exec_locals["cmdInfo"]
|
resultDict = exec_locals["resultDict"] # ½¨Òé¶¼½øÐиüнá¹û×Öµä¼Ç¼Ïêϸ´¦ÀíÐÅÏ¢£¬GMT_Execfile Ä£¿é»áͳһдÈëÁ÷Ïò
|
|
## ----------------------- Çå³ýÉèÖÃ -----------------------
|
DelPlayerID = 443560 # ÐèҪɾ³ýµÄÍæ¼ÒID
|
## -------------------------------------------------------
|
|
delInBillboardList = []
|
for billboardIndex in ShareDefine.BillboardTypeList:
|
if billboardIndex in ShareDefine.FamilyBillboardList:
|
continue
|
billboard = GameWorld.GetBillboard().FindBillboard(billboardIndex)
|
if not billboard:
|
continue
|
if not billboard.FindByID(DelPlayerID):
|
continue
|
billboard.DeleteByID(DelPlayerID)
|
billboard.Sort()
|
delInBillboardList.append(billboardIndex)
|
|
# ÒÔÏÂΪÏêϸ´¦ÀíÂß¼
|
GameWorld.Log("This is GameServer GMT_Execfile run %s. orderId=%s" % (cmdInfo, orderId))
|
resultDict.update({"ret":1, "DelPlayerID":DelPlayerID, "delInBillboardList":delInBillboardList})
|
return
|
|
exec_locals = locals()
|
if exec_locals.get("cmdInfo"):
|
runMyCMD(exec_locals)
|
|