Jump to content

Recommended Posts

  • Replies 12
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 months later...

in game.py add:

 

import time

 

after player.SetGameWindow(self)  add

 

 
        self.utilizareTaste = time.clock() + 4

 

after replace this definition __PressNumKey with this

 

 


  def __PressNumKey(self,num):
        if time.clock() >= self.utilizareTaste:
            if app.IsPressed(app.DIK_LCONTROL) or app.IsPressed(app.DIK_RCONTROL):
                
                if num >= 1 and num <= 9:
                    if(chrmgr.IsPossibleEmoticon(-1)):                
                        chrmgr.SetEmoticon(-1,int(num)-1)
                        net.SendEmoticon(int(num)-1)
            else:
                if num >= 1 and num <= 4:
                    self.pressNumber(num-1)
        else:
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Wait four seconds.")

 

after replace this definition __PressQuickSlot with this

 

 

 

    def __PressQuickSlot(self, localSlotIndex):
        if time.clock() >= self.utilizareTaste:
            player.RequestUseLocalQuickSlot(localSlotIndex)
        else:
            chat.AppendChat(chat.CHAT_TYPE_INFO, "Wait four seconds.")

 

    

 

Sorry for my bad english...

Link to comment
https://metin2.dev/topic/2326-need-python-wait-window/#findComment-23401
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.