feat: Taucherflasche und Maske im Kleiderladen (Modell m)
Gemessen am 29.09.2026 (/d4rk_kleidungsstand, Betreiber): Flasche m:c:8:mp_m_christmas2017:1 (Unterhemd, Slot 31), Maske m:p:1:mp_m_christmas2017:0 - ein PROP im Brillenslot 27, nicht die Maskenkomponente (angenommen war 29). texture -1: alle 26 Farben. /tauchartikel legt die d4rk_garment-Zeilen auf Zuruf an. Modell f fehlt. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
accee02a05
commit
daefe46cb8
2 files changed
+64
-4
No files matched your search
@@ -71,6 +71,52 @@ local function liste()
|
||||
return l
|
||||
end
|
||||
|
||||
--[[
|
||||
DIE KLEIDUNGSEINTRAEGE (d4rk_garment) - 29.09.2026. Ohne sie gibt der
|
||||
Kleiderladen fuer Flasche und Maske `clothing` aus statt der Items
|
||||
(d4rk_inventory d4rkStueckGeben -> d4rk_items GarmentInfo). Wie die Items:
|
||||
nur auf Zuruf, vorhandene Zeilen werden nicht angefasst.
|
||||
]]
|
||||
local function kleidungAnlegen()
|
||||
local ok, zeilen = pcall(function() return exports[ITEMS]:adminGarmentList() end)
|
||||
|
||||
if not ok or type(zeilen) ~= 'table' then
|
||||
print('^1 Kleidung: adminGarmentList antwortet nicht - UNGUELTIG, nichts angelegt.^7')
|
||||
return
|
||||
end
|
||||
|
||||
for _, k in ipairs(shared.kleidung or {}) do
|
||||
local vorhanden
|
||||
|
||||
for _, z in ipairs(zeilen) do
|
||||
if z.pedset == k.pedset and (z.collection or '') == k.collection
|
||||
and tonumber(z.drawable) == k.drawable and tonumber(z.texture) == -1 then
|
||||
vorhanden = z
|
||||
break
|
||||
end
|
||||
end
|
||||
|
||||
local name = ('%s %s %s:%d'):format(k.pedset, k.komponente, k.collection, k.drawable)
|
||||
|
||||
if vorhanden then
|
||||
print((' Kleidung %-34s vorhanden (Item %s)%s'):format(name, tostring(vorhanden.item),
|
||||
vorhanden.item == k.item and '' or ' ^3- soll ' .. k.item .. ', im Panel pruefen^7'))
|
||||
else
|
||||
local okC, erfolg, grund = pcall(function()
|
||||
return exports[ITEMS]:adminGarmentCreate(0, {
|
||||
pedset = k.pedset, komponente = k.komponente, collection = k.collection,
|
||||
drawable = k.drawable, texture = -1,
|
||||
label = locale('artikel.' .. k.item .. '.name'), item = k.item, aktiv = true,
|
||||
})
|
||||
end)
|
||||
|
||||
print((' Kleidung %-34s %s'):format(name,
|
||||
(okC and erfolg == true) and '^2angelegt -> ' .. k.item .. '^7'
|
||||
or ('^1FEHLER: %s^7'):format(okC and tostring(grund) or tostring(erfolg))))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
RegisterCommand('tauchartikel', function(source, args)
|
||||
if source ~= 0 then return end
|
||||
|
||||
@@ -146,4 +192,6 @@ RegisterCommand('tauchartikel', function(source, args)
|
||||
or ('^1FEHLER: %s^7'):format(okC and tostring(grund) or tostring(erfolg))))
|
||||
end
|
||||
end
|
||||
|
||||
kleidungAnlegen()
|
||||
end, true)
|
||||
Reference in new issue
Block a user