fix: Balken ueber d4rk_lib, /tauchstand zeigt die Slots
- lib.progressBar -> exports.d4rk_lib:progress (Betreiber: "beim benutzen kommt noch der alte balken von ox_lib"). - /tauchstand <id> (Serverkonsole): was liegt in rigSlot/maskSlot. Erster Lauf: beide Slots "clothing" mit der richtigen Kennung - vor dem Kleidungseintrag gekauft; getWorn antwortete also richtig. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
bfe1d8ee2d
commit
96c57d56a0
2 files changed
+31
-2
No files matched your search
+2
-2
@@ -235,7 +235,7 @@ lib.callback.register('d4rk_divegear:client:fillTank', function(tanks)
|
||||
return
|
||||
end
|
||||
|
||||
if not lib.progressBar({
|
||||
if not exports.d4rk_lib:progress({
|
||||
duration = config.refillTankTimeMs,
|
||||
label = locale('info.filling_air'),
|
||||
useWhileDead = false,
|
||||
@@ -606,7 +606,7 @@ local function einsetzen(slot)
|
||||
return
|
||||
end
|
||||
|
||||
if not lib.progressBar({
|
||||
if not exports.d4rk_lib:progress({
|
||||
duration = config.putOnSuitTimeMs,
|
||||
label = locale('info.patrone_einsetzen'),
|
||||
useWhileDead = false,
|
||||
|
||||
@@ -195,3 +195,32 @@ RegisterCommand('tauchartikel', function(source, args)
|
||||
|
||||
kleidungAnlegen()
|
||||
end, true)
|
||||
--[[
|
||||
/tauchstand <id> - WAS LIEGT IN DEN SLOTS? (29.09.2026, nur Serverkonsole)
|
||||
|
||||
Betreiber: "nachdem er durchgelaufen ist sagt er du traegst keine
|
||||
taucherflasche". getWorn (server/main.lua) liest rigSlot und maskSlot -
|
||||
dieser Befehl zeigt, was dort wirklich liegt: Itemname, Kleidungskennung,
|
||||
Patrone. Ein `clothing` mit der richtigen Kennung heisst: vor dem
|
||||
/tauchartikel-Eintrag gekauft, die Optik stimmt, das Item nicht.
|
||||
]]
|
||||
RegisterCommand('tauchstand', function(source, args)
|
||||
if source ~= 0 then return end
|
||||
|
||||
local ziel = tonumber(args[1])
|
||||
|
||||
if not ziel or not GetPlayerName(ziel) then
|
||||
print('[d4rk_divegear] tauchstand <server-id> - Spieler nicht gefunden.')
|
||||
return
|
||||
end
|
||||
|
||||
print(('[d4rk_divegear] tauchstand %d:'):format(ziel))
|
||||
|
||||
for _, s in ipairs({ { 'Flasche', shared.rigSlot, shared.rigItem }, { 'Maske', shared.maskSlot, shared.maskItem } }) do
|
||||
local slot = exports.d4rk_inventory:GetSlot(ziel, s[2])
|
||||
local m = slot and slot.metadata or {}
|
||||
|
||||
print((' %-8s Slot %d: %s (soll %s) garment %s patrone %s oxygen %s'):format(s[1], s[2],
|
||||
slot and slot.name or '<leer>', s[3], tostring(m.garment), tostring(m.patrone), tostring(m.oxygen)))
|
||||
end
|
||||
end, true)
|
||||
Reference in new issue
Block a user