1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/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)