Guest User

asdasf

a guest
Jan 13th, 2017
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.92 KB | None | 0 0
  1. #locale/en/locale_game.txt
  2. M2_USER_INFO_PICKUP <Info> AutoPickup status : [%d].
  3.  
  4. #1.) Search for:
  5.     def OnUpdate(self):
  6.         app.UpdateGame()
  7. #2.) Add after:
  8.         if self.IsEnableAutoPickUp():
  9.             self.PickUpItem()
  10.  
  11. #1.) Search for:
  12.         onPressKeyDict[app.DIK_F1]  = lambda : self.__PressQuickSlot(4)
  13. #2.) Add after:
  14.         onPressKeyDict[app.DIK_F5]  = lambda : self.EnablePickUp()
  15.  
  16. #1.) Search for:
  17.     def RefreshStamina(self):
  18.         self.interface.RefreshStamina()
  19.  
  20. #2.) Add after:
  21.     def IsEnableAutoPickUp(self):
  22.         return constInfo.M2_USER["cfg"]["pickup"]
  23.  
  24.     def EnablePickUp(self):
  25.         def SetStatus(val):
  26.             constInfo.M2_USER["cfg"]["pickup"] = val
  27.             chat.AppendChat(chat.CHAT_TYPE_INFO, (localeInfo.M2_USER_INFO_PICKUP % (val)))
  28.  
  29.         if not self.IsEnableAutoPickUp():
  30.             SetStatus(1)
  31.         else:
  32.             SetStatus(0)
  33.  
  34. #root/constInfo.py
  35. #1.) Search for:
  36. CHRNAME_COLOR_INDEX = 0
  37. # 2.) Adauga mai jos:
  38. M2_USER = {"cfg"  : {"pickup" : 0}}
Advertisement
Add Comment
Please, Sign In to add comment