Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

BpackLayer

Returns layer number $15 - Character’s Bag (Backpack).

The result of the ObjAtLayer(BpackLayer) should be similar to Backpack

Normally, that should be a simple constant, not function. But due to backwards compatibility it should be keeped as function.

DWS\Pascal Script:

function BpackLayer : Byte;

DWS\Pascal Script Example:

if ObjAtLayer(BpackLayer) > 0 then 
  AddToSystemJournal('Backpack ID: $' + IntToHex(ObjAtLayer(BpackLayer),8));

Python:

def BpackLayer(): --> ubyte