Log in

View Full Version : Help with sort script



damulka11
06-19-2017, 11:34 AM
Hello

Today i want to make sort script, but it not working. Idk what is a problem.


local rashid = {661, 662, 664, 667, 669, 672, 673, 680, 681, 683, 686, 688, 691, 692, 780, 781, 783, 786, 788, 791, 792, 795, 796, 798, 803, 805, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818, 819, 820, 821, 822, 823, 824, 825, 826, 827, 828, 829, 830, 2958, 2991, 3002, 3006, 3007, 3008, 3010, 3016, 3017, 3018, 3019, 3025, 3055, 3063, 3290, 3314, 3315, 3326, 3327, 3328, 3330, 3332, 3333, 3334, 3339, 3340, 3342, 3344, 3356, 3360, 3364, 3366, 3386, 3397, 3404, 3408, 3414, 3420, 3421, 3435, 3436, 3440, 3441, 3442, 3550, 3554, 3556, 5461, 5710, 5741, 5810, 5917, 5918, 6095, 6096, 6131, 6299, 6553, 7379, 7380, 7381, 7382, 7383, 7384, 7386, 7387, 7388, 7389, 7390, 7392, 7402, 7403, 7404, 7406, 7408, 7414, 7415, 7418, 7422, 7424, 7425, 7426, 7427, 7429, 7430, 7432, 7434, 7437, 7438, 7449, 7452, 7456, 7457, 7460, 7461, 7462, 7463, 7464, 8022, 8027, 8045, 8049, 8050, 8052, 8057, 8061, 8063, 9013, 9014, 9017, 9302, 9303, 9304, 10457, 11674, 16163, 16164, 17828, 17829, 17852}
local tamoril = {2903, 3038, 3041, 3037, 3036, 3039}


while (true) do
local mailid = Container("Your Inbox"):GetItemData(0).id
wait(400)
if (mailid == rashid) then
Container("Your Inbox"):MoveItemToContainer(0, "depot box I", 0)
wait(400)
elseif (mailid == tamoril) then
Container("Your Inbox"):MoveItemToContainer(0, "depot box II", 0)
wait(400)
else
Container("Your Inbox"):MoveItemToContainer(0, "depot box III", 0)
wait(400)
end
end

Script should sort items from inbox to depots 1 - rashid, 2 - tamoril and 3 -others.

Regards