HERAKLES Otomatik Avlı kalıcı sunucu. 19 Haziran'da açılıyor. Atius & Wizard güvencesiyle hemen kayıt ol, ön kayıt ödülleri aktif. HEMEN TIKLA!
[CODE lang="python" title="root/constinfo.py açılır ve şu kod eklenir;"]WHISPER_OTO_MESAJ = 0
WHISPER_OTO_MESAJ_TEXT = ""[/CODE]
[CODE lang="python" title="root/uigameoption.py açılır ve aratılır;"]def __Initialize(self):
En alta şu kod eklenir:
self.showotoTextButtonList = []
Tekrar aratılır;
self.showDamageButtonList.append(GetObject("show_d amage_off_button"))
Altına şu kodlar eklenir:
self.showotoTextButtonList.append(GetObject("ototext_on_button2"))
self.showotoTextButtonList.append(GetObject("ototext_off_button2"))
Tekrar aratılır;
self.showDamageButtonList[1].SAFE_SetEvent(self.__OnClickShowDamageOffButton)
Altına şu kodlar eklenir:
self.showotoTextButtonList[0].SAFE_SetEvent(self.__OnClickOtoTextOnButton2)
self.showotoTextButtonList[1].SAFE_SetEvent(self.__OnClickOtoTextOffButton2)
Tekrar aratılır;
def OnUpdate(self):
Altına şu kodlar eklenir:
if constInfo.bildirimler == 0: if tek == 0:
self.showotoTextButtonList[0].Down()
self.showotoTextButtonList[1].SetUp()
tek = 1
#self.showotoTextButto#self.showotoTextButtonListir work/ui/public/middle_button_03.sub")
else:
if tek == 0:
self.showotoTextButtonList[0].SetUp()
self.showotoTextButtonList[1].Down()
tek = 1
#self.showotoTextButto#self.showotoTextButtonListir work/ui/public/middle_button_03.sub")
#self.showotoTextButto#self.showotoTextButtonList #self.showotoTextButto#self.showotoTextButtonListılır;
def __OnClickBlockPartyRequest(self):
Altına şu kodlar eklenir:
def __OnClickOtoTextOnButton2(self): global tek
tek = 0
self.showotoTextButtonList[0].Down()
self.showotoTextButtonList[1].SetUp()
def __OnClickOtoTextOffButton2(self):
global tek
tek = 0
self.showotoTextButtonList[0].SetUp()
self.showotoTextButtonList[1].Down()
ve root bölümüde bitti
sıra uiscript'e geldi
[/CODE]
[CODE lang="python" title="uiscript/gameoption.py açılır ve şu kodlar en alta eklenir;"] { "name" : "ototext_on_button2",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 240 + EK_Y + 25,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_ON,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "ototext_off_button2",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 240 + EK_Y + 25,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
[/CODE]
Sistemin çalıştığına dair kanıt;
WHISPER_OTO_MESAJ_TEXT = ""[/CODE]
[CODE lang="python" title="root/uigameoption.py açılır ve aratılır;"]def __Initialize(self):
En alta şu kod eklenir:
self.showotoTextButtonList = []
Tekrar aratılır;
self.showDamageButtonList.append(GetObject("show_d amage_off_button"))
Altına şu kodlar eklenir:
self.showotoTextButtonList.append(GetObject("ototext_on_button2"))
self.showotoTextButtonList.append(GetObject("ototext_off_button2"))
Tekrar aratılır;
self.showDamageButtonList[1].SAFE_SetEvent(self.__OnClickShowDamageOffButton)
Altına şu kodlar eklenir:
self.showotoTextButtonList[0].SAFE_SetEvent(self.__OnClickOtoTextOnButton2)
self.showotoTextButtonList[1].SAFE_SetEvent(self.__OnClickOtoTextOffButton2)
Tekrar aratılır;
def OnUpdate(self):
Altına şu kodlar eklenir:
if constInfo.bildirimler == 0: if tek == 0:
self.showotoTextButtonList[0].Down()
self.showotoTextButtonList[1].SetUp()
tek = 1
#self.showotoTextButto#self.showotoTextButtonListir work/ui/public/middle_button_03.sub")
else:
if tek == 0:
self.showotoTextButtonList[0].SetUp()
self.showotoTextButtonList[1].Down()
tek = 1
#self.showotoTextButto#self.showotoTextButtonListir work/ui/public/middle_button_03.sub")
#self.showotoTextButto#self.showotoTextButtonList #self.showotoTextButto#self.showotoTextButtonListılır;
def __OnClickBlockPartyRequest(self):
Altına şu kodlar eklenir:
def __OnClickOtoTextOnButton2(self): global tek
tek = 0
self.showotoTextButtonList[0].Down()
self.showotoTextButtonList[1].SetUp()
def __OnClickOtoTextOffButton2(self):
global tek
tek = 0
self.showotoTextButtonList[0].SetUp()
self.showotoTextButtonList[1].Down()
ve root bölümüde bitti
sıra uiscript'e geldi
[/CODE]
[CODE lang="python" title="uiscript/gameoption.py açılır ve şu kodlar en alta eklenir;"] { "name" : "ototext_on_button2",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 240 + EK_Y + 25,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_ON,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "ototext_off_button2",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 240 + EK_Y + 25,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
[/CODE]
Sistemin çalıştığına dair kanıt;
Paylaşım için teşekkürler[CODE lang="python" title="root/constinfo.py açılır ve şu kod eklenir;"]WHISPER_OTO_MESAJ = 0
WHISPER_OTO_MESAJ_TEXT = ""[/CODE]
[CODE lang="python" title="root/uigameoption.py açılır ve aratılır;"]def __Initialize(self):
En alta şu kod eklenir:
self.showotoTextButtonList = []
Tekrar aratılır;
self.showDamageButtonList.append(GetObject("show_d amage_off_button"))
Altına şu kodlar eklenir:
self.showotoTextButtonList.append(GetObject("ototext_on_button2"))
self.showotoTextButtonList.append(GetObject("ototext_off_button2"))
Tekrar aratılır;
self.showDamageButtonList[1].SAFE_SetEvent(self.__OnClickShowDamageOffButton)
Altına şu kodlar eklenir:
self.showotoTextButtonList[0].SAFE_SetEvent(self.__OnClickOtoTextOnButton2)
self.showotoTextButtonList[1].SAFE_SetEvent(self.__OnClickOtoTextOffButton2)
Tekrar aratılır;
def OnUpdate(self):
Altına şu kodlar eklenir:
if constInfo.bildirimler == 0: if tek == 0:
self.showotoTextButtonList[0].Down()
self.showotoTextButtonList[1].SetUp()
tek = 1
#self.showotoTextButto#self.showotoTextButtonListir work/ui/public/middle_button_03.sub")
else:
if tek == 0:
self.showotoTextButtonList[0].SetUp()
self.showotoTextButtonList[1].Down()
tek = 1
#self.showotoTextButto#self.showotoTextButtonListir work/ui/public/middle_button_03.sub")
#self.showotoTextButto#self.showotoTextButtonList #self.showotoTextButto#self.showotoTextButtonListılır;
def __OnClickBlockPartyRequest(self):
Altına şu kodlar eklenir:
def __OnClickOtoTextOnButton2(self): global tek
tek = 0
self.showotoTextButtonList[0].Down()
self.showotoTextButtonList[1].SetUp()
def __OnClickOtoTextOffButton2(self):
global tek
tek = 0
self.showotoTextButtonList[0].SetUp()
self.showotoTextButtonList[1].Down()
ve root bölümüde bitti
sıra uiscript'e geldi
[/CODE]
[CODE lang="python" title="uiscript/gameoption.py açılır ve şu kodlar en alta eklenir;"] { "name" : "ototext_on_button2",
"type" : "radio_button",
"x" : LINE_DATA_X,
"y" : 240 + EK_Y + 25,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_ON,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
{
"name" : "ototext_off_button2",
"type" : "radio_button",
"x" : LINE_DATA_X+MIDDLE_BUTTON_WIDTH,
"y" : 240 + EK_Y + 25,
"text" : uiScriptLocale.OPTION_SALESTEXT_VIEW_OFF,
"default_image" : ROOT_PATH + "middle_button_01.sub",
"over_image" : ROOT_PATH + "middle_button_02.sub",
"down_image" : ROOT_PATH + "middle_button_03.sub",
},
[/CODE]
Sistemin çalıştığına dair kanıt;
![]()
Daha önce paylaşıldığı için kapatıldı.
https://forum.turkmmo.com/konu/3429853-oyun-seceneklerine-oto-mesaj-ekleme-python/
https://forum.turkmmo.com/konu/3429853-oyun-seceneklerine-oto-mesaj-ekleme-python/
- Durum
- Üzgünüz bu konu cevaplar için kapatılmıştır...
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 13
- Görüntüleme
- 1K
- Cevaplar
- 24
- Görüntüleme
- 2K
- Cevaplar
- 23
- Görüntüleme
- 5K
- Cevaplar
- 35
- Görüntüleme
- 6K
