Jump to content

Maintenance System (For P2P)


Recommended Posts

  • Active Member

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 138
  • kekw 1
  • Eyes 3
  • Smile Tear 1
  • Confused 1
  • Scream 1
  • Good 28
  • Love 10
  • Love 71
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...
  • Active Member
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...

Announcements



  • Similar Content

  • Similar Content

  • Similar Content

  • Tags

  • Activity

    1. 0

      Metin2 effect script files (MSE and MSA file) how can convert

    2. 10

      Multi Language System

    3. 0

      We are looking for a C++ and Python programmer

    4. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    5. 111

      Ulthar SF V2 (TMP4 Base)

    6. 0

      Quest function when 102.kill definition whereabouts help

    7. 5

      [M2 FILTER] Customized Client Filter

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.