Jump to content

Maintenance System (For P2P)


Recommended Posts

cross-channel maintenance can be turned on or off.

When you start the maintenance, the maintenance screen is instantly displayed to the players who are in the game.

The maintenance screen appears for players who log into the game.

When you cancel the maintenance, the maintenance screen is closed for all players.

M2 Download Center

This is the hidden content, please

https://metin2.download/picture/h0v1boNcx2yUamagChuseUk6NZ46nozo/.png

I coded the system open to development. You can add the reason for maintenance if you want.

Edited by Kio
Core X - External 2 Internal
  • Metin2 Dev 126
  • kekw 1
  • Eyes 3
  • Smile Tear 1
  • Confused 1
  • Scream 1
  • Good 27
  • Love 8
  • Love 69
Link to comment
Share on other sites

  • 6 months later...

Nice. It works very well.

A little problem, after every teleport the window open again and again and again

Fix:

game.py

search:

class GameWindow(ui.ScriptWindow):
 

under 

self.guildWarQuestionDialog = None

add

        self.maintenance = None
        self.maintenance = uimaintenance.MaintenanceWindow()
 

search in     def Close(self): for 

        self.affectShower = None
and add under:

        self.maintenance = None

 

replace whole function: def Maintenancegui(self,time,duration):

with

    def Maintenancegui(self,time,duration):
        if self.maintenance:
            self.maintenance.Open(time,duration)

  • Love 1
Link to comment
Share on other sites

  • 5 months later...
On 6/10/2023 at 4:15 PM, Kidro said:

Nice. It works very well.

A little problem, after every teleport the window open again and again and again

Fix:

game.py

search:

class GameWindow(ui.ScriptWindow):
 

under 

self.guildWarQuestionDialog = None

add

        self.maintenance = None
        self.maintenance = uimaintenance.MaintenanceWindow()
 

search in     def Close(self): for 

        self.affectShower = None
and add under:

        self.maintenance = None

 

replace whole function: def Maintenancegui(self,time,duration):

with

    def Maintenancegui(self,time,duration):
        if self.maintenance:
            self.maintenance.Open(time,duration)

I must have missed it, thank you dude 🙂

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.