Jump to content

Need Python Wait window.


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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 0

      Metin2 effect script files (MSE and MSA file) how can convert

    2. 10

      Multi Language System

    3. 0

      We are looking for a C++ and Python programmer

    4. 0

      [Quest Scheduler Request] Is there a way to make a quest run independet of player events? Lets say start quest automatically at server startup?

    5. 111

      Ulthar SF V2 (TMP4 Base)

    6. 0

      Quest function when 102.kill definition whereabouts help

    7. 5

      [M2 FILTER] Customized Client Filter

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.