Guest User

Untitled

a guest
Jun 30th, 2015
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. def SetShopItemBySecondaryCoin(self, slotIndex):
  2. itemVnum = shop.GetItemID(slotIndex)
  3. if 0 == itemVnum:
  4. return
  5.  
  6. price = shop.GetItemPrice(slotIndex)
  7. self.ClearToolTip()
  8. self.isShopItem = TRUE
  9.  
  10. metinSlot = []
  11. for i in xrange(player.METIN_SOCKET_MAX_NUM):
  12. metinSlot.append(shop.GetItemMetinSocket(slotIndex, i))
  13. attrSlot = []
  14. for i in xrange(player.ATTRIBUTE_SLOT_MAX_NUM):
  15. attrSlot.append(shop.GetItemAttribute(slotIndex, i))
  16.  
  17. self.AddItemData(itemVnum, metinSlot, attrSlot)
  18. self.AppendPriceBySecondaryCoin(price)
Advertisement
Add Comment
Please, Sign In to add comment