Jump to content
Korean Random

Python


Kotyarko_O

Recommended Posts

Нужна помощь со следующим скриптом:

import BigWorld
from gui import SystemMessages
from Account import Account

link = Account.onBecomePlayer

def _First(self):
        link(self)
        msg = '<font color="#cc9933"><b>Hello</b></font>'
        type = SystemMessages.SM_TYPE.Information
        SystemMessages.pushMessage(msg, type)

Account.onBecomePlayer = _First

Выводит сообщение в системный канал при каждом входе в ангар (после логина, после боя). И почему-то, не отображается во всплывающих сообщениях, а сразу записывается в сам канал.
Что нужно поправить, чтобы выводилось один раз (после логина) и отображался во всплывающих? сам додуматься не смог :(

  • Upvote 1
Link to comment
Short link
Share on other sites


import BigWorld
from gui import SystemMessages
from Account import Account

link = Account.onBecomePlayer

def _First(self):
link(self)
msg = '<font color="#cc9933"><b>Hello</b></font>'
type = SystemMessages.SM_TYPE.Information
SystemMessages.pushMessage(msg, type)
Account.onBecomePlayer = link

Account.onBecomePlayer = _First
  • Upvote 2
Link to comment
Short link
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...