From Stealth Client

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

Revision as of 21:39, 15 February 2012


CloakLayer

function CloakLayer():Byte

Returns the layer number 0x14 - Cloak(Cloak).

Example 1:

if ObjAtLayer(CloakLayer) > 0 then 
  AddToSystemJournal('Cloak ID:' + IntToStr(ObjAtLayer(CloakLayer)));

Example 2:

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