# Sweetwater Merchant // 9390219 # Sweetwater Array START itemsSW = [ [ # Sweetwater Item IDs 1003976, 1012438, 1022211, 1032224, 1052669, 1072870, 1082556, 1102623, 1113078, 1122269, 1132247, 1152160, 1212089, 1222084, 1232084, 1242090, 1252033, 1262029, 1302297, 1312173, 1322223, 1332247, 1342090, 1362109, 1372195, 1382231, 1402220, 1412152, 1422158, 1432187, 1442242, 1452226, 1462213, 1472235, 1482189, 1492199, 1522113, 1532118, 1542072, 1552072, 1582025 ] ] costSW = [ [ # Sweetwater Materials [1003984, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1012439, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1022212, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1032225, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1052673, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1072874, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1082559, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1122272, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1122272, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1132248, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1152161, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1212090, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1222085, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1232085, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1242091, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1252032, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1262038, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1302299, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1312174, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1322224, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1332249, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1342091, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1362110, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1372196, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1382232, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1402222, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1412153, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1422159, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1432189, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1442243, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1452227, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1462214, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1472236, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1482190, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1492200, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1522114, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1532119, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1542073, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1552073, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031], [1582024, 4310100, 4310093, 4310097, 4021029, 4021030, 4310092, 4310091, 4031846, 4310156, 4021031] ] ] costQSW = [ [ # Sweetwater Material Quantity [1, 1000, 100, 45, 5, 15, 50, 100, 22, 45, 751], [1, 1000, 100, 45, 5, 15, 50, 100, 22, 45, 751], [1, 1000, 100, 45, 5, 15, 50, 100, 22, 45, 751], [1, 1000, 100, 45, 5, 15, 50, 100, 22, 45, 751], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 60, 5, 15, 50, 100, 30, 60, 1000], [1, 1000, 100, 60, 5, 15, 50, 100, 30, 60, 1000], [1, 1000, 100, 60, 5, 15, 50, 100, 30, 60, 1000], [1000, 100, 60, 5, 15, 50, 100, 30, 60, 1000], [1, 1000, 100, 45, 5, 15, 50, 100, 22, 45, 751], [1, 1000, 100, 60, 5, 15, 50, 100, 30, 60, 1000], [1, 1000, 100, 30, 2, 7, 50, 100, 15, 30, 500], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], [1, 1000, 100, 90, 5, 15, 50, 100, 45, 90, 1000], ] ] costmesoSW = [ [ # Sweetwater Meso Cost 1503759398,1503759398,1503759398,1503759398,3000000000,2000000000,2000000000,2000000000,2000000000,1503759398,2000000000,500000000,3000000000,3000000000, 3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000, 3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000,3000000000 ] ] # Sweetwater Array END if sm.sendNext: selection1 = sm.sendNext("Hello. I am Pietreno, Sweetwater extraordinaire. I can make you the finest wares but... for a cost. \r\n#b" "#L0#Purchase Sweetwater#l \r\n" "#L1#Transpose#l \r\n") listStr = "Which #bSweetwater#k item would you like me to create? #b" i = 0 while i < len(itemsSW[selection1]): listStr += "\r\n#L" + str(i) + "##v" + str(itemsSW[selection1][i]) + "# #z" + str(itemsSW[selection1][i]) + "#" i += 1 selection2 = sm.sendNext(listStr) materialStr = "So you would like to purchase a #v" + str(itemsSW[selection1][selection2]) + "##b#z" + str(itemsSW[selection1][selection2]) + "# #k? \r\nI will require some very powerful items to create this for you.\r\n" i = 0 while i < len(costSW[selection1][selection2]): materialStr += "\r\n#b#v" + str(costSW[selection1][selection2][i]) + "# #r "+ str(costQSW[selection1][selection2][i]) +"x#b #z" + str(costSW[selection1][selection2][i]) + "#" i += 1 if costmesoSW[selection1][selection2] > 0: materialStr += "\r\n#i4031138# #r" + str(costmesoSW[selection1][selection2]) + " #bMesos" if selection1 == 4 or selection1 == 5: materialStr += "\r\n\r\nHow many do you want me to make?" else: response = sm.sendAskYesNo(materialStr) if response: if sm.getMesos() < costmesoSW[selection1][selection2]: sm.sendSayOkay("I'm afraid you do not have the required #bMesos #kfor my services.") sm.dispose() i = 0 while i < len(costSW[selection1][selection2]): complete = sm.getTotalItemQty(costSW[selection1][selection2][i]) <= (costQSW[selection1][selection2][i]) i += 1 if complete == False: break if complete == False: sm.sendSayOkay("Surely you, of all people, would understand the value of having quality items? I can't do that without the items I require.") else: if sm.canHold(itemsSW[selection1][selection2]) == False: sm.sendSayOkay("Please make sure you have room in your inventory, and talk to me again.") sm.dispose() else: i = 0 while i < len(costSW[selection1][selection2]): sm.consumeItem(costSW[selection1][selection2][i], (costQSW[selection1][selection2][i])) i += 1 if costmesoSW[selection1][selection2] > 0: sm.giveMesos(-(costmesoSW[selection1][selection2])) sm.giveItem(itemsSW[selection1][selection2]) sm.sendSayOkay("A perfect item, as usual. Come and see me if you need anything else.") else: sm.sendSayOkay("Let me know when you are ready to create something.") sm.dispose()