Jump to content

Fix Time Remain on Uitooltip.py


Recommended Posts

  • Premium

Today i saw a weird thing on my uitooltip.

If item with remain time stay into a shop, time shows: "Remain time 0 sec."

 

Here's the fix:

replace theese functions:

    def AppendUniqueItemLastTime(self, restMin):

    def AppendMallItemLastTime(self, endTime):

 

Like this:

    def AppendUniqueItemLastTime(self, restMin):
        if restMin > 0:
            restSecond = restMin*60
            self.AppendSpace(5)
            self.AppendTextLine(localeInfo.LEFT_TIME + " : " + localeInfo.SecondToHM(restSecond), self.NORMAL_COLOR)

    def AppendMallItemLastTime(self, endTime):
        if endTime > 0:
            leftSec = max(0, endTime - app.GetGlobalTimeStamp())
            self.AppendSpace(5)
            self.AppendTextLine(localeInfo.LEFT_TIME + " : " + localeInfo.SecondToDHM(leftSec), self.NORMAL_COLOR)

 

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

I hate when some people delete their bug fix topic...

Quote

Today i saw a weird thing on my uitooltip.

If item with remain time stay into a shop, time shows: "Remain time 0 sec."

 

Here's the fix:

replace theese functions:

    def AppendUniqueItemLastTime(self, restMin):

    def AppendMallItemLastTime(self, endTime):

 

Like this:

    def AppendUniqueItemLastTime(self, restMin):
        if restMin > 0:
            restSecond = restMin*60
            self.AppendSpace(5)
            self.AppendTextLine(localeInfo.LEFT_TIME + " : " + localeInfo.SecondToHM(restSecond), self.NORMAL_COLOR)

    def AppendMallItemLastTime(self, endTime):
        if endTime > 0:
            leftSec = max(0, endTime - app.GetGlobalTimeStamp())
            self.AppendSpace(5)
            self.AppendTextLine(localeInfo.LEFT_TIME + " : " + localeInfo.SecondToDHM(leftSec), self.NORMAL_COLOR)

 

  • Love 19
Link to comment
Share on other sites

  • 11 months later...
  • Premium
On 4/5/2019 at 12:31 PM, EnKor said:

Lols u serius! 

I will take some time, but i will remove all likes i give to u!

If u are in here for "like hunter" go to facebook. 

I'm not here to give things to the people who take them and go to hell without even giving at least thanks

Edited by WeedHex
Link to comment
Share on other sites

  • Premium
18 minutes ago, WeedHex said:
In fact I understand how is useless to do favor with my account...

 

In all community there's maybe 20% of nice and respect persons! 
Some will say thank you, some will not. Some will be glad, and some will take that "info" and post it in other foruns and say; "Hey, look for what i have make"!

But most of the guys, are simple noob at starter and keep noob after know something.  Because, when they dont know anything about metin come to ask for help, but when they know one or two things, they delete all "owne topics" because "no one say thankyou" xD

 

But u have right, and i agreed with u: "Learn to live in a community"  we all have to learn, like u need! 

 

 

 

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • Premium

Do the same thing every time, but don't get confused with other people, I'm not asking for help, I'm giving free things to be more credible on this forum to work clean.

Btw in part you're right. I will give free nonsense as always done for these reasons.

You're doing the moral for a >0 check ahahah

@EnKor

 

 

Link to comment
Share on other sites

  • Premium
2 minutes ago, WeedHex said:

Do the same thing every time, but don't get confused with other people, I'm not asking for help, I'm giving free things to be more credible on this forum to work clean.

Btw in part you're right. I will give free nonsense as always done for these reasons.

@EnKor

 

 

 

If u real belive in this "giving free things to be more credible on this forum to work clean" why u delete after "giving" !? Will make forum more clean?! 

Anyway, i'm out!

  • Love 2
if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
Share on other sites

  • Premium

The problem could easily be solved by adding the same feature the other forums have: Making x content only visible if a "Like" has been given. This way everyone's happy and even "Like hunters" will post and contribute freely.

  • Confused 1
  • Love 4

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

Link to comment
Share on other sites

  • Bronze
8 hours ago, martysama0134 said:

The problem of using this function is that it's not refreshed at re-warp, so it will show an old date.

HEADER_GC_TIME is being sent on Entergame packet

Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...

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.