From Stealth Client

Jump to: navigation, search
m (1 revision)
m
Line 6: Line 6:
</noinclude>
</noinclude>
== BpackLayer ==
== BpackLayer ==
-
<source lang="pascal">function BpackLayer() : Byte</source>
+
<source lang="pascal">function BpackLayer():Byte</source>
-
Возвращает номер слоя 0x15 - ''Сумка персонажа'' (Backpack).
+
Returns the layer number 0x15 -'' Bag character''(Backpack).
-
Результат выполнения ObjAtLayer(BpackLayer) должен быть аналогичен [[Doc:Api/Backpack]]
+
The result of the ObjAtLayer(BpackLayer) should be similar to [[Doc:Api/Backpack]]
-
 
+
'''Example:'''
-
'''Пример:'''
+
<source lang="pascal">
<source lang="pascal">
if ObjAtLayer(BpackLayer) > 0 then  
if ObjAtLayer(BpackLayer) > 0 then  
-
   AddToSystemJournal('Backpack ID: '+IntToStr(ObjAtLayer(BpackLayer)));  
+
   AddToSystemJournal('Backpack ID:' + IntToStr(ObjAtLayer(BpackLayer)));  
</source>
</source>

Revision as of 21:39, 15 February 2012


BpackLayer

function BpackLayer():Byte

Returns the layer number 0x15 - Bag character(Backpack).

The result of the ObjAtLayer(BpackLayer) should be similar to Doc:Api/Backpack

Example:

if ObjAtLayer(BpackLayer) > 0 then 
  AddToSystemJournal('Backpack ID:' + IntToStr(ObjAtLayer(BpackLayer)));