Created: about 17 hours ago on 06/14/2025, 04:34:27 PMUpdated: about 12 hours ago on 06/14/2025, 10:21:57 PM
Size: 5560
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
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
-- Sortiere nach höchster Serial (das ist meist das zuletzt hinzugefügte Item!)
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("Kein Sewing Kit im Bag!") 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) -- am besten nach Herstellen etwas mehr warten!
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("Kein Sewing Kit im Bag!") 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("Kein Sewing Kit im Bag!") 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("Kein Sewing Kit im Bag!") 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
while not Player.IsDead do
local tailoring = Skills.GetValue('Tailoring')
if tailoring <= 40.0 then
make_and_cut_shortpants()
elseif tailoring >= 70.4 then
make_and_cut_tunic()
elseif tailoring >= 54.0 then
make_and_cut_robe()
elseif tailoring >= 53.9 then
make_and_cut_skirt()
end
Pause(1000)
end
Messages.Print('Script beendet: Spieler ist tot oder kein Material/Tool mehr.')
Version History
Version 7 - 6/14/2025, 10:21:57 PM - about 12 hours ago
Train Tailoring fixed
Version 6 - 6/14/2025, 10:17:28 PM - about 12 hours ago
Train Tailoring fixed
Version 5 - 6/14/2025, 10:11:40 PM - about 12 hours ago
Train Tailoring fixed
Version 4 - 6/14/2025, 8:44:35 PM - about 13 hours ago
Train Tailoring fixed
Version 3 - 6/14/2025, 8:17:20 PM - about 14 hours ago
Train Tailoring fixed
Version 2 - 6/14/2025, 8:10:24 PM - about 14 hours ago
Train Tailoring fixed
Version 1 - 6/14/2025, 8:08:18 PM - about 14 hours ago
Train Tailoring fixed
Original Version Saved - 6/14/2025, 4:34:27 PM - about 17 hours ago