Guest User

Untitled

a guest
Apr 26th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. def socketItemsInInvToTali():
  2.     global talisUID
  3.     itemsToSock = []
  4.    
  5.     for Item in Player.Inventory.Values:
  6.         if ((Item.UID != talisUID) & (Item.Plus==0) & (Item.ItemType % 10 >= 6) & (((Item.ItemType / 1000 >= 111) & (Item.ItemType / 1000 <= 160)) | ((Item.ItemType / 1000 >= 201) & (Item.ItemType / 1000 <= 203)) | ((Item.ItemType / 1000 >= 410) & (Item.ItemType / 1000 <= 610)))):
  7.             itemsToSock.append(Item.UID)
  8.     for iUID in itemsToSock:
  9.         Player._ToServer.TalismanSocket(talisUID, iUID)
  10.  
  11. def OnDC():
  12.     global Active
  13.     Active = False
  14.    
  15. def OnLogin():
  16.     global Active
  17.     Active = True
  18.  
  19. Active = True
  20. talisUID = 12345678
  21.        
  22. while True:
  23.     global Active
  24.     if Active:
  25.         socketItemsInInvToTali()
  26.     Player._Tools.Sleep(10000)
Add Comment
Please, Sign In to add comment