Sol Reklam
Sağ Reklam
What's new

Metin2 Kingdom Deletion & Logo Change

KONU YAZAR

raultyoo

New member
Onaylı Üye
Apr
23
21
1
Hello,

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


Root>introempire.py

Search for:

Code:

Kod:


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:

Kod:


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:

Kod:


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:

Kod:


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:

Kod:


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:

Kod:


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:

Kod:


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:

Kod:


self.empireID=app.GetRandom(1, 3)

Replace:

Code:

Kod:


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:

Kod:


##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

 
Back
Top