From Stealth Client

Jump to: navigation, search
m (1 revision)
Line 6: Line 6:
</noinclude>
</noinclude>
== BraceLayer ==
== BraceLayer ==
-
<source lang="pascal">function BraceLayer() : Byte</source>
+
<source lang="pascal">function BraceLayer():Byte</source>
-
Возвращает номер слоя 0x0E - ''Браслет'' (Bracelet).
+
Returns the layer number 0x0E -'' bracelet''(Bracelet).
-
'''Пример 1:'''
+
'''Example 1:'''
<source lang="pascal">
<source lang="pascal">
if ObjAtLayer(BraceLayer) > 0 then  
if ObjAtLayer(BraceLayer) > 0 then  
-
   AddToSystemJournal('Bracelet ID: '+IntToStr(ObjAtLayer(BraceLayer)));  
+
   AddToSystemJournal('Bracelet ID:' + IntToStr(ObjAtLayer(BraceLayer)));  
</source>
</source>
-
 
+
'''Example 2:'''
-
'''Пример 2:'''
+
<source lang="pascal">
<source lang="pascal">
-
{Если на слое чтото есть, то снимаем}
+
{If there is something on a layer, then remove}
if ObjAtLayer(BraceLayer) <> 0 then
if ObjAtLayer(BraceLayer) <> 0 then
   begin
   begin
     unequip(BraceLayer);
     unequip(BraceLayer);
     wait(1000);
     wait(1000);
-
   end;
+
   end;  
</source>
</source>

Revision as of 21:39, 15 February 2012


BraceLayer

function BraceLayer():Byte

Returns the layer number 0x0E - bracelet(Bracelet).

Example 1:

if ObjAtLayer(BraceLayer) > 0 then 
  AddToSystemJournal('Bracelet ID:' + IntToStr(ObjAtLayer(BraceLayer)));

Example 2:

{If there is something on a layer, then remove}
if ObjAtLayer(BraceLayer) <> 0 then
  begin
    unequip(BraceLayer);
    wait(1000);
  end;