Almira2 1
Almira2
romegames 1
romegames
D 1
delimuratt
melankolıa18 1
melankolıa18
shrpnl 1
shrpnl
Fethi Polat 1
Fethi Polat
kralhakan2009 1
kralhakan2009
Vahsi Uzman 1
Vahsi Uzman
Best Studio 1
Best Studio
Agora Metin2 1
Agora Metin2
Hikaye Ekle
Reklam vermek için turkmmo@gmail.com

Oyun Seçeneklerine Oto Mesaj Ekleme [Python]

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...

Hako TAS

HAKO
Telefon Numarası Onaylanmış Üye
TM Üye
Üye
Katılım
21 Ara 2020
Konular
63
Mesajlar
237
Çözüm
1
Online süresi
1mo 5d
Reaksiyon Skoru
91
Altın Konu
0
TM Yaşı
5 Yıl 5 Ay 17 Gün
Başarım Puanı
96
MmoLira
3,659
DevLira
75
Ticaret - 0%
0   0   0

ROHAN2 WORLD 1-120 TR TİPİ OFFICIAL YOHARA, BALATHOR VE AMON! 80. GÜNÜNDE! +10.000 ONLİNE! HİLE VE BOT %100 ENGELLİ 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;
a65znt3.JPG
 
thanks for sharing very nice mate

The photo you posted doesn't load.
 
[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;
a65znt3.JPG
Paylaşım için teşekkürler
 
Daha önce paylaşıldığı için kapatıldı.
 
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)

Geri
Üst