• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Metin2 Kingdom Deletion & Logo Change

Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,381
2
1,308
113
Hello,


I will show you how to change the flag selection during kingdom selection.

Root>introempire.py

Search for:

Code:
Code:
EMPIRE_DESCRIPTION_TEXT_FILE_NAME = {
net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A,
net.EMPIRE_B : uiScriptLocale.EMPIREDESC_B,
net.EMPIRE_C : uiScriptLocale.EMPIREDESC_C, }

A: Red
B : Yellow
A: Blue
Search for the kingdom you want to deselect or change and remove/change it.




Then search again in introempire:
Code:
Code:
self.empireAreaCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireAreaDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireAreaFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireAreaFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }

There are 6 lines in total. Delete whichever flag you want to remove, I want to delete the blue flag (I am deleting all the text in the six lines containing '', net.EMPIRE_C:0.0 ''. :
Code:
Code:
self.empireAreaCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0 }
self.empireAreaDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0 }
self.empireAreaFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0 }
self.empireAreaFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0 }
self.empireFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0 }
self.empireFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0 }




Do not close the file and search for this: (If it cannot be found, search for self.empireArea[net.EMPIRE_A] and you will find this directory.)
Code:
Code:
self.empireArea[net.EMPIRE_A] = GetObject("EmpireArea_A")
self.empireArea[net.EMPIRE_B] = GetObject("EmpireArea_B")
self.empireArea[net.EMPIRE_C] = GetObject("EmpireArea_C")
self.empireAreaFlag[net.EMPIRE_A] = GetObject("EmpireAreaFlag_A")
self.empireAreaFlag[net.EMPIRE_B] = GetObject("EmpireAreaFlag_B")
self.empireAreaFlag[net.EMPIRE_C] = GetObject("EmpireAreaFlag_C")
self.empireFlag[net.EMPIRE_A] = GetObject("EmpireFlag_A")
self.empireFlag[net.EMPIRE_B] = GetObject("EmpireFlag_B")
self.empireFlag[net.EMPIRE_C] = GetObject("EmpireFlag_C")

I'm going to delete the Blue flag, so I'm clearing all the lines that contain the letter C.
Code:
Code:
self.empireArea[net.EMPIRE_A] = GetObject("EmpireArea_A")
self.empireArea[net.EMPIRE_B] = GetObject("EmpireArea_B")
self.empireAreaFlag[net.EMPIRE_A] = GetObject("EmpireAreaFlag_A")
self.empireAreaFlag[net.EMPIRE_B] = GetObject("EmpireAreaFlag_B")
self.empireFlag[net.EMPIRE_A] = GetObject("EmpireFlag_A")
self.empireFlag[net.EMPIRE_B] = GetObject("EmpireFlag_B")




After completing the process, search again:
Code:
Code:
def ClickLeftButton(self):
self.empireID-=1
if self.empireID<1:
self.empireID=3

self.OnSelectEmpire(self.empireID)

def ClickRightButton(self):
self.empireID+=1
if self.empireID>3:
self.empireID=1

Replace it with this: If it doesn't come up when you search for it, search for '' if self.empireID<1: '' and it will show up.
Code:
Code:
def ClickLeftButton(self):
self.empireID-=1
if self.empireID<1:
self.empireID=1

self.OnSelectEmpire(self.empireID)

def ClickRightButton(self):
self.empireID+=1
if self.empireID>1:
self.empireID=1

For those who say they don't understand, change self.empireID=3 to self.empireID=1 in the ClickLeftButton directory.
Change if self.empireID>3: to if self.empireID>1: in the ClickRightButton directory.




Search for:
Code:
Code:
self.empireID=app.GetRandom(1, 3)
Replace:
Code:
Code:
self.empireID=app.GetRandom(1, 1)





Save and close the file.
Open locale>tr>selectempirewindow.py.

Keep in mind the letter of the kingdom you want to delete and search for the one you will delete.
Code:
"name" : "EmpireFlag_A",
"name" : "EmpireFlag_B",
"name" : "EmpireFlag_C",




There may be people who don't understand, so I will show an example by deleting the blue flag.
The original version of this code is probably the same for you.
Code:
Code:
##EmpireFlag
{
"name" : "EmpireFlag_A",
"type" : "expanded_image",

"x" : 0,
"y" : 0,
"horizontal_align" : "center",
"vertical_align" : "center",

"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
},
{
"name" : "EmpireFlag_B",
"type" : "expanded_image",

"x" : 0,
"y" : 0,
"horizontal_align" : "center",
"vertical_align" : "center",

"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
},
{
"name" : "EmpireFlag_C",
"type" : "expanded_image",

"x" : 0,
"y" : 0,
"horizontal_align" : "center",
"vertical_align" : "center",

"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
},

I will delete the blue flag from these files.


I search for "name" : "EmpireFlag_C" and delete the existing directory with it.

Code:
##EmpireFlag
{
"name" : "EmpireFlag_A",
"type" : "expanded_image",

"x" : 0,
"y" : 0,
"horizontal_a

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.
 
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
Discord Banner

🔥 Join us on Discord! - Active chat & direct support

We invite you to join the largest Metin2 community on Discord!

Join Now!
Member Count: 
Discord Robot
HUB Bot
Announcement
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