From Stealth Client

Jump to: navigation, search
m (1 revision)
m
Line 6: Line 6:
</noinclude>
</noinclude>
== BankLayer ==
== BankLayer ==
-
<source lang="pascal">function BankLayer() : Byte</source>
+
<source lang="pascal">function BankLayer():Byte</source>
-
Возвращает номер слоя 0x1C - ''Свой банковский контейнер'' (PC Bank Box).
+
Returns the layer number 0x1C -'' His bank container''(PC Bank Box).
-
 
+
In the container of this layer:
-
По контейнеру этого слоя:
+
* Available information on this layer for a char.
-
 
+
* Not available.  
-
* Доступна информация по этому слою только для своего чара.
+
* Do not open a [[Doc:Api/UseObject]], and similar functions.
-
* Не снимается.  
+
'''Example 1:'''
-
* Не открывается через [[Doc:Api/UseObject]] и подобные функции.
+
-
 
+
-
'''Пример 1:'''
+
<source lang="pascal">
<source lang="pascal">
if ObjAtLayer(BankLayer) > 0 then  
if ObjAtLayer(BankLayer) > 0 then  
-
   AddToSystemJournal('Bank Box ID: '+IntToStr(ObjAtLayer(BankLayer)));  
+
   AddToSystemJournal('Bank Box ID:' + IntToStr(ObjAtLayer(BankLayer)));  
</source>
</source>

Revision as of 21:39, 15 February 2012


BankLayer

function BankLayer():Byte

Returns the layer number 0x1C - His bank container(PC Bank Box). In the container of this layer:

  • Available information on this layer for a char.
  • Not available.
  • Do not open a Doc:Api/UseObject, and similar functions.

Example 1:

if ObjAtLayer(BankLayer) > 0 then 
  AddToSystemJournal('Bank Box ID:' + IntToStr(ObjAtLayer(BankLayer)));