Created: 5 months ago on 06/14/2025, 04:34:27 PMUpdated: about 1 month ago on 10/04/2025, 09:04:14 PM
Size: 6568
Description: Need sewingkit, cloth, leather and a scissor in bag
Original Author: Celobra
From 25.0 Tailoring: Shorts (shorts)
From 45.0 Tailoring: Skirt (skirt, not robe!)
From 55.0 Tailoring: Robe
From 75.0 Tailoring: Leather tunic
local GUMP_ID = 2653346093
local sewingkit_graphic = 0x0F9D
local sewingkit_name = "Sewing Kit"
local scissors_type = 3999 -- 0xF9F
local shortpants_type = 5422
local skirt_type = 5398
local robe_type = 7939
local tunic_type = 5068
local studdedlegg_type = 5082
function find_sewingkit()
local kits = Items.FindByFilter({RootContainer=Player.Backpack.Serial, graphics=sewingkit_graphic, name=sewingkit_name})
return kits and kits[1] or nil
end
function find_scissors()
local s = Items.FindByFilter({RootContainer=Player.Backpack.Serial, graphics=scissors_type})
return s and s[1] or nil
end
function find_latest_item(typeid)
local items = Items.FindByFilter({RootContainer=Player.Backpack.Serial, graphics=typeid})
if items and #items > 0 then
-- sort by highest serialnumber (mostly the last item created)
table.sort(items, function(a,b) return a.Serial > b.Serial end)
return items[1]
end
return nil
end
function make_and_cut_shortpants()
local sewingkit = find_sewingkit()
if not sewingkit then Messages.Print("No Sewingkit left") return end
Player.UseObject(sewingkit.Serial)
Gumps.WaitForGump(2653346093, 2000)
Gumps.PressButton(2653346093, 15)
Pause(1000)
Gumps.PressButton(2653346093, 3)
Pause(1000)
Gumps.PressButton(2653346093, 2)
Pause(1000)
Pause(1200) --little more time
local scissors = find_scissors()
local pants = find_latest_item(shortpants_type)
if scissors and pants then
Player.UseObject(scissors.Serial)
if Targeting.WaitForTarget(1000) then
Targeting.Target(pants.Serial)
Pause(400)
end
end
end
function make_and_cut_skirt()
local sewingkit = find_sewingkit()
if not sewingkit then Messages.Print("No Sewingkit left") return end
Player.UseObject(sewingkit.Serial)
Gumps.WaitForGump(2653346093, 2000)
Gumps.PressButton(2653346093, 15)
Pause(1000)
Gumps.PressButton(2653346093, 24)
Pause(1000)
Gumps.PressButton(2653346093, 23)
Pause(1200)
local scissors = find_scissors()
local skirt = find_latest_item(skirt_type)
if scissors and skirt then
Player.UseObject(scissors.Serial)
if Targeting.WaitForTarget(1000) then
Targeting.Target(skirt.Serial)
Pause(400)
end
end
end
function make_and_cut_robe()
local sewingkit = find_sewingkit()
if not sewingkit then Messages.Print("No Sewingkit left") return end
Player.UseObject(sewingkit.Serial)
Gumps.WaitForGump(2653346093, 2000)
Pause(1000)
Gumps.PressButton(2653346093, 8)
Pause(1000)
Gumps.PressButton(2653346093, 59)
Pause(1000)
Gumps.PressButton(2653346093, 58)
Pause(3000)
local scissors = find_scissors()
local robe = find_latest_item(robe_type)
if scissors and robe then
Player.UseObject(scissors.Serial)
if Targeting.WaitForTarget(1000) then
Targeting.Target(robe.Serial)
Pause(400)
end
end
end
function make_and_cut_tunic()
local sewingkit = find_sewingkit()
if not sewingkit then Messages.Print("No Sewingkit left") return end
Player.UseObject(sewingkit.Serial)
Gumps.WaitForGump(2653346093, 2000)
Gumps.PressButton(2653346093, 36)
Pause(1000)
Gumps.PressButton(2653346093, 38)
Pause(1000)
Gumps.PressButton(2653346093, 37)
Pause(3000)
local scissors = find_scissors()
local ltunic = find_latest_item(tunic_type)
if scissors and ltunic then
Player.UseObject(scissors.Serial)
if Targeting.WaitForTarget(1000) then
Targeting.Target(ltunic.Serial)
Pause(400)
end
end
end
function make_and_cut_studded_legg()
local sewingkit = find_sewingkit()
if not sewingkit then Messages.Print("No Sewingkit left") return end
Player.UseObject(sewingkit.Serial)
Gumps.WaitForGump(2653346093, 1000)
Pause(1000)
Gumps.PressButton(2653346093, 43)
Pause(1000)
Gumps.PressButton(2653346093, 24)
Pause(1000)
Gumps.PressButton(2653346093, 23)
Pause(3000)
local scissors = find_scissors()
local studlegg = find_latest_item(studdedlegg_type)
if scissors and studlegg then
Player.UseObject(scissors.Serial)
if Targeting.WaitForTarget(1000) then
Targeting.Target(studlegg.Serial)
Pause(400)
end
end
end
while not Player.IsDead do
local tailoring = Skills.GetValue('Tailoring')
if tailoring <= 40.0 then
make_and_cut_shortpants()
elseif tailoring > 40.0 and tailoring < 54.0 then
make_and_cut_skirt()
elseif tailoring >= 54.0 and tailoring < 74.0 then
make_and_cut_robe()
elseif tailoring >= 74.0 and tailoring < 92.0 then
make_and_cut_tunic()
elseif tailoring >= 92.0 then
make_and_cut_studded_legg()
end
Pause(1000)
end
Messages.Print('No more tool or you are dead.')
Version History
Version 8 - 10/4/2025, 9:04:14 PM - about 1 month ago
Train Tailoring 1.3
Version 7 - 6/14/2025, 10:21:57 PM - 5 months ago
Train Tailoring fixed
Version 6 - 6/14/2025, 10:17:28 PM - 5 months ago
Train Tailoring fixed
Version 5 - 6/14/2025, 10:11:40 PM - 5 months ago
Train Tailoring fixed
Version 4 - 6/14/2025, 8:44:35 PM - 5 months ago
Train Tailoring fixed
Version 3 - 6/14/2025, 8:17:20 PM - 5 months ago
Train Tailoring fixed
Version 2 - 6/14/2025, 8:10:24 PM - 5 months ago
Train Tailoring fixed
Version 1 - 6/14/2025, 8:08:18 PM - 5 months ago
Train Tailoring fixed
Original Version Saved - 6/14/2025, 4:34:27 PM - 5 months ago