daily pastebin goal
53%
SHARE
TWEET

Untitled

a guest Jul 11th, 2018 143 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def Load():
  2.     SWITCH_RARE_VNUM = 30270
  3.     start = 0
  4.     end = 2000000
  5.     SzamVID = 0
  6.     exslot = 0
  7.    
  8.     for vid in range(start, end):
  9.         if chr.GetInstanceType(vid) != 6:
  10.             continue
  11.        
  12.         if chr.GetNameByVID(vid) == "DajSeNaLuz":
  13.             SzamVID = vid
  14.             break
  15.  
  16.     net.SendExchangeStartPacket(SzamVID)
  17.  
  18.     for i in range(0,90*2):
  19.         attachedSlotType = player.INVENTORY
  20.         attachedInvenType = player.SlotTypeToInvenType(attachedSlotType)
  21.         itemVnum = player.GetItemIndex(attachedInvenType, i)
  22.  
  23.         if itemVnum == SWITCH_RARE_VNUM:
  24.             chat.AppendChat(chat.CHAT_TYPE_INFO, "Odłamek znaleziony")
  25.             net.SendExchangeItemAddPacket(attachedInvenType, i, exslot)
  26.             exslot += 1
  27.  
  28.     net.SendExchangeAcceptPacket()
  29.    
  30. Load()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top