Jump to content

Recommended Posts

  • Gold
13 hours ago, z35 said:

easy, just change the max level of getting stat points (the normal max level is 90, you maybe want to go beyond that).

same applies to the skills, edit the max level of skill points or make a quest to remove all the remaining points.

Good idea :D Thank you. But how can I hide skill button when skills are on P? 

I'll be always helpful! 👊 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Do this:

root/constInfo.py Put this:

Spoiler

DISABLE_SKILL_BUTTON = 1

 

root/uiGameButton.py  Search this:

Spoiler

if self.__IsSkillStat():
			skillPlusButton.Show()
		else:
			skillPlusButton.Hide()

Replace with:

Spoiler

import constInfo
		if constInfo.DISABLE_SKILL_BUTTON == 1:
			skillPlusButton.Hide()
		else:
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()

 

[This tutorial was made by VegaS on other forum]

Link to comment
Share on other sites

  • Gold
14 minutes ago, alberto2010 said:

Do this:

root/constInfo.py Put this:

  Hide contents


DISABLE_SKILL_BUTTON = 1

 

root/uiGameButton.py  Search this:

  Hide contents


if self.__IsSkillStat():
			skillPlusButton.Show()
		else:
			skillPlusButton.Hide()

Replace with:

  Hide contents



import constInfo
		if constInfo.DISABLE_SKILL_BUTTON == 1:
			skillPlusButton.Hide()
		else:
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()

 

 

Thank you. But I want to hide this button when player get lvl  for example 100.

I'll be always helpful! 👊 

Link to comment
Share on other sites

On 03.07.2016 at 6:10 PM, alberto2010 said:

Do this:

root/constInfo.py Put this:

  Reveal hidden contents


DISABLE_SKILL_BUTTON = 1

 

root/uiGameButton.py  Search this:

  Reveal hidden contents


if self.__IsSkillStat():
			skillPlusButton.Show()
		else:
			skillPlusButton.Hide()

Replace with:

  Reveal hidden contents



import constInfo
		if constInfo.DISABLE_SKILL_BUTTON == 1:
			skillPlusButton.Hide()
		else:
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()

 

 

You copied my message from another forum..ohh gg xD

There is much better:

		import constInfo
		if (constInfo.TableSkillButton(1)) == "Enable":
			if player.GetStatus(player.LEVEL) < (constInfo.TableSkillButton(2)) and self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()
		elif (constInfo.TableSkillButton(1)) == "Disable":
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()	

 

def TableSkillButton(o):
	i = {
		1	:	"Enable", # Enable for active function , Disable for dezactivate.
		2	:	100} # The maximum level to which button will be displayed
		
	if i.has_key(o):
		return i[o]

 

 

 

  • Love 1
  • Love 4
Link to comment
Share on other sites

sorry VegaS , forgot to mention cuz i was in a hurry... i'll edit .

I didn't said this is my own tutorial or something , i just wanted to help others.

11 hours ago, VegaS said:

You copied my message from another forum..ohh gg xD

There is much better:


		import constInfo
		if (constInfo.TableSkillButton(1)) == "Enable":
			if player.GetStatus(player.LEVEL) < (constInfo.TableSkillButton(2)) and self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()
		elif (constInfo.TableSkillButton(1)) == "Disable":
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()	

 


def TableSkillButton(o):
	i = {
		1	:	"Enable", # Enable for active function , Disable for dezactivate.
		2	:	100} # The maximum level to which button will be displayed
		
	if i.has_key(o):
		return i[o]

 

 

 

Yea VegaS is true , is your post from other forum . I was in hurry when i wrote. I'm sorry again , now is edited.

  • Love 1
Link to comment
Share on other sites

  • 2 years later...
On 7/3/2016 at 9:33 PM, VegaS said:

You copied my message from another forum..ohh gg xD

There is much better:


		import constInfo
		if (constInfo.TableSkillButton(1)) == "Enable":
			if player.GetStatus(player.LEVEL) < (constInfo.TableSkillButton(2)) and self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()
		elif (constInfo.TableSkillButton(1)) == "Disable":
			if self.__IsSkillStat():
				skillPlusButton.Show()
			else:
				skillPlusButton.Hide()	

 


def TableSkillButton(o):
	i = {
		1	:	"Enable", # Enable for active function , Disable for dezactivate.
		2	:	100} # The maximum level to which button will be displayed
		
	if i.has_key(o):
		return i[o]

Help Plies:

:invalid syntax (uigamebutton.py, line 119)

    def TableSkillButton(o):
        i = {
            1    :    "Enable", # Enable for active function , Disable for dezactivate.
            2    :    100} # The maximum level to which button will be displayed
            
        if i.has_key(o):
            return i[o]

Line 119 is:            2    :    100} # The maximum level to which button will be displayed

Thank you

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

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.