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 154
  • kekw 1
  • Eyes 3
  • Smile Tear 1
  • Confused 1
  • Scream 1
  • Good 30
  • Love 10
  • Love 76
Link to comment
Share on other sites

  • 6 months later...
  • Active Member

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...
  • 3 months later...
  • Management
1 minute ago, Order66 said:

I found the center.tga, you can download the system with that.

This is the hidden content, please

There is no difference with the archive in the first post, they are the same. 🤔

Link to comment
Share on other sites

  • Management
34 minutes ago, Order66 said:

yes, sorry i uploaded the previous verison.

Here is the new link:

This is the hidden content, please

Thanks, first link updated.

  • Love 1
Link to comment
Share on other sites

Announcements



×
×
  • 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.