Jump to content
  • 0

Need Python Wait window.


Kyojin

Question

  • Answers 12
  • Created
  • Last Reply

Top Posters For This Question

12 answers to this question

Recommended Posts

  • 0

Just make a simple quest when you log in 

a window appears and write whatever you want

"Welcome .. bla bla bla "

 

I think this way will prevent player from using it twice !

 

good luck

Link to comment
  • 0

Resolved !

----------------------------

Just make a login Quest to make them so that they can't open the inventory and from the item_proto din client you change the types and its done.

Link to comment
  • 0

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
  • -1

Resolved !

----------------------------

Just make a login Quest to make them so that they can't open the inventory and from the item_proto din client you change the types and its done.

 

That's what I said about the quest..

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

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.