Jump to content

Fix Time Remain on Uitooltip.py


Recommended Posts

  • VIP

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 1
  • Sad 1
Link to post

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 post
  • 11 months later...
  • VIP
On 4/5/2018 at 7:28 PM, WeedHex said:

NOONE PUT LIKE I REMOVE THE THREAD.

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. 

  • Love 2
Link to post
  • VIP
3 hours ago, 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. There are the views in the forum I know how many people do this.

However from now when I gift something I already know that people will do so then and IDGF. Like are also a business card to quickly understand who you are, I don't like to be taken for a thief or a common forum person.

Learn to live in a community then you can also talk to me, I could give away so many things but I don't do it for these reasons.

Link to post
  • VIP
In fact I understand how is useless to do favors with my account...
 
I am always happy to give things away, but many times I change my mind or maybe they prefer the flame of generous threads
Link to post
  • VIP
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! 

 

 

 

Link to post
  • VIP

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 post
  • VIP
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
Link to post
  • Developer

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.

  • Love 4
  • Confused 1

👑 Premium International Lua Developer 👑

 My service topic: https://bit.ly/2UPly54

 

Ignorant people have the obligation to compensate their ignorance by paying whoever helps them.

Syreldar

Link to post
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 post
  • 1 year later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.