Help with a Py script please.

05/08/2020 19:54 ZaloKinG#1
Some great guy can help me with this script? I found it on the internet and modified a bit, its from 2018 so its not that old. I want it to open trade with the set character and put the items in the array in the trade window and accept the trade, just that.

Code:
def Load():
    Items = [27840, 27814, 27813, 27823, 27808, 27806, 27816, 27818, 27817, 27815, 27856, 27851]
    start = 0
    end = 2000000
    SzamVID = 0
    exslot = 0
   
    for vid in range(start, end):
        if chr.GetInstanceType(vid) != 6:
            continue
       
        if chr.GetNameByVID(vid) == "CharacterName":
            SzamVID = vid
            break
 
    net.SendExchangeStartPacket(SzamVID)
 
    for i in range(0,90):
        attachedSlotType = player.INVENTORY
        attachedInvenType = player.SlotTypeToInvenType(attachedSlotType)
        itemVnum = player.GetItemIndex(attachedInvenType, i)
 
        if itemVnum in Items:
            net.SendExchangeItemAddPacket(attachedInvenType, i, exslot)
            exslot += 1
 
    net.SendExchangeAcceptPacket()
   
Load()
05/09/2020 12:09 cypher#2
#moved