• Announcement:
    In order to download VIP files, you need to UPGRADE your account.

In-Game Quick Exit System

Member
Feb
Threads
5
29
57
13
HubMoney
154
Hello today, I will share the in-game quick exit system with you as proof, I will add it a little later.

Root/uisystem.py open

Code:
Search:
    def __ClickExitButton(self):
        self.Close()
        net.ExitApplication()

Replace:
    def __ClickExitButton(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Oyunu kapatmak istiyor musun?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.Yes))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.Hayir))
        questionDialog.Open()
        self.questionDialog = questionDialog
     
    def Yes(self):
        import player
        if player.IsPVPInstance():
            import chat
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Duello'da iken oyunu kapatamassiniz.")
        else:
            import app
            app.Exit()
     
    def Hayir(self):
        self.Close()
        self.questionDialog.Close()
 
Last edited by a moderator:
Metin2Hub Bot
M2Hub Bot
Feb
Threads
65
1,624
1
660
113
HubMoney
1,025
Merhaba Bugun Sizlerle Oyun İçi Hızlı Çıkış Sistemini Paylaşacagım Kanıt Olarak Birazdan Ekleyecegim

Root/uisystem.py aç

Arat :
def __ClickExitButton(self):
self.Close()
net.ExitApplication()

değiştir :
def __ClickExitButton(self):
import uiCommon
questionDialog = uiCommon.QuestionDialog()
questionDialog.SetText("Oyunu kapatmak istiyor musun?")
questionDialog.SetAcceptEvent(ui.__mem_func__(self.Yes))
questionDialog.SetCancelEvent(ui.__mem_func__(self.Hayir))
questionDialog.Open()
self.questionDialog = questionDialog

def Yes(self):
import player
if player.IsPVPInstance():
import chat
chat.AppendChat(chat.CHAT_TYPE_INFO, "Duello'da iken oyunu kapatamassiniz.")
else:
import app
app.Exit()

def Hayir(self):
self.Close()
self.questionDialog.Close()​

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Positive Perspective.
Admin
Feb
Threads
117
1,221
1,989
513
HubMoney
6,137
Merhaba Bugun Sizlerle Oyun İçi Hızlı Çıkış Sistemini Paylaşacagım Kanıt Olarak Birazdan Ekleyecegim

Root/uisystem.py aç

Code:
Arat :
    def __ClickExitButton(self):
        self.Close()
        net.ExitApplication()

değiştir :
    def __ClickExitButton(self):
        import uiCommon
        questionDialog = uiCommon.QuestionDialog()
        questionDialog.SetText("Oyunu kapatmak istiyor musun?")
        questionDialog.SetAcceptEvent(ui.__mem_func__(self.Yes))
        questionDialog.SetCancelEvent(ui.__mem_func__(self.Hayir))
        questionDialog.Open()
        self.questionDialog = questionDialog
     
    def Yes(self):
        import player
        if player.IsPVPInstance():
            import chat
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Duello'da iken oyunu kapatamassiniz.")
        else:
            import app
            app.Exit()
     
    def Hayir(self):
        self.Close()
        self.questionDialog.Close()
Paylaşım için teşekkürler 😊
 
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock