From Stealth Client

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

Revision as of 21:39, 15 February 2012


ArmsLayer

function ArmsLayer():Byte

Returns the layer number 0x13 - Arms(elbows)(Arms)

Example 1:

if ObjAtLayer(ArmsLayer) > 0 then 
  AddToSystemJournal('Arms ID:' + IntToStr(ObjAtLayer(ArmsLayer)));

Example 2:

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